INewMenuClient::IncludeItems method (shobjidl_core.h)

Allows the view to filter the items shown in the menu.

Syntax

HRESULT IncludeItems(
  [out] NMCII_FLAGS *pflags
);

Parameters

[out] pflags

Type: NMCII_FLAGS*

Pointer to a value that, when this method returns successfully, contains one of the following values:

NMCII_NONE (0x0000)

0x0000.

NMCII_ITEMS (0x0001)

0x0001. Non-folder items.

NMCII_FOLDERS (0x0002)

0x0002. Folder items.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)