BOOL CALLBACK NotifyProc(hglbl) | |||||
HGLOBAL hglbl; | /* handle of global memory object | */ |
The NotifyProc function is a library-defined callback function that the system calls whenever it is about to discard a global memory object allocated with the GMEM_NOTIFY flag.
hglbl
Identifies the global memory object being discarded.
The callback function should return nonzero if the system is to discard the memory object, or zero if it should not.
The callback function is not necessarily called in the context of the application that owns the routine. For this reason, the callback function should not assume it is using the stack segment of the application. The callback function should not call any routine that might move memory.
The callback function must be in a fixed code segment of a dynamic-link library.
NotifyProc is a placeholder for the application-defined function name. The actual name must be exported by including it in an EXPORTS statement in the library's module-definition statement.