Microsoft Information Protection (MIP) SDK for C: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C
Loading...
Searching...
No Matches
result_cc.h File Reference

Defines success/error result codes. More...

#include <stdint.h>
#include "mip_cc/mip_macros_cc.h"
+ Include dependency graph for result_cc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  mip_cc_result {
  MIP_RESULT_SUCCESS = 0 ,
  MIP_RESULT_ERROR_UNKNOWN = 1 ,
  MIP_RESULT_ERROR_INSUFFICIENT_BUFFER = 2 ,
  MIP_RESULT_ERROR_BAD_INPUT = 3 ,
  MIP_RESULT_ERROR_FILE_IO_ERROR = 4 ,
  MIP_RESULT_ERROR_NETWORK = 5 ,
  MIP_RESULT_ERROR_INTERNAL = 6 ,
  MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED = 7 ,
  MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION = 8 ,
  MIP_RESULT_ERROR_PRIVILEGED_REQUIRED = 9 ,
  MIP_RESULT_ERROR_ACCESS_DENIED = 10 ,
  MIP_RESULT_ERROR_CONSENT_DENIED = 11 ,
  MIP_RESULT_ERROR_NO_PERMISSIONS = 12 ,
  MIP_RESULT_ERROR_NO_AUTH_TOKEN = 13 ,
  MIP_RESULT_ERROR_SERVICE_DISABLED = 14 ,
  MIP_RESULT_ERROR_PROXY_AUTH = 15 ,
  MIP_RESULT_ERROR_NO_POLICY = 16 ,
  MIP_RESULT_ERROR_OPERATION_CANCELLED = 17 ,
  MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED = 18 ,
  MIP_RESULT_ERROR_DEPRECATED_API = 19 ,
  MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND = 20 ,
  MIP_RESULT_ERROR_LABEL_NOT_FOUND = 21 ,
  MIP_RESULT_ERROR_LABEL_DISABLED = 22 ,
  MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED = 23 ,
  MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED = 24 ,
  MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED = 25 ,
  MIP_RESULT_ERROR_TEMPLATE_ARCHIVED = 26 ,
  MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE = 27
}
 API success/failure result. More...
 

Detailed Description

Defines success/error result codes.

Definition in file result_cc.h.

Enumeration Type Documentation

◆ mip_cc_result

API success/failure result.

Enumerator
MIP_RESULT_SUCCESS 
MIP_RESULT_ERROR_UNKNOWN 

Unknown error.

MIP_RESULT_ERROR_INSUFFICIENT_BUFFER 

Buffer provided by application is too small.

MIP_RESULT_ERROR_BAD_INPUT 

Application passed bad input.

MIP_RESULT_ERROR_FILE_IO_ERROR 

General file i/o error.

MIP_RESULT_ERROR_NETWORK 

General network error (e.g.

unreachable service)

MIP_RESULT_ERROR_INTERNAL 

Unexpected internal error.

MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED 

Justification should be provided to complete the action on the file.

MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION 

Opeation is not supported.

MIP_RESULT_ERROR_PRIVILEGED_REQUIRED 

Cannot override privileged label when with standard method.

MIP_RESULT_ERROR_ACCESS_DENIED 

User does not have rights to access the service.

MIP_RESULT_ERROR_CONSENT_DENIED 

An operation that required consent from the user was not granted consent.

MIP_RESULT_ERROR_NO_PERMISSIONS 

The user could not get access to the content (e.g.

no permissions, content revoked)

MIP_RESULT_ERROR_NO_AUTH_TOKEN 

The user could not get access to the content due to an empty auth token.

MIP_RESULT_ERROR_SERVICE_DISABLED 

The user could not get access to the content due to the service being disabled.

MIP_RESULT_ERROR_PROXY_AUTH 

Proxy authentication failed.

MIP_RESULT_ERROR_NO_POLICY 

No policy is configured for user/tenant.

MIP_RESULT_ERROR_OPERATION_CANCELLED 

Operation cancelled.

MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED 

Ad-hoc protection should be set to complete the action on the file.

MIP_RESULT_ERROR_DEPRECATED_API 

Caller invoked a deprecated API.

MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND 

Template ID is not recognized.

MIP_RESULT_ERROR_LABEL_NOT_FOUND 

Label ID is not recognized.

MIP_RESULT_ERROR_LABEL_DISABLED 

Label is disabled or inactive.

MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED 

The double key feature has not been enabled.

MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED 

License not registered for tracking and revocation.

MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED 

Content format is not supported.

MIP_RESULT_ERROR_TEMPLATE_ARCHIVED 

Template has been archived and is unavailable for protection.

MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE 

Bring your own encryption key needed and unavailable.

Definition at line 44 of file result_cc.h.

44 {
46
47 // MIP C API errors
48 MIP_RESULT_ERROR_UNKNOWN = 1, /**< Unknown error */
49 MIP_RESULT_ERROR_INSUFFICIENT_BUFFER = 2, /**< Buffer provided by application is too small */
50
51 // MIP C++ exceptions
52 MIP_RESULT_ERROR_BAD_INPUT = 3, /**< Application passed bad input */
53 MIP_RESULT_ERROR_FILE_IO_ERROR = 4, /**< General file i/o error */
54 MIP_RESULT_ERROR_NETWORK = 5, /**< General network error (e.g. unreachable service) */
55 MIP_RESULT_ERROR_INTERNAL = 6, /**< Unexpected internal error */
56 MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED = 7, /**< Justification should be provided to complete the action on the file. */
57 MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION = 8, /**< Opeation is not supported */
58 MIP_RESULT_ERROR_PRIVILEGED_REQUIRED = 9, /**< Cannot override privileged label when with standard method */
59 MIP_RESULT_ERROR_ACCESS_DENIED = 10, /**< User does not have rights to access the service */
60 MIP_RESULT_ERROR_CONSENT_DENIED = 11, /**< An operation that required consent from the user was not granted consent */
61 MIP_RESULT_ERROR_NO_PERMISSIONS = 12, /**< The user could not get access to the content (e.g. no permissions, content revoked) */
62 MIP_RESULT_ERROR_NO_AUTH_TOKEN = 13, /**< The user could not get access to the content due to an empty auth token */
63 MIP_RESULT_ERROR_SERVICE_DISABLED = 14, /**< The user could not get access to the content due to the service being disabled */
64 MIP_RESULT_ERROR_PROXY_AUTH = 15, /**< Proxy authentication failed */
65 MIP_RESULT_ERROR_NO_POLICY = 16, /**< No policy is configured for user/tenant */
66 MIP_RESULT_ERROR_OPERATION_CANCELLED = 17, /**< Operation cancelled */
67 MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED = 18, /**< Ad-hoc protection should be set to complete the action on the file */
68 MIP_RESULT_ERROR_DEPRECATED_API = 19, /**< Caller invoked a deprecated API */
69 MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND = 20, /**< Template ID is not recognized */
70 MIP_RESULT_ERROR_LABEL_NOT_FOUND = 21, /**< Label ID is not recognized */
71 MIP_RESULT_ERROR_LABEL_DISABLED = 22, /**< Label is disabled or inactive */
72 MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED = 23, /**< The double key feature has not been enabled */
73 MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED = 24, /**< License not registered for tracking and revocation */
74 MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED = 25, /**< Content format is not supported */
75 MIP_RESULT_ERROR_TEMPLATE_ARCHIVED = 26, /**< Template has been archived and is unavailable for protection */
76 MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE = 27, /**< Bring your own encryption key needed and unavailable */
mip_cc_result
API success/failure result.
Definition result_cc.h:44
@ MIP_RESULT_ERROR_DOUBLE_KEY_DISABLED
The double key feature has not been enabled.
Definition result_cc.h:72
@ MIP_RESULT_ERROR_LICENSE_NOT_REGISTERED
License not registered for tracking and revocation.
Definition result_cc.h:73
@ MIP_RESULT_ERROR_PRIVILEGED_REQUIRED
Cannot override privileged label when with standard method.
Definition result_cc.h:58
@ MIP_RESULT_ERROR_CONTENT_FORMAT_NOT_SUPPORTED
Content format is not supported.
Definition result_cc.h:74
@ MIP_RESULT_ERROR_UNKNOWN
Unknown error.
Definition result_cc.h:48
@ MIP_RESULT_ERROR_NOT_SUPPORTED_OPERATION
Opeation is not supported.
Definition result_cc.h:57
@ MIP_RESULT_ERROR_CONSENT_DENIED
An operation that required consent from the user was not granted consent.
Definition result_cc.h:60
@ MIP_RESULT_ERROR_TEMPLATE_ARCHIVED
Template has been archived and is unavailable for protection.
Definition result_cc.h:75
@ MIP_RESULT_ERROR_SERVICE_DISABLED
The user could not get access to the content due to the service being disabled.
Definition result_cc.h:63
@ MIP_RESULT_SUCCESS
Definition result_cc.h:45
@ MIP_RESULT_ERROR_FILE_IO_ERROR
General file i/o error.
Definition result_cc.h:53
@ MIP_RESULT_ERROR_LABEL_NOT_FOUND
Label ID is not recognized.
Definition result_cc.h:70
@ MIP_RESULT_ERROR_PROXY_AUTH
Proxy authentication failed.
Definition result_cc.h:64
@ MIP_RESULT_ERROR_NETWORK
General network error (e.g.
Definition result_cc.h:54
@ MIP_RESULT_ERROR_NO_PERMISSIONS
The user could not get access to the content (e.g.
Definition result_cc.h:61
@ MIP_RESULT_ERROR_BAD_INPUT
Application passed bad input.
Definition result_cc.h:52
@ MIP_RESULT_ERROR_JUSTIFICATION_REQUIRED
Justification should be provided to complete the action on the file.
Definition result_cc.h:56
@ MIP_RESULT_ERROR_DEPRECATED_API
Caller invoked a deprecated API.
Definition result_cc.h:68
@ MIP_RESULT_ERROR_INTERNAL
Unexpected internal error.
Definition result_cc.h:55
@ MIP_RESULT_ERROR_NO_POLICY
No policy is configured for user/tenant.
Definition result_cc.h:65
@ MIP_RESULT_ERROR_TEMPLATE_NOT_FOUND
Template ID is not recognized.
Definition result_cc.h:69
@ MIP_RESULT_ERROR_ADHOC_PROTECTION_REQUIRED
Ad-hoc protection should be set to complete the action on the file.
Definition result_cc.h:67
@ MIP_RESULT_ERROR_LABEL_DISABLED
Label is disabled or inactive.
Definition result_cc.h:71
@ MIP_RESULT_ERROR_ACCESS_DENIED
User does not have rights to access the service.
Definition result_cc.h:59
@ MIP_RESULT_ERROR_INSUFFICIENT_BUFFER
Buffer provided by application is too small.
Definition result_cc.h:49
@ MIP_RESULT_ERROR_NO_AUTH_TOKEN
The user could not get access to the content due to an empty auth token.
Definition result_cc.h:62
@ MIP_RESULT_ERROR_OPERATION_CANCELLED
Operation cancelled.
Definition result_cc.h:66
@ MIP_RESULT_ERROR_CUSTOMER_KEY_UNAVAILABLE
Bring your own encryption key needed and unavailable.
Definition result_cc.h:76