How does this work?

I have been learning about the windows api recently and have come across code similar to the following.
1
2
3
4
BOOL WINAPI GetClientRect(
  _In_   HWND hWnd,
  _Out_  LPRECT lpRect
);

My Question is how is it valid syntax to provide two type names or class identifiers, in this case "BOOL", and "WINAPI."
WINAPI is probably a #define in a header file. See what that is and you will have your answer. I suspect it's either extern "C" or some MS-specific extension, such as a qualifier that says it uses Pascal calling conventions.
Topic archived. No new replies allowed.