Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
add_watermark_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 watermark" label policy action
29*
30* @file add_watermark_action_cc.h
31*/
32
33#ifndef API_MIP_UPE_ADD_WATERMARK_ACTION_CC_H_
34#define API_MIP_UPE_ADD_WATERMARK_ACTION_CC_H_
35
36#include "mip_cc/error_cc.h"
38
39/**
40 * @brief Gets size of buffer required to store an "add watermark" action's UI element name
41 *
42 * @param action "add watermark" 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_AddWatermarkAction_GetUIElementNameSize(
49 const mip_cc_action action,
50 int64_t* nameSize,
52
53/**
54 * @brief Gets an "add watermark" action's UI element name
55 *
56 * @param action "add watermark" 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_AddWatermarkAction_GetUIElementName(
68 const mip_cc_action action,
70 const int64_t nameBufferSize,
73
74/**
75 * @brief Gets the watermark layout
76 *
77 * @param action "add watermark" action
78 * @param layout [Output] Watermark layout
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_AddWatermarkAction_GetLayout(
84 const mip_cc_action action,
87
88/**
89 * @brief Gets size of buffer required to store an "add watermark" action's text
90 *
91 * @param action "add watermark" action
92 * @param textSize [Output] Size of buffer to hold text (in number of chars)
93 * @param errorInfo [Output] (Optional) Failure info if operation result is error
94 *
95 * @return Result code indicating success or failure
96 */
97MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetTextSize(
98 const mip_cc_action action,
99 int64_t* textSize,
101
102/**
103 * @brief Gets an "add watermark" action's text
104 *
105 * @param action "add watermark" action
106 * @param textBuffer [Output] Buffer the text will be copied into.
107 * @param textBufferSize Size (in number of chars) of the textBuffer.
108 * @param actualTextSize [Output] Number of chars written to the buffer
109 * @param errorInfo [Output] (Optional) Failure info if operation result is error
110 *
111 * @return Result code indicating success or failure
112 *
113 * @note If textBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
114 * actualTextSize will be set to the minimum required buffer size.
115 */
116MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetText(
117 const mip_cc_action action,
119 const int64_t textBufferSize,
122
123/**
124 * @brief Gets size of buffer required to store an "add watermark" action's font name
125 *
126 * @param action "add watermark" action
127 * @param nameSize [Output] Size of buffer to hold font name (in number of chars)
128 * @param errorInfo [Output] (Optional) Failure info if operation result is error
129 *
130 * @return Result code indicating success or failure
131 */
132MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetFontNameSize(
133 const mip_cc_action action,
134 int64_t* nameSize,
136
137/**
138 * @brief Gets an "add watermark" action's font name
139 *
140 * @param action "add watermark" action
141 * @param nameBuffer [Output] Buffer the font name will be copied into.
142 * @param nameBufferSize Size (in number of chars) of the nameBuffer.
143 * @param actualNameSize [Output] Number of chars written to the buffer
144 * @param errorInfo [Output] (Optional) Failure info if operation result is error
145 *
146 * @return Result code indicating success or failure
147 *
148 * @note If nameBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
149 * actualNameSize will be set to the minimum required buffer size.
150 */
151MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetFontName(
152 const mip_cc_action action,
153 char* nameBuffer,
154 const int64_t nameBufferSize,
155 int64_t* actualNameSize,
157
158/**
159 * @brief Gets the integer font size
160 *
161 * @param action "add watermark" action
162 * @param fontSize [Output] Font size
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_AddWatermarkAction_GetFontSize(
168 const mip_cc_action action,
169 int32_t* fontSize,
171
172/**
173 * @brief Gets size of buffer required to store an "add watermark" action's font color
174 *
175 * @param action "add watermark" action
176 * @param colorSize [Output] Size of buffer to hold font color (in number of chars)
177 * @param errorInfo [Output] (Optional) Failure info if operation result is error
178 *
179 * @return Result code indicating success or failure
180 */
181MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetFontColorSize(
182 const mip_cc_action action,
183 int64_t* colorSize,
185
186/**
187 * @brief Gets an "add watermark" action's font color (for example, "#000000")
188 *
189 * @param action "add watermark" action
190 * @param colorBuffer [Output] Buffer the font color will be copied into.
191 * @param colorBufferSize Size (in number of chars) of the colorBuffer.
192 * @param actualColorSize [Output] Number of chars written to the buffer
193 * @param errorInfo [Output] (Optional) Failure info if operation result is error
194 *
195 * @return Result code indicating success or failure
196 *
197 * @note If colorBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and
198 * actualColorSize will be set to the minimum required buffer size.
199 */
200MIP_CC_API(mip_cc_result) MIP_CC_AddWatermarkAction_GetFontColor(
201 const mip_cc_action action,
203 const int64_t colorBufferSize,
206
207#endif // API_MIP_UPE_ADD_WATERMARK_ACTION_CC_H_
Contains C API definitions for label policy actions.
char const int64_t int64_t * actualColorSize
int64_t * nameSize
int64_t * colorSize
char const int64_t int64_t * actualNameSize
int32_t * fontSize
int64_t * textSize
char * colorBuffer
int64_t mip_cc_error * errorInfo
mip_cc_watermark_layout * layout
char const int64_t nameBufferSize
char const int64_t int64_t * actualTextSize
char const int64_t colorBufferSize
char const int64_t textBufferSize
char * nameBuffer
char * textBuffer
mip_cc_watermark_layout
Layout for watermarks.
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.