Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.9 KB

nf-kcom-kocreateinstance.md

File metadata and controls

83 lines (59 loc) · 1.9 KB
UID title description old-location tech.root ms.date keywords 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 f1_keywords topic_type api_type api_location api_name
NF:kcom.KoCreateInstance
KoCreateInstance function (kcom.h)
The KoCreateInstance function creates an object of the class with the specified CLSID.
stream\kocreateinstance.htm
stream
04/23/2018
KoCreateInstance function
KoCreateInstance, KoCreateInstance function [Streaming Media Devices], kcom/KoCreateInstance, ksfunc_57c8ab23-3163-4ef8-a381-bd81ce01d18e.xml, stream.kocreateinstance
kcom.h
Kcom.h
Universal
Ks.lib
Windows
KoCreateInstance
kcom/KoCreateInstance
APIRef
kbSyntax
LibDef
Ks.lib
Ks.dll
KoCreateInstance

KoCreateInstance function

-description

This function is intended for internal use only.

The KoCreateInstance function creates an object of the class with the specified CLSID.

-parameters

-param ClassId [in]

The CLSID of the object to create an instance of.

-param UnkOuter [in, optional]

The outer unknown object to pass to the new instance.

-param ClsContext [in]

The context in which to create the instance. This must be CLSCTX_KERNEL_SERVER.

-param InterfaceId [in]

Reference to the identifier of the interface that will communicate with the object.

-param Interface [out]

Address of the pointer variable that receives the new interface pointer specified in InterfaceId.

-returns

Returns STATUS_SUCCESS if the instance was successfully created. Otherwise, it returns an error.