Skip to content

Latest commit

 

History

History
89 lines (67 loc) · 2.82 KB

nf-propsys-icreateobject-createobject.md

File metadata and controls

89 lines (67 loc) · 2.82 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:propsys.ICreateObject.CreateObject
ICreateObject::CreateObject (propsys.h)
Creates a local object of a specified class and returns a pointer to a specified interface on the object.
CreateObject
CreateObject method [Windows Shell]
CreateObject method [Windows Shell]
ICreateObject interface
ICreateObject interface [Windows Shell]
CreateObject method
ICreateObject.CreateObject
ICreateObject::CreateObject
_shell_ICreateObject_CreateObject
propsys/ICreateObject::CreateObject
shell.ICreateObject_CreateObject
shell\ICreateObject_CreateObject.htm
shell
72c56de7-4c04-4bcf-b6bb-6e41d12b68a3
12/05/2018
CreateObject, CreateObject method [Windows Shell], CreateObject method [Windows Shell],ICreateObject interface, ICreateObject interface [Windows Shell],CreateObject method, ICreateObject.CreateObject, ICreateObject::CreateObject, _shell_ICreateObject_CreateObject, propsys/ICreateObject::CreateObject, shell.ICreateObject_CreateObject
propsys.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Propsys.idl
Windows
19H1
ICreateObject::CreateObject
propsys/ICreateObject::CreateObject
c++
APIRef
kbSyntax
COM
Propsys.h
ICreateObject.CreateObject

ICreateObject::CreateObject

-description

Creates a local object of a specified class and returns a pointer to a specified interface on the object.

-parameters

-param clsid [in]

Type: REFCLSID

A reference to a CLSID.

-param pUnkOuter [in]

Type: IUnknown*

A pointer to the IUnknown interface that aggregates the object created by this function, or NULL if no aggregation is desired.

-param riid [in]

Type: REFIID

A reference to the IID of the interface the created object should return.

-param ppv [out]

Type: void**

When this method returns, contains the address of the pointer to the interface requested in riid.

-returns

Type: HRESULT

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

-remarks

This method can be used with GetPropertyStoreWithCreateObject.