在WINDOWS的头文件中申明函数原型时在最前面的标识符是什么意思?比如:
WINUSERAPI
HDC
WINAPI
GetDCEx(
    HWND hWnd ,
    HRGN hrgnClip,
    DWORD flags);
WINBASEAPI
BOOL
WINAPI
FreeLibrary(
    HMODULE hLibModule
    );
这些个WINBASEAPI和WINUSERAPI有什么作用,它们的具体含义是什么?

解决方案 »

  1.   

    这些个WINBASEAPI和WINUSERAPI有什么作用,它们的具体含义是什么?
    ----------到MSDN里没查到这两个东西,是自定义的吧,还是我的MSDN太老了???
      

  2.   

    函数调用约定,和WINAPI差不多
      

  3.   

    You can ignore the WINUSERAPI. It is ultimately defined (on some compilers) to declspec(dllimport), which is a compiler specific instruction that can give a slight performance boost to DLL functions. When calling a function, you can also ignore the calling convention. The only time you need to remember a calling convention is when you declare a callback function (such as WinMain). In this case, Win32 functions expect the callback function to use the WINAPI (or __stdcall) calling convention. The default calling convention is __cdecl. Even if you forget, your compiler will probably give you a warning.