Are you including <winbase.h>
directly?
You shouldn’t – it expects to have some things defined/declared before it’s processed. Specifically in this case the identifier ULONG_PTR
which is declared as a typedef in intsafe.h
.
Include <windows.h>
.