LockResource

From aldeid
Jump to navigation Jump to search

Description

Retrieves a pointer to the specified resource in memory.

Syntax

LPVOID WINAPI LockResource(
  _In_  HGLOBAL hResData
);

Parameters

hResData [in]
Type: HGLOBAL
A handle to the resource to be accessed. The LoadResource function returns this handle. Note that this parameter is listed as an HGLOBAL variable only for backward compatibility. Do not pass any value as a parameter other than a successful return value from the LoadResource function.

Return value

Type: LPVOID

If the loaded resource is available, the return value is a pointer to the first byte of the resource; otherwise, it is NULL.