I'm used to C++ code and for right now I am working out of the "Windows Game Programming for Dummies" book. This book focuses mostly on C, though at times it integrates some C++. In the window creation function, I see data types (in all caps) like LPCTSTR, DWORD, HWND, HMENU, etc. I don't know if they are old C conventions or not. My question is, what do these different types mean? The other question I had is in the default Windows Application project file for Dev C++, the WinMain function looks like this:
What is the purpose of WINAPI before WinMain? I know that functions have a return type but I thought that WinMain's was int.Code:int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
To sum it all up, (hopefully I haven't made this all sound way too complex) what is the purpose of the 'type' labels in all caps? How are they important to Windows? I would appreciate any decent explanation. Thanks.