AllocResource

Syntax

HANDLE AllocResource(hInstance,hResInfo,dwSize)

This function allocates uninitialized memory for the passed resource. All resources must be initially allocated by using the AllocResource function. The LoadResource function calls this function before loading the resource.

Parameter Type/Description  

hInstance HANDLE Identifies the instance of the module whose executable file contains the resource.  
hResInfo HANDLE Identifies the desired resource. It is assumed that this handle was created by using the FindResource function.  
dwSize DWORD Specifies an override size in bytes to allocate for the resource. The override is ignored if the size is zero.  

Return Value

The return value identifies the global memory block allocated for the resource.