SetUserFileEncryptionKey function

Expand
This topic has not yet been rated - Rate this topic

SetUserFileEncryptionKey function

Applies to: desktop apps only

Sets the user's current key to the specified certificate.

Syntax

DWORD WINAPI SetUserFileEncryptionKey(
  __in  PENCRYPTION_CERTIFICATE pEncryptionCertificate
);

Parameters

pEncryptionCertificate [in]

A pointer to a certificate that will be the user's key. This parameter is a pointer to an ENCRYPTION_CERTIFICATE structure.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a system error code. For a complete list of error codes, see System Error Codes or the header file WinError.h.

Requirements

Minimum supported client

Windows XP Professional

Minimum supported server

Windows Server 2003

Header

Winefs.h (include Windows.h)

Library

Advapi32.lib

DLL

Advapi32.dll

See also

ENCRYPTION_CERTIFICATE
File Encryption
File Management Functions

 

 

Send comments about this topic to Microsoft

Build date: 5/5/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD