This typedef:
typedef DWORD WINAPI
(* CM_Open_DevNode_Key)(DWORD, DWORD, DWORD, DWORD, PHKEY, DWORD);
compiles fine in BorlandCpp, however, when I compile it in msvc I have to remove WINAPI
(which is just an alias for __stdcall
):
typedef DWORD
(* CM_Open_DevNode_Key)(DWORD, DWORD, DWORD, DWORD, PHKEY, DWORD);
Why is this happening? Can I remove the WINAPI part safely?
Update: I had to remove "WINAPI" form the typedef, otherwise I got
error C2059: syntax error : '('
for the line.
Can you tell me why Borland could compile it with "WINAPI" while Msvc couldn't?