If you are concerned about the
(LARGE_INTEGER*)&freq
part, I guess the
freq
variable isn't declared as
LARGE_INTEGER
(but it's type, at least from the author's point of view, is compatible with) so a cast is needed (after its address is taken via the
&
operator).