Skip to content

Latest commit

 

History

History
128 lines (107 loc) · 4.57 KB

nf-certenroll-ix509machineenrollmentfactory-createobject.md

File metadata and controls

128 lines (107 loc) · 4.57 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:certenroll.IX509MachineEnrollmentFactory.CreateObject
IX509MachineEnrollmentFactory::CreateObject (certenroll.h)
Creates an IX509EnrollmentHelper object on a webpage.
CreateObject
CreateObject method [Security]
CreateObject method [Security]
IX509MachineEnrollmentFactory interface
IX509MachineEnrollmentFactory interface [Security]
CreateObject method
IX509MachineEnrollmentFactory.CreateObject
IX509MachineEnrollmentFactory::CreateObject
certenroll/IX509MachineEnrollmentFactory::CreateObject
security.ix509machineenrollmentfactory_createobject
security\ix509machineenrollmentfactory_createobject.htm
security
f9a45219-1c88-4946-ad57-81b95c609066
12/05/2018
CreateObject, CreateObject method [Security], CreateObject method [Security],IX509MachineEnrollmentFactory interface, IX509MachineEnrollmentFactory interface [Security],CreateObject method, IX509MachineEnrollmentFactory.CreateObject, IX509MachineEnrollmentFactory::CreateObject, certenroll/IX509MachineEnrollmentFactory::CreateObject, security.ix509machineenrollmentfactory_createobject
certenroll.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
Certenroll.idl
Windows
19H1
IX509MachineEnrollmentFactory::CreateObject
certenroll/IX509MachineEnrollmentFactory::CreateObject
c++
APIRef
kbSyntax
COM
Certenroll.h
IX509MachineEnrollmentFactory.CreateObject

IX509MachineEnrollmentFactory::CreateObject

-description

The CreateObject method creates an IX509EnrollmentHelper object on a webpage. This method is web enabled.

-parameters

-param strProgID [in]

A BSTR variable that contains the ProgID value. This must be "X509Enrollment.CX509EnrollmentHelper".

-param ppIHelper [out, retval]

Address of a pointer to a variable that receives a pointer to an IX509EnrollmentHelper interface.

-returns

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return code Description
E_INVALIDARG
The strProgID parameter cannot be NULL or empty.
E_NOINTERFACE
The strProgID parameter must contain "X509Enrollment.CX509EnrollmentHelper".
E_POINTER
The ppIHelper parameter cannot be NULL.
HRESULT_FROM_WIN32(ERROR_ARITHMETIC_OVERFLOW)
The strProgID parameter exceed 64,000 characters or contains embedded null characters.

-remarks

This method calls Initialize on the IX509EnrollmentHelper interface by using the ContextAdministratorForceMachine context value, thereby specifying that all certificates to be enrolled by the IX509Enrollment2 object will be requested by an administrator acting on behalf of a computer. To enroll a user certificate, call CreateObject on the IX509EnrollmentWebClassFactory interface.

-see-also

IX509MachineEnrollmentFactory