IMoniker::IsSystemMoniker

Indicates whether this moniker is of one of the system-supplied moniker classes.

HRESULT IsSystemMoniker(
  DWORD *pdwMksys  //Pointer to value from MKSYS enumeration
);
 

Parameter

pdwMksys
[out] Pointer to an integer that is one of the values from the MKSYS enumeration, and refers to one of the COM moniker classes. This parameter cannot be NULL.

Return Values

S_OK
The moniker is a system moniker.
S_FALSE
The moniker is not a system moniker.

Remarks

Notes to Callers

New values of the MKSYS enumeration may be defined in the future; therefore you should explicitly test for each value you are interested in.

Notes to Implementers

Your implementation of this method must return MKSYS_NONE. You cannot use this function to identify your own monikers (for example, in your implementation of IMoniker::ComposeWith). Instead, you should use your moniker's implementation of IPersist::GetClassID or use IUnknown::QueryInterface to test for your own private interface.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IPersist::GetClassID, MKSYS