Callback problem

kaveh rahimi 66 Reputation points
2021-09-03T16:28:59.063+00:00

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++
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 122.5K Reputation points
    2021-09-03T16:52:15.757+00:00

    Try adding #include <Windows.h> to the beginning of your file.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.