C28165
warning C28165: The function pointer of class does not match the function class
A function pointer has a __drv_functionClass annotation that specifies that only functions of a particular functional class should be assigned to it. In an assignment or implied assignment in a function call, the source and target must be of the same function class, but the function classes do not match.
Example
The following code example elicits this warning.
IoSetCancelRoutine(MyStartIo);
The following code example avoids this warning.
IoSetCancelRoutine(MyCancelRoutine);
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for