SHCreateQueryCancelAutoPlayMoniker function (shlobj.h)

[This function is deprecated. Use CreateClassMoniker instead. Note that the CLSID used in the call to CreateClassMoniker must be application-defined. Do not call CreateClassMoniker with a system-defined CLSID.]

Deprecated. Creates a QueryCancelAutoPlay class moniker, which can then be used to register the IQueryCancelAutoPlay handler in the running object table (ROT).

Syntax

SHSTDAPI SHCreateQueryCancelAutoPlayMoniker(
  [out] IMoniker **ppmoniker
);

Parameters

[out] ppmoniker

Type: IMoniker**

The address of a IMoniker interface pointer that, when this function returns successfully, receives the QueryCancelAutoPlay class moniker. If this function call fails, this value is NULL.

Return value

Type: HRESULT

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

Remarks

If successful, SHCreateQueryCancelAutoPlayMoniker calls the interface's AddRef method and increments the reference count. When you are finished, call the interface's Release method to release.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj.h
Library Shell32.lib
DLL Shell32.dll (version 6.0 or later)

See also

CreateClassMoniker