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

Defines C-Style TemplateDescriptor functions. More...

Go to the source code of this file.

Typedefs

typedef mip_cc_handlemip_cc_template_descriptor
 

Functions

 MIP_CC_API (mip_cc_result) MIP_CC_TemplateDescriptor_GetId(const mip_cc_template_descriptor protectionDescriptor
 Gets template ID.
 
 MIP_CC_API (void) MIP_CC_ReleaseTemplateDescriptor(mip_cc_template_descriptor templateDescriptor)
 Release resources associated with a template descriptor.
 

Variables

mip_cc_guidtemplateId
 
mip_cc_guid mip_cc_errorerrorInfo
 
int64_t * nameSize
 
char * nameBuffer
 
char const int64_t nameBufferSize
 
char const int64_t int64_t * actualNameSize
 
int64_t * descriptionSize
 

Detailed Description

Defines C-Style TemplateDescriptor functions.

Typedef Documentation

◆ mip_cc_template_descriptor

Function Documentation

◆ MIP_CC_API() [1/2]

MIP_CC_API ( mip_cc_result ) const

Gets template ID.

Gets Template description.

Gets size of buffer required to store description.

Gets Template name.

Gets size of buffer required to store name.

Parameters
protectionDescriptorDescriptor associated with protected content
templateId[Output] Template ID associated with protection
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Parameters
templateDescriptorDescriptor associated with template
nameSize[Output] Size of buffer to hold name (in number of chars)
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Parameters
templateDescriptorDescriptor associated with template
nameBuffer[Output] Buffer the name will be copied into.
nameBufferSizeSize (in number of chars) of the nameBuffer.
actualNameSize[Output] Number of chars written to the buffer
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Note
If NameBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualNameSize will be set to the minimum required buffer size.
Parameters
templateDescriptorDescriptor associated with template
descriptionSize[Output] Size of buffer to hold description (in number of chars)
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Parameters
templateDescriptorDescriptor associated with template
descriptionBuffer[Output] Buffer the description will be copied into.
descriptionBufferSizeSize (in number of chars) of the descriptionBuffer.
actualNameSize[Output] Number of chars written to the buffer
errorInfo[Output] (Optional) Failure info if operation result is error
Returns
Result code indicating success or failure
Note
If descriptionBuffer is null or insufficient, MIP_RESULT_ERROR_INSUFFICIENT_BUFFER will be returned and actualDescriptionSize will be set to the minimum required buffer size.

◆ MIP_CC_API() [2/2]

MIP_CC_API ( void )

Release resources associated with a template descriptor.

Parameters
templateDescriptorTemplate descriptor to be released

Variable Documentation

◆ actualNameSize

char const int64_t int64_t * actualNameSize

◆ descriptionSize

int64_t* descriptionSize

◆ errorInfo

char const int64_t int64_t mip_cc_error* errorInfo

◆ nameBuffer

char * nameBuffer

◆ nameBufferSize

char const int64_t nameBufferSize

◆ nameSize

int64_t * nameSize

◆ templateId

mip_cc_guid* templateId