The LockResource function locks the specified resource in memory.
LPVOID LockResource(
HGLOBAL hResData // handle to resource to lock
);
Parameters
hResData
Handle to the resource to be locked. The LoadResource function returns this handle.
Return Values
If the loaded resource is locked, the return value is a pointer to the first byte of the resource; otherwise, it is NULL.