RAPI & C type....

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I am trying to load the function at runtim insead of har linking.
I have declaration problem.

for example I have (in rapi.h)
STDAPI_(LONG) CeRegCloseKey(HKEY);

I try to create a function pointer variable correctly typed which I naively
wrote:
STDAPI_(LONG) (* MyCeRegCloseKey)(HKEY);

but that doesn't compile, it says:
d:\LloydDev\ihookDB\ihookDB\PPC-Copy\detect.cpp(85): error C2059: syntax
error : '('

could someone enlighten me on this particular window's C++ issue ?
 
Back
Top