This method checks whether moniker is one of the system-supplied types.
At a Glance
Header file: | Oaidl.h |
Windows CE versions: | 2.0 and later |
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 Values
One of the values described in the following table is returned.
Value | Description |
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.