IMoniker::IsSystemMoniker

This method checks whether moniker is one of the system-supplied types.

HRESULT IsSystemMoniker( 
  DWORD* pdwMksys
);

Parameters

  • 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

The following table shows the return values for this method.

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

Remarks

To determine whether the platform supports this interface, see Determining Supported COM APIs.

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 the IPersist::GetClassID method or use the IUnknown::QueryInterface method to test for your own private interface.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

IMoniker::ComposeWith | IPersist::GetClassID | IUnknown::QueryInterface

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.