What does '#define KPDCCALLBACK CALLBACK' mean?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I believe it's a C++ typedef. I need help, PLEASE!!! I have info on my blog
at mkenyon2.blogspot.com

I need to get an unmanaged DLL to raise events in my code. I can get it
sporadically, but not every time. Now, I don't even get errors. PLEASE HELP.
 
Hi,

It's rather an instruction for the C++ pre-processor. It means that
KPDCALLBACK is the same as CALLBACK, which is defined as '__stdcall' in
WinDef.h
So it comes down to the calling convention you should specify when declaring
a prototype for an unmanaged function with [DllImport].
 
Back
Top