Aracılığıyla paylaş


Encrypt file flags

Constants for specifying the type of file input.

IPCF_EF_FLAG_DEFAULT

0

Uses all of the default settings for IpcfEncryptFile.

By default, IpcfEncryptFile will try to apply the new policy specified in pvLicenseInfo.

When the file is already encrypted, if the new policy is different from the old one in the current file or the protector to be used to protect this type of file, specified by administrator configuration, is different from the one already used in encrypting the current file, the file will be decrypted and re-encrypted with the new policy or new protectors.

IPCF_EF_FLAG_UPDATELICENSE_BLOCKED

1

When this flag is specified, if the file is already encrypted, the file will not be decrypted and re-encrypted with the new policy.

IPC_EF_FLAG_KEY_NO_PERSIST

2

Use this flag to prevent a key from being cached locally and inserted within the serialized license.

If this flag is used, the content creator must contact the RMS server in order to access the content.

IPC_EF_FLAG_KEY_NO_PERSIST_DISK

4

Use this flag to prevent a key from being cached locally but the key can be inserted within the serialized license.

IPC_EF_FLAG_KEY_NO_PERSIST_LICENSE

8

Use this flag to prevent a key from being inserted within the serialized license but cached locally in license store.

IPCF_EF_FLAG_FORCE_PFILE

0x00000010

Specifying this flag will cause the File Api to ignore the admin specified rules for encryption and create a pfile that can be opened by any application.

This flag cannot be used along with IPCF_EF_FLAG_FORCE_NATIVE

IPCF_EF_FLAG_FORCE_NATIVE

0x00000020

Specifying this flag will make the file only opened by RMS aware applications.

This flag cannot be used along with IPCF_EF_FLAG_FORCE_PFILE

Requirements

Minimum supported client
Windows Vista with SP2
Minimum supported server
Windows Server 2008
Header
Ipcfile.h (include Msipc.h)