IProtectedModeMenuServices::LoadMenuID method

Creates a low integrity menu from a resource ID.

Syntax

HRESULT LoadMenuID(
  [in]  LPCWSTR pszModuleName,
  [in]  WORD    wResourceID,
  [out] HMENU   *phMenu
);

Parameters

  • pszModuleName [in]
    A pointer to a null-terminated string that specifies the name of language-neutral resource DLL or executable. The name of the folder that contains the language-specific resource files is interpreted by using language name format. See LoadMUILibrary for more information.

  • wResourceID [in]
    An unsigned integer that specifies the menu resource by ID.

  • phMenu [out]
    A variable that receives a handle to the low integrity menu.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Product

Internet Explorer 7

Header

Docobj.h

IDL

Docobj.idl

DLL

Docobj.dll

See also

IProtectedModeMenuServices

IProtectedModeMenuServices::LoadMenu