wiauGetResourceString function (wiautil.h)

The wiauGetResourceString function gets a resource string, storing it as a BSTR.

Syntax

HRESULT wiauGetResourceString(
        HINSTANCE hInst,
        LONG      lResourceID,
  [out] BSTR      *pbstrStr
);

Parameters

hInst

Specifies the handle of the module instance.

lResourceID

Specifies the resource ID of the target BSTR value.

[out] pbstrStr

Points to the memory location that receives the retrieved string. The caller of this function must free this string by calling SysFreeString (described in the Microsoft Windows SDK documentation).

Return value

On success, the function returns S_OK. If the function fails, it returns a standard COM error.

Requirements

Requirement Value
Target Platform Desktop
Header wiautil.h (include Wiautil.h)