共用方式為


28155 - The function being assigned or passed should be a <class1> function

Additional information

Add the declaration "<class1> <funcname1>" before the current first declaration of <funcname2>

 

The function on the left side of the assignment (or of the implied assignment, if this is a function call) is annotated to indicate that it is a driver-specific function type that uses the __drv_functionClass annotation or a typedef that contains such an annotation. The function on the right side of the assignment does not have a __drv_functionClass annotation. The function on the right should be annotated to be of the same type as the function on the left. This is usually best done by adding the declaration <class1> <funcname1> before the current first declaration of <funcname2>.

Example

The following code example elicits this warning:

IoSetCancelRoutine(MyStartIo);

The following code example avoids this warning:

IoSetCancelRoutine(MyCancelRoutine);

 

 

Send comments about this topic to Microsoft

Build date: 12/7/2011