Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
action_cc.h
Go to the documentation of this file.
1/*
2*
3* Copyright (c) Microsoft Corporation.
4* All rights reserved.
5*
6* This code is licensed under the MIT License.
7*
8* Permission is hereby granted, free of charge, to any person obtaining a copy
9* of this software and associated documentation files(the "Software"), to deal
10* in the Software without restriction, including without limitation the rights
11* to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12* copies of the Software, and to permit persons to whom the Software is
13* furnished to do so, subject to the following conditions :
14*
15* The above copyright notice and this permission notice shall be included in
16* all copies or substantial portions of the Software.
17*
18* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24* THE SOFTWARE.
25*
26*/
27/**
28* @brief Contains C API definitions for label policy actions
29*
30* @file action_cc.h
31*/
32
33#ifndef API_MIP_UPE_ACTION_CC_H_
34#define API_MIP_UPE_ACTION_CC_H_
35
37#include "mip_cc/error_cc.h"
38#include "mip_cc/result_cc.h"
39
41
42/**
43 * @brief Action type bit mask
44 */
45typedef enum {
46 MIP_ACTION_TYPE_ADD_CONTENT_FOOTER = 1 << 0, /**< Add a content footer to the document action type.*/
47 MIP_ACTION_TYPE_ADD_CONTENT_HEADER = 1 << 1, /**< Add a content header to the document action type.*/
48 MIP_ACTION_TYPE_ADD_WATERMARK = 1 << 2, /**< Add a water mark to the entire document action type.*/
49 MIP_ACTION_TYPE_CUSTOM = 1 << 3, /**< A custom defined action type.*/
50 MIP_ACTION_TYPE_JUSTIFY = 1 << 4, /**< A justify action type.*/
51 MIP_ACTION_TYPE_METADATA = 1 << 5, /**< A Meta data change action type.*/
52 MIP_ACTION_TYPE_PROTECT_ADHOC = 1 << 6, /**< A protect by adhoc policy action type.*/
53 MIP_ACTION_TYPE_PROTECT_BY_TEMPLATE = 1 << 7, /**< A protect by template action type.*/
54 MIP_ACTION_TYPE_PROTECT_DO_NOT_FORWARD = 1 << 8, /**< A protect by do not forward action type.*/
55 MIP_ACTION_TYPE_REMOVE_CONTENT_FOOTER = 1 << 9, /**< Remove content footer action type.*/
56 MIP_ACTION_TYPE_REMOVE_CONTENT_HEADER = 1 << 10, /**< Remove content header action type.*/
57 MIP_ACTION_TYPE_REMOVE_PROTECTION = 1 << 11, /**< Remove protection action type.*/
58 MIP_ACTION_TYPE_REMOVE_WATERMARK = 1 << 12, /**< Remove watermarking action type.*/
59 MIP_ACTION_TYPE_APPLY_LABEL = 1 << 13, /**< Apply label action type.*/
60 MIP_ACTION_TYPE_RECOMMEND_LABEL = 1 << 14, /**< Recommend label action type.*/
61 MIP_ACTION_TYPE_PROTECT_ADHOC_DK = 1 << 15, /**< A protect by adhoc policy action type.*/
62 // Reserved
63 MIP_ACTION_TYPE_PROTECT_DO_NOT_FORWARD_DK = 1 << 17,/**< A protect by do not forward action type.*/
64 MIP_ACTION_TYPE_PROTECT_BY_ENCRYPT_ONLY = 1 << 18, /**< A protect by encryption action type.*/
66
67/**
68 * @brief Gets an action's type
69 *
70 * @param action Action
71 * @param actionType [Output] Type of action
72 * @param errorInfo [Output] (Optional) Failure info if operation result is error
73 *
74 * @return Result code indicating success or failure
75 */
76MIP_CC_API(mip_cc_result) MIP_CC_Action_GetType(
77 const mip_cc_action action,
80
81/**
82 * @brief Gets an action's ID
83 *
84 * @param action Action
85 * @param id [Output] Unique action ID
86 * @param errorInfo [Output] (Optional) Failure info if operation result is error
87 *
88 * @return Result code indicating success or failure
89 */
90MIP_CC_API(mip_cc_result) MIP_CC_Action_GetId(
91 const mip_cc_action action,
94
95#endif // API_MIP_UPE_ACTION_CC_H_
mip_cc_action_type
Action type bit mask.
Definition action_cc.h:45
@ MIP_ACTION_TYPE_ADD_CONTENT_HEADER
Add a content header to the document action type.
Definition action_cc.h:47
@ MIP_ACTION_TYPE_JUSTIFY
A justify action type.
Definition action_cc.h:50
@ MIP_ACTION_TYPE_REMOVE_CONTENT_HEADER
Remove content header action type.
Definition action_cc.h:56
@ MIP_ACTION_TYPE_RECOMMEND_LABEL
Recommend label action type.
Definition action_cc.h:60
@ MIP_ACTION_TYPE_ADD_CONTENT_FOOTER
Add a content footer to the document action type.
Definition action_cc.h:46
@ MIP_ACTION_TYPE_REMOVE_CONTENT_FOOTER
Remove content footer action type.
Definition action_cc.h:55
@ MIP_ACTION_TYPE_PROTECT_BY_TEMPLATE
A protect by template action type.
Definition action_cc.h:53
@ MIP_ACTION_TYPE_PROTECT_DO_NOT_FORWARD
A protect by do not forward action type.
Definition action_cc.h:54
@ MIP_ACTION_TYPE_ADD_WATERMARK
Add a water mark to the entire document action type.
Definition action_cc.h:48
@ MIP_ACTION_TYPE_METADATA
A Meta data change action type.
Definition action_cc.h:51
@ MIP_ACTION_TYPE_REMOVE_PROTECTION
Remove protection action type.
Definition action_cc.h:57
@ MIP_ACTION_TYPE_PROTECT_ADHOC
A protect by adhoc policy action type.
Definition action_cc.h:52
@ MIP_ACTION_TYPE_PROTECT_BY_ENCRYPT_ONLY
A protect by encryption action type.
Definition action_cc.h:64
@ MIP_ACTION_TYPE_REMOVE_WATERMARK
Remove watermarking action type.
Definition action_cc.h:58
@ MIP_ACTION_TYPE_CUSTOM
A custom defined action type.
Definition action_cc.h:49
@ MIP_ACTION_TYPE_PROTECT_DO_NOT_FORWARD_DK
A protect by do not forward action type.
Definition action_cc.h:63
@ MIP_ACTION_TYPE_APPLY_LABEL
Apply label action type.
Definition action_cc.h:59
@ MIP_ACTION_TYPE_PROTECT_ADHOC_DK
A protect by adhoc policy action type.
Definition action_cc.h:61
mip_cc_action_type mip_cc_error * errorInfo
Definition action_cc.h:79
mip_cc_action_type * actionType
Definition action_cc.h:78
mip_cc_handle * mip_cc_action
Definition action_cc.h:40
A file Containing the common types used by the upe, file and protection modules.
MIP_CC_API(void) MIP_CC_ReleaseDictionary(mip_cc_dictionary dictionary)
Release resources associated with a dictionary.
Error definition and functions.
Defines success/error result codes.
mip_cc_result
API success/failure result.
Definition result_cc.h:44
Error information.
Definition error_cc.h:79
Opaque handle to MIP object.