I've got what I think is a pretty basic question regarding Win32 programming. I've recently started learning it and noticed something I'd never seen before; what appeared to be two return types. On the tutorial I'm reading, the WinMain function is defined as
Code:
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
Now I'm in no way an expert programmer, but that has me completely baffled as to how it works. I know it returns an int and is called WinMain, but what's the deal with the WINAPI? Another location I noticed this "double return" type function is in
Code:
LRESULT CALLBACK WndProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam)
Now I have a decent understanding of what each function can do, but again what is with these functions? Again, this is probably a n00b question, but any help is greatly appreciated