Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
Loading...
Searching...
No Matches
policy_handler_cc.h File Reference

Contains C API definitions for policy handler. More...

Go to the source code of this file.

Typedefs

typedef mip_cc_handlemip_cc_policy_handler
 

Functions

 MIP_CC_API (void) MIP_CC_ReleasePolicyHandler(mip_cc_policy_handler handler)
 Release resources associated with a policy handler.
 
 MIP_CC_API (mip_cc_result) MIP_CC_PolicyHandler_GetSensitivityLabel(const mip_cc_policy_handler handler
 Gets a document's current label.
 

Variables

const mip_cc_document_statedocumentState
 
const mip_cc_document_state const void * context
 
const mip_cc_document_state const void mip_cc_content_labelcontentLabel
 
const mip_cc_document_state const void mip_cc_content_label mip_cc_errorerrorInfo
 
const mip_cc_document_state const mip_cc_application_action_stateapplicationState
 
const mip_cc_document_state const mip_cc_application_action_state const void mip_cc_action_resultactionResult
 

Detailed Description

Contains C API definitions for policy handler.

Typedef Documentation

◆ mip_cc_policy_handler

Function Documentation

◆ MIP_CC_API() [1/2]

MIP_CC_API ( mip_cc_result ) const

Gets a document's current label.

Called by application after computed actions have been applied and data committed to disk.

Executes policy rules based on the provided state and determines corresponding actions.

Parameters
handlerPolicy handler
documentStateDocument state
contextApplication context opaquely forwarded to any callbacks
contentLabelLabel currently applied to a document
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Parameters
handlerPolicy handler
documentStateDocument state
applicationStateApplication action state
contextApplication context opaquely forwarded to any callbacks
actionResult[Output] Actions that should be taken by application, memory owned by caller
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Note
The 'actionResult' variable must be released by the caller by calling MIP_CC_ReleaseActionResult
Parameters
handlerPolicy handler
documentStateDocument state
applicationStateApplication action state
contextApplication context opaquely forwarded to any callbacks
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Note
A call to this function is necessary to transmit complete label audit data.

◆ MIP_CC_API() [2/2]

MIP_CC_API ( void )

Release resources associated with a policy handler.

Parameters
handlerPolicy handler to release

Variable Documentation

◆ actionResult

◆ applicationState

◆ contentLabel

const mip_cc_document_state const void mip_cc_content_label* contentLabel

◆ context

const mip_cc_document_state const mip_cc_application_action_state const void* context

◆ documentState

const mip_cc_document_state * documentState

◆ errorInfo