IShellMenu::GetMenuInfo method

Gets information from the IShellMenu::Initialize method.

Syntax


HRESULT GetMenuInfo(
  [out, optional] IShellMenuCallback **ppsmc,
  [out, optional] UINT               *puId,
  [out, optional] UINT               *puIdAncestor,
  [out]           DWORD              *pdwFlags
);

Parameters

ppsmc [out, optional]

Type: IShellMenuCallback**

When this method returns, contains the address of a pointer to the IShellMenuCallback interface that you specified when you called IShellMenu::Initialize. This pointer can be NULL.

puId [out, optional]

Type: UINT*

When this method returns, contains a pointer to a UINT value that receives the uID value that you specified when you called IShellMenu::Initialize. This pointer can be NULL.

puIdAncestor [out, optional]

Type: UINT*

When this method returns, contains a pointer to a UINT value that receives the uIdAncestor value that you specified when you called IShellMenu::Initialize. This pointer can be NULL.

pdwFlags [out]

Type: DWORD*

When this method returns, contains a pointer to a DWORD value that receives the dwFlags value that you specified when you called IShellMenu::Initialize. This pointer can be NULL.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll

 

 

Show: