IProtectedModeMenuServices::LoadMenu method

Creates a low integrity menu from a named resource.

Syntax

HRESULT LoadMenu(
  [in]  LPCWSTR pszModuleName,
  [in]  LPCWSTR pszMenuName,
  [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.

  • pszMenuName [in]
    A pointer to a null-terminated string that specifies the named menu resource.

  • 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::LoadMenuID