CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2002
    Posts
    137

    Post 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!

    ----------------------------------

  2. #2
    Join Date
    Jun 2002
    Posts
    137
    Does anybody has any information on the topic of CALLBACK?
    I posted this thread a few days ago but nobody answered yet.

  3. #3
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    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

  4. #4
    Join Date
    Jun 2002
    Posts
    137

    Smile

    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
  •  





Click Here to Expand Forum to Full Width

Featured