|
-
July 7th, 2002, 10:30 PM
#1
about the callback function
I am doing some source code on windows hook. The functions
JournalPlaybackFunc(), CallNextHookEx() and etc, I know,
are to build the loop to, for example, play back what recorded.
But the CALLBACks before the functions upset me, I am not clear
about what the functions are called through underground.
Does anybody can provide some information or drop
some web addresses on CALLBACK as referral?
Many thanks!
----------------------------------
-
July 9th, 2002, 09:41 PM
#2
Does anybody has any information on the topic of CALLBACK?
I posted this thread a few days ago but nobody answered yet.
-
July 9th, 2002, 11:21 PM
#3
In the file windef.h, CALLBACK is #define'd as such:
Code:
#ifdef _MAC
#define CALLBACK PASCAL
#elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
#define CALLBACK __stdcall
#else
#define CALLBACK
#endif
On my system [with Visual Studio 6.0 SP5], CALLBACK winds up being __stdcall. __stdcall is just a way for Visual Studio to keep track of how arguments are to be pushed on the stack. There are others, too (eg: __fastcall, __cdecl, thiscall).
See the following links for details:
http://msdn.microsoft.com/library/de...___stdcall.asp
http://msdn.microsoft.com/library/de...re___cdecl.asp
--Paul
-
July 10th, 2002, 01:50 AM
#4
Thanks a lot for your reply. Paul.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|