ImportPFXFlags enumeration (certenroll.h)

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

Flags to use when importing a PFX certificate.

Syntax

typedef enum ImportPFXFlags {
  ImportNone = 0,
  ImportMachineContext = 0x1,
  ImportForceOverwrite = 0x2,
  ImportSilent = 0x4,
  ImportSaveProperties = 0x8,
  ImportExportable = 0x10,
  ImportExportableEncrypted = 0x20,
  ImportNoUserProtected = 0x40,
  ImportUserProtected = 0x80,
  ImportUserProtectedHigh = 0x100,
  ImportInstallCertificate = 0x200,
  ImportInstallChain = 0x400,
  ImportInstallChainAndRoot = 0x800
} ;

Constants

 
ImportNone
Value: 0
None
ImportMachineContext
Value: 0x1
Import the PFX certificate into the machine certificate store; otherwise install to the user certificate store.
ImportForceOverwrite
Value: 0x2
Overwrite existing certificate, if exists.
ImportSilent
Value: 0x4
Silently perform the operation (do not show a user interface).
ImportSaveProperties
Value: 0x8
Save Properties on the imported PFX file.
ImportExportable
Value: 0x10
Import the PFX certificate’s private key as exportable
ImportExportableEncrypted
Value: 0x20
Import the PFX certificate’s private key as exportable and encrypted.
ImportNoUserProtected
Value: 0x40
Import the PFX certificate’s private key to not require consent.
ImportUserProtected
Value: 0x80
Import the PFX certificate’s private key to require consent without a password.
ImportUserProtectedHigh
Value: 0x100
Import the PFX certificate’s private key to require consent with a password.
ImportInstallCertificate
Value: 0x200
Install the PFX certificate to the certificate store.
ImportInstallChain
Value: 0x400
Install the PFX certificate’s chain to the certificate store.
ImportInstallChainAndRoot
Value: 0x800
Install the PFX certificate’s chain and root to the certificate store.

Requirements

Requirement Value
Header certenroll.h