Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
add_content_header_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 "add content header" label policy action
29*
30* @file add_content_header_action_cc.h
31*/
32
33#ifndef API_MIP_UPE_ADD_CONTENT_HEADER_ACTION_CC_H_
34#define API_MIP_UPE_ADD_CONTENT_HEADER_ACTION_CC_H_
35
36#include "mip_cc/error_cc.h"
38
39/**
40 * @brief Gets size of buffer required to store an "add content header" action's UI element name
41 *
42 * @param action "add content header" action
43 * @param nameSize [Output] Size of buffer to hold UI element name (in number of chars)
44 * @param errorInfo [Output] (Optional) Failure info if operation result is error
45 *
46 * @return Result code indicating success or failure
47 */
48MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetUIElementNameSize(
49 const mip_cc_action action,
50 int64_t* nameSize,
52
53/**
54 * @brief Gets an "add content header" action's UI element name
55 *
56 * @param action "add content header" action
57 * @param nameBuffer [Output] Buffer the UI element name will be copied into.
58 * @param nameBufferSize Size (in number of chars) of the nameBuffer.
59 * @param actualNameSize [Output] Number of chars written to the buffer
60 * @param errorInfo [Output] (Optional) Failure info if operation result is error
61 *
62 * @return Result code indicating success or failure
63 *
64 * @note If nameBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
65 * actualNameSize will be set to the minimum required buffer size.
66 */
67MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetUIElementName(
68 const mip_cc_action action,
70 const int64_t nameBufferSize,
73
74/**
75 * @brief Gets size of buffer required to store an "add content header" action's text
76 *
77 * @param action "add content header" action
78 * @param nameSize [Output] Size of buffer to hold text (in number of chars)
79 * @param errorInfo [Output] (Optional) Failure info if operation result is error
80 *
81 * @return Result code indicating success or failure
82 */
83MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetTextSize(
84 const mip_cc_action action,
85 int64_t* textSize,
87
88/**
89 * @brief Gets an "add content header" action's text
90 *
91 * @param action "add content header" action
92 * @param textBuffer [Output] Buffer the text will be copied into.
93 * @param textBufferSize Size (in number of chars) of the textBuffer.
94 * @param actualTextSize [Output] Number of chars written to the buffer
95 * @param errorInfo [Output] (Optional) Failure info if operation result is error
96 *
97 * @return Result code indicating success or failure
98 *
99 * @note If textBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
100 * actualTextSize will be set to the minimum required buffer size.
101 */
102MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetText(
103 const mip_cc_action action,
105 const int64_t textBufferSize,
108
109/**
110 * @brief Gets size of buffer required to store an "add content header" action's font name
111 *
112 * @param action "add content header" action
113 * @param nameSize [Output] Size of buffer to hold font name (in number of chars)
114 * @param errorInfo [Output] (Optional) Failure info if operation result is error
115 *
116 * @return Result code indicating success or failure
117 */
118MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetFontNameSize(
119 const mip_cc_action action,
120 int64_t* nameSize,
122
123/**
124 * @brief Gets an "add content header" action's font name
125 *
126 * @param action "add content header" action
127 * @param nameBuffer [Output] Buffer the font name will be copied into.
128 * @param nameBufferSize Size (in number of chars) of the nameBuffer.
129 * @param actualNameSize [Output] Number of chars written to the buffer
130 * @param errorInfo [Output] (Optional) Failure info if operation result is error
131 *
132 * @return Result code indicating success or failure
133 *
134 * @note If nameBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
135 * actualNameSize will be set to the minimum required buffer size.
136 */
137MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetFontName(
138 const mip_cc_action action,
139 char* nameBuffer,
140 const int64_t nameBufferSize,
141 int64_t* actualNameSize,
143
144/**
145 * @brief Gets the integer font size
146 *
147 * @param action "add content header" action
148 * @param fontSize [Output] Font size
149 * @param errorInfo [Output] (Optional) Failure info if operation result is error
150 *
151 * @return Result code indicating success or failure
152 */
153MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetFontSize(
154 const mip_cc_action action,
155 int32_t* fontSize,
157
158/**
159 * @brief Gets size of buffer required to store an "add content header" action's font color
160 *
161 * @param action "add content header" action
162 * @param colorSize [Output] Size of buffer to hold font color (in number of chars)
163 * @param errorInfo [Output] (Optional) Failure info if operation result is error
164 *
165 * @return Result code indicating success or failure
166 */
167MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetFontColorSize(
168 const mip_cc_action action,
169 int64_t* colorSize,
171
172/**
173 * @brief Gets an "add content header" action's font color (for example, "#000000")
174 *
175 * @param action "add content header" action
176 * @param colorBuffer [Output] Buffer the font color will be copied into.
177 * @param colorBufferSize Size (in number of chars) of the colorBuffer.
178 * @param actualColorSize [Output] Number of chars written to the buffer
179 * @param errorInfo [Output] (Optional) Failure info if operation result is error
180 *
181 * @return Result code indicating success or failure
182 *
183 * @note If colorBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
184 * actualColorSize will be set to the minimum required buffer size.
185 */
186MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetFontColor(
187 const mip_cc_action action,
189 const int64_t colorBufferSize,
192
193/**
194 * @brief Gets the alignment
195 *
196 * @param action "add content header" action
197 * @param alignment [Output] Alignment
198 * @param errorInfo [Output] (Optional) Failure info if operation result is error
199 *
200 * @return Result code indicating success or failure
201 */
202MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetAlignment(
203 const mip_cc_action action,
206
207/**
208 * @brief Gets the margin size
209 *
210 * @param action "add content header" action
211 * @param marginSize [Output] Margin size (in mm)
212 * @param errorInfo [Output] (Optional) Failure info if operation result is error
213 *
214 * @return Result code indicating success or failure
215 */
216MIP_CC_API(mip_cc_result) MIP_CC_AddContentHeaderAction_GetMargin(
217 const mip_cc_action action,
218 int32_t* marginSize,
220
221#endif // API_MIP_UPE_ADD_CONTENT_HEADER_ACTION_CC_H_
Contains C API definitions for label policy actions.
char const int64_t int64_t * actualColorSize
int64_t * nameSize
int64_t * colorSize
int32_t * marginSize
mip_cc_content_mark_alignment * alignment
int64_t mip_cc_error * errorInfo
char const int64_t int64_t * actualNameSize
int32_t * fontSize
int64_t * textSize
char const int64_t nameBufferSize
char const int64_t int64_t * actualTextSize
char const int64_t colorBufferSize
char const int64_t textBufferSize
mip_cc_content_mark_alignment
Alignment for content marks (content header or content footer)
MIP_CC_API(void) MIP_CC_ReleaseDictionary(mip_cc_dictionary dictionary)
Release resources associated with a dictionary.
Error definition and functions.
mip_cc_result
API success/failure result.
Definition result_cc.h:44
Error information.
Definition error_cc.h:79
Opaque handle to MIP object.