cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How does this work?
How does this work?
Jun 5, 2014 at 7:24pm UTC
nickmiller24
(24)
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."
Jun 5, 2014 at 7:34pm UTC
dhayden
(5798)
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.