ProtectionPolicyManager.ProtectedAccessSuspending ProtectionPolicyManager.ProtectedAccessSuspending ProtectionPolicyManager.ProtectedAccessSuspending ProtectionPolicyManager.ProtectedAccessSuspending ProtectionPolicyManager.ProtectedAccessSuspending Event

Definition

Note

Windows Information Protection (WIP) policy cannot be applied on Windows 10, version 1511 (build 10586) or earlier.

Event with which the app registers to receive notification that protection is to be suspended.

public : event EventHandler<ProtectedAccessSuspendingEventArgs> ProtectedAccessSuspending
// Register
event_token ProtectedAccessSuspending(EventHandler<ProtectedAccessSuspendingEventArgs> const& handler) const;

// Revoke with event_token
void ProtectedAccessSuspending(event_token const& cookie) const;

// Revoke with event_revoker
ProtectedAccessSuspending_revoker ProtectedAccessSuspending(auto_revoke_t, EventHandler<ProtectedAccessSuspendingEventArgs> const& handler) const;
public event EventHandler<ProtectedAccessSuspendingEventArgs> ProtectedAccessSuspending
Public Event ProtectedAccessSuspending As EventHandler (Of ProtectedAccessSuspendingEventArgs)
function onProtectedAccessSuspending(eventArgs){/* Your code */}


protectionPolicyManager.addEventListener("protectedaccesssuspending", onProtectedAccessSuspending);
protectionPolicyManager.removeEventListener("protectedaccesssuspending", onProtectedAccessSuspending);

Remarks

An app that is designed to handle enterprise content must make sure that it does not keep any sensitive data in memory. To ensure this, it registers for the ProtectedAccessSuspending and ProtectedAccessResumed events to be notified when, for instance, the device is locked or unlocked. ProtectedAccessSuspending is fired before data protection keys provisioned on the device are temporarily removed. These keys are removed when the device is locked in order to prevent unauthorized access to encrypted data while the device is locked. ProtectedAccessResumed is fired once the keys are available again upon device unlock. When the device is locked, the app makes sure that it protects any sensitive content in memory with the DataProtectionManager. It also closes open file handles to its protected files to ensure that the system does not cache any sensitive data in memory.

See also