Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
dynamic_watermark_cc.h
Go to the documentation of this file.
1#ifndef API_MIP_DYNAMIC_WATERMARK_CC_H_
2#define API_MIP_DYNAMIC_WATERMARK_CC_H_
3
5#include "mip_cc/error_cc.h"
6
8
9/**
10 * @brief Gets size of buffer required to store format string
11 *
12 * @param dynamicWatermark Dynamic watermark associated with protected content
13 * @param formatStringSize [Output] Size of buffer to hold format string (in number of chars)
14 * @param errorInfo [Output] (Optional) Failure info if operation result is error
15 *
16 * @return Result code indicating success or failure
17 */
18MIP_CC_API(mip_cc_result) MIP_CC_DynamicWatermark_GetFormatStringSize(
22
23/**
24 * @brief Gets the raw formatted string the admin has configured, which may include variables such as
25 * ${Consumer.PrincipalName}.
26 * This string can be populated from the label in the protection flow
27 * or it can be populated from the use license in the consumption flow.
28 *
29 * @param dynamicWatermark Dynamic watermark associated with protected content
30 * @param formatStringBuffer [Output] The raw format string configured by admin
31 * @param formatStringBufferSize Size (in number of chars) of the formatStringBuffer
32 * @param actualFormatStringSize [Output] Number of chars written to the buffer
33 * @param errorInfo [Output] (Optional) Failure info if operation result is error
34 *
35 * @return Result code indicating success or failure
36 *
37 * @note If formatStringBuffer is null or of insufficient size, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER
38 * will be returned and actualFormatStringSize will be set to the minimum required buffer size.
39 */
40MIP_CC_API(mip_cc_result) MIP_CC_DynamicWatermark_GetFormatString(
46
47/**
48 * @brief Gets size of buffer required to store the string returned by \ref MIP_CC_DynamicWatermark_GetText
49 *
50 * @param dynamicWatermark Dynamic watermark associated with protected content
51 * @param textSize [Output] Size of buffer to hold the dynamic watermark text (in number of chars)
52 * @param errorInfo [Output] (Optional) Failure info if operation result is error
53 *
54 * @return Result code indicating success or failure
55 */
56MIP_CC_API(mip_cc_result) MIP_CC_DynamicWatermark_GetTextSize(
58 int64_t* textSize,
60
61/**
62 * @brief Gets the text which will be displayed to the end user by replacing the variables
63 * in the format string.
64 *
65 * @param dynamicWatermark Dynamic watermark associated with protected content
66 * @param textBuffer [Output] the filled in text for the dynamic watermark
67 * @param textBufferSize Size (in number of chars) of the textBuffer
68 * @param actualTextSize [Output] Number of chars written to the textBuffer
69 * @param errorInfo [Output] (Optional) Failure info if operation result is error
70 *
71 * @return Result code indicating success or failure
72 *
73 * @note If textBuffer is null or of insufficient size, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER
74 * will be returned and actualTextSize will be set to the minimum required buffer size.
75 */
76MIP_CC_API(mip_cc_result) MIP_CC_DynamicWatermark_GetText(
79 const int64_t textBufferSize,
82
83/**
84 * @brief Function to release a dynamic watermark handle
85 *
86 * @param dynamicWatermark The dynamic watermark handle to release
87 */
88MIP_CC_API_IMPL(void) MIP_CC_ReleaseDynamicWatermark(mip_cc_dynamic_watermark dynamicWatermark);
89
90#endif // API_MIP_DYNAMIC_WATERMARK_H_
A file Containing the common types used by the upe, file and protection modules.
mip_cc_dynamic_watermark * dynamicWatermark
MIP_CC_API(void) MIP_CC_ReleaseDictionary(mip_cc_dictionary dictionary)
Release resources associated with a dictionary.
char const int64_t formatStringBufferSize
mip_cc_handle * mip_cc_dynamic_watermark
int64_t * textSize
int64_t * formatStringSize
char const int64_t int64_t * actualFormatStringSize
int64_t mip_cc_error * errorInfo
char const int64_t int64_t * actualTextSize
char * formatStringBuffer
MIP_CC_API_IMPL(void) MIP_CC_ReleaseDynamicWatermark(mip_cc_dynamic_watermark dynamicWatermark)
Function to release a dynamic watermark handle.
char const int64_t textBufferSize
char * textBuffer
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.