This topic has not yet been rated - Rate this topic

SHCreateQueryCancelAutoPlayMoniker function

[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.]

Applies to: desktop apps only

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

Syntax

HRESULT SHCreateQueryCancelAutoPlayMoniker(
  __out  IMoniker **ppmoniker
);

Parameters

ppmoniker [out]

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

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Shlobj.h

Library

Shell32.lib

DLL

Shell32.dll (version 6.0 or later)

See also

CreateClassMoniker

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ