The callback function passed to EnumObjects must use the Pascal calling convention and must be declared FAR.
int FAR PASCAL __export ObjectFunc( LPSTR lpLogObject,
LPSTR* lpData );
The ObjectFunc name is a placeholder for the application-supplied function name. The actual name must be exported as described in the “Remarks” section above.
Parameter | Description |
lpLogObject | Points to a LOGPEN or LOGBRUSH data structure that contains information about the logical attributes of the object. |
lpData | Points to the application-supplied data passed to the EnumObjects function. |
The callback function returns an int. The value of this return is user-defined. If the callback function returns 0, EnumObjects stops enumeration early.
Specifies the last value returned by the callback function. Its meaning is user-defined.
::FreeProcInstance, ::MakeProcInstance, ::EnumObjects