Share via


IMoniker::IsSystemMoniker

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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 Value

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

Header objidl.h, objidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

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