Class | Win32::API::Callback |
In: |
ext/win32/api.c
|
Parent: | Object |
The API::Callback class encapsulates a Windows CALLBACK function
prototype | [R] | The prototype, returned as an array of characters |
return_type | [R] | The return type, returned as a single character, P, L, I, V or B |
Creates and returns a new Win32::API::Callback object. The function is the name of the Windows function.
The prototype is the function prototype for the callback function. This is a string. The possible valid characters are ‘I’ (integer), ‘L’ (long), ‘V’ (void), or ‘P’ (pointer). Unlike API objects, API::Callback objects do not have a default prototype.
The return argument is the return type for the callback function. The valid characters are the same as for the prototype. The default is ‘L’ (long).