Skip to content

Latest commit

 

History

History
126 lines (103 loc) · 5.96 KB

nf-xenroll-icenroll-put_spcfilename.md

File metadata and controls

126 lines (103 loc) · 5.96 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:xenroll.ICEnroll.put_SPCFileName
ICEnroll::put_SPCFileName (xenroll.h)
Sets or retrieves the name of the file to which to write the base64-encoded PKCS (Put)
CEnroll object [Security]
SPCFileName property
ICEnroll interface [Security]
SPCFileName property
ICEnroll.SPCFileName
ICEnroll.put_SPCFileName
ICEnroll2 interface [Security]
SPCFileName property
ICEnroll2.SPCFileName
ICEnroll2::get_SPCFileName
ICEnroll2::put_SPCFileName
ICEnroll3 interface [Security]
SPCFileName property
ICEnroll3.SPCFileName
ICEnroll3::get_SPCFileName
ICEnroll3::put_SPCFileName
ICEnroll4 interface [Security]
SPCFileName property
ICEnroll4.SPCFileName
ICEnroll4::SPCFileName
ICEnroll4::get_SPCFileName
ICEnroll4::put_SPCFileName
ICEnroll::get_SPCFileName
ICEnroll::put_SPCFileName
SPCFileName property [Security]
SPCFileName property [Security]
CEnroll object
SPCFileName property [Security]
ICEnroll interface
SPCFileName property [Security]
ICEnroll2 interface
SPCFileName property [Security]
ICEnroll3 interface
SPCFileName property [Security]
ICEnroll4 interface
put_SPCFileName
security.icenroll4_spcfilename
xenroll/ICEnroll2::SPCFileName
xenroll/ICEnroll2::get_SPCFileName
xenroll/ICEnroll2::put_SPCFileName
xenroll/ICEnroll3::SPCFileName
xenroll/ICEnroll3::get_SPCFileName
xenroll/ICEnroll3::put_SPCFileName
xenroll/ICEnroll4::SPCFileName
xenroll/ICEnroll4::get_SPCFileName
xenroll/ICEnroll4::put_SPCFileName
xenroll/ICEnroll::SPCFileName
xenroll/ICEnroll::get_SPCFileName
xenroll/ICEnroll::put_SPCFileName
security\icenroll4_spcfilename.htm
security
4ff2f111-31bd-4ed4-a335-2db536477660
12/05/2018
CEnroll object [Security],SPCFileName property, ICEnroll interface [Security],SPCFileName property, ICEnroll.SPCFileName, ICEnroll.put_SPCFileName, ICEnroll2 interface [Security],SPCFileName property, ICEnroll2.SPCFileName, ICEnroll2::get_SPCFileName, ICEnroll2::put_SPCFileName, ICEnroll3 interface [Security],SPCFileName property, ICEnroll3.SPCFileName, ICEnroll3::get_SPCFileName, ICEnroll3::put_SPCFileName, ICEnroll4 interface [Security],SPCFileName property, ICEnroll4.SPCFileName, ICEnroll4::SPCFileName, ICEnroll4::get_SPCFileName, ICEnroll4::put_SPCFileName, ICEnroll::get_SPCFileName, ICEnroll::put_SPCFileName, SPCFileName property [Security], SPCFileName property [Security],CEnroll object, SPCFileName property [Security],ICEnroll interface, SPCFileName property [Security],ICEnroll2 interface, SPCFileName property [Security],ICEnroll3 interface, SPCFileName property [Security],ICEnroll4 interface, put_SPCFileName, security.icenroll4_spcfilename, xenroll/ICEnroll2::SPCFileName, xenroll/ICEnroll2::get_SPCFileName, xenroll/ICEnroll2::put_SPCFileName, xenroll/ICEnroll3::SPCFileName, xenroll/ICEnroll3::get_SPCFileName, xenroll/ICEnroll3::put_SPCFileName, xenroll/ICEnroll4::SPCFileName, xenroll/ICEnroll4::get_SPCFileName, xenroll/ICEnroll4::put_SPCFileName, xenroll/ICEnroll::SPCFileName, xenroll/ICEnroll::get_SPCFileName, xenroll/ICEnroll::put_SPCFileName
xenroll.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Uuid.lib
Xenroll.dll
Windows
19H1
ICEnroll::put_SPCFileName
xenroll/ICEnroll::put_SPCFileName
c++
APIRef
kbSyntax
COM
Xenroll.dll
ICEnroll4.SPCFileName
ICEnroll4.get_SPCFileName
ICEnroll4.put_SPCFileName
ICEnroll3.SPCFileName
ICEnroll3.get_SPCFileName
ICEnroll3.put_SPCFileName
ICEnroll2.SPCFileName
ICEnroll2.get_SPCFileName
ICEnroll2.put_SPCFileName
ICEnroll.SPCFileName
ICEnroll.get_SPCFileName
ICEnroll.put_SPCFileName
CEnroll.SPCFileName

ICEnroll::put_SPCFileName

-description

[This property is no longer available for use as of Windows Server 2008 and Windows Vista.]

The SPCFileName property sets or retrieves the name of the file to which to write the base64-encoded PKCS #7 (in BSTR form) as returned from the certification authority.

This property was first defined in the ICEnroll interface.

This property is read/write.

-parameters

-remarks

The file is written as a binary PKCS #7. Specifying this file does not affect the acceptance of the certificates into any of the user's stores.

If the file already exists, the user is notified and prompted for permission to overwrite it.

SPCFileName affects the behavior of the following methods:

Examples

BSTR     bstrSPCFile = NULL;
BSTR     bstrNewSPCFile = NULL;
HRESULT  hr;

// pEnroll is previously instantiated ICEnroll interface pointer

// get the SPCFileName
hr = pEnroll->get_SPCFileName( &bstrSPCFile );
if (FAILED( hr ))
    printf("Failed get_SPCFileName - %x\n", hr );
else
    printf( "SPCFileName: %ws\n", bstrSPCFile );
// free BSTR when done
if ( NULL != bstrSPCFile )
    SysFreeString( bstrSPCFile );

// set the SPCFileName, for example, "MyFile.SPC".
bstrNewSPCFile = SysAllocString(TEXT("<FILENAMEHERE>"));

hr = pEnroll->put_SPCFileName( bstrNewSPCFile );
if (FAILED( hr ))
    printf("Failed put_SPCFileName - %x\n", hr );
else
    printf( "SPCFileName set to %ws\n", bstrNewSPCFile );
// free BSTR when done
if ( NULL != bstrNewSPCFile )
    SysFreeString( bstrNewSPCFile );