Original Post
I just started learning Windows programming,before I''ve only programmed in pure c/c++,java.In those languages,a function always takes the form of:
return_type function_name(args...){body...};
but now in Windows programming,I frequently see functions like:
int WINAPI MessageBox (HWND, LPCSTR, LPCSTR, UINT);
or even more confusing:
WINUSERAPI int WINAPI MessageBoxA (HWND hWnd, LPCSTR lpText,
LPCSTR lpCaption, UINT uType);
What''re the WINUSERAPI and WINAPI?Doesn''t these violate the function definition(declaration) rules?