Try adding #include <Windows.h> to the beginning of your file.
Callback problem
Hi , I run the code below and receive the following errors:
typedef VOID ( CALLBACK * mPCH341_INT_ROUTINE ) ( // ÖжϷþÎñ³ÌÐò
ULONG iStatus );
Errors:
1-function returning function is not allowed
2-expected a ')'
3-Identifier "ULONG" is undefined
4-Identifier "mPCH341_INT_ROUTINE" is undefined
Developer technologies C++
1 additional answer
Sort by: Most helpful
-
kaveh rahimi 66 Reputation points
2021-09-03T20:28:22.497+00:00 My error with four mentioned errors was fixed. Now I have two new errors with following command line:
typedef VOID(CALLBACK* mPCH341_NOTIFY_ROUTINE)(ULONG iEventStatus);
Errors are:
1-'NTSTATUS' :redefinition different basic types
2-'left-side modifier':cannot modify pointers to data