HANDLE GetCodeHandle(lpProc)
This function determines which code segment contains the function pointed to by the lpProc parameter.
Parameter | Type/Description |
lpProc | FARPROC Is a procedure-instance address. |
The return value identifies the code segment that contains the function.
If the code segment that contains the function is already loaded, the GetCodeHandle function marks the segment as recently used. If the code segment is not loaded, GetCodeHandle attempts to load it. Thus, an application can use this function to attempt to preload one or more segments needed to perform a particular task.