1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// WARNING: this file is auto-generated by xtask gen and may be overwritten
use *;
/// Invalid message from the Mobile Device Management (MDM) server.
pub const E_DEVICE_MESSAGE_FORMAT_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR
/// The Mobile Device Management (MDM) server failed to authenticate the user. Try again or contact your system administrator.
pub const E_DEVICE_AUTHENTICATION_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_AUTHENTICATION_ERROR
/// The user is not authorized to enroll to Mobile Device Management (MDM). Try again or contact your system administrator.
pub const E_DEVICE_AUTHORIZATION_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_AUTHORIZATION_ERROR
/// The user has no permission for the certificate template or the certificate authority is unreachable. Try again or contact your system administrator.
pub const E_DEVICE_CERTIFICATEREQUEST_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR
/// The Mobile Device Management (MDM) server encountered an error. Try again or contact your system administrator.
pub const E_DEVICE_CONFIGMGRSERVER_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR
/// There was an unhandled exception on the Mobile Device Management (MDM) server. Try again or contact your system administrator.
pub const E_DEVICE_INTERNALSERVICE_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_INTERNALSERVICE_ERROR
/// The Mobile Device Management (MDM) server was not able to validate your account. Try again or contact your system administrator.
pub const E_DEVICE_INVALIDSECURITY_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_INVALIDSECURITY_ERROR
/// Unknown Mobile Device Management (MDM) server error. Try again or contact your system administrator.
pub const E_DEVICE_UNKNOWN_ERROR : HResultError = from_constant; // MENROLL_E_DEVICE_UNKNOWN_ERROR
/// Another enrollment operation is currently in progress.
pub const E_ENROLLMENT_IN_PROGRESS : HResultError = from_constant; // MENROLL_E_ENROLLMENT_IN_PROGRESS
/// The device is already enrolled.
pub const E_DEVICE_ALREADY_ENROLLED : HResultError = from_constant; // MENROLL_E_DEVICE_ALREADY_ENROLLED
/// There was a Mobile Device Management (MDM) certificate error. The security certificate date is invalid. Try again or contact your system administrator.
pub const E_DISCOVERY_SEC_CERT_DATE_INVALID : HResultError = from_constant; // MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID
/// A password is required to authenticate your account or device, but was not supplied. Please try again.
pub const E_PASSWORD_NEEDED : HResultError = from_constant; // MENROLL_E_PASSWORD_NEEDED
/// There was a problem authenticating your account or device. Try again or contact your system administrator.
pub const E_WAB_ERROR : HResultError = from_constant; // MENROLL_E_WAB_ERROR
/// There was a network error communicating with the Mobile Device Management (MDM) server. Please try again.
pub const E_CONNECTIVITY : HResultError = from_constant; // MENROLL_E_CONNECTIVITY
/// Enrollment was suspended.
pub const S_ENROLLMENT_SUSPENDED : HResultSuccess = from_constant; // MENROLL_S_ENROLLMENT_SUSPENDED
/// There was a Mobile Device Management (MDM) certificate error. Try again or contact your system administrator.
pub const E_INVALIDSSLCERT : HResultError = from_constant; // MENROLL_E_INVALIDSSLCERT
/// The account has too many devices enrolled to Mobile Device Management (MDM). Delete or unenroll old devices to fix this error.
pub const E_DEVICECAPREACHED : HResultError = from_constant; // MENROLL_E_DEVICECAPREACHED
/// The Mobile Device Management (MDM) server doesn't support this platform or version, consider upgrading your device.
pub const E_DEVICENOTSUPPORTED : HResultError = from_constant; // MENROLL_E_DEVICENOTSUPPORTED
/// Mobile Device Management (MDM) is generally not supported for this device.
pub const E_NOT_SUPPORTED : HResultError = from_constant; // MENROLL_E_NOT_SUPPORTED
/// The device is attempting to renew the Mobile Device Management (MDM) certificate, but the server rejected the request. Check renew schedule on the device.
pub const E_NOTELIGIBLETORENEW : HResultError = from_constant; // MENROLL_E_NOTELIGIBLETORENEW
/// The Mobile Device Management (MDM) server states your account is in maintenance, try again later.
pub const E_INMAINTENANCE : HResultError = from_constant; // MENROLL_E_INMAINTENANCE
/// There was an error with your Mobile Device Management (MDM) user license. Contact your system administrator.
pub const E_USER_LICENSE : HResultError = from_constant; // MENROLL_E_USER_LICENSE
/// The Mobile Device Management (MDM) server rejected the enrollment data. The server may not be configured correctly.
pub const E_ENROLLMENTDATAINVALID : HResultError = from_constant; // MENROLL_E_ENROLLMENTDATAINVALID
/// The server requested HTTP rather than HTTPS but it was not accepted.
pub const E_INSECUREREDIRECT : HResultError = from_constant; // MENROLL_E_INSECUREREDIRECT
/// An invalid operation was attempted, such as trying to enroll the same device twice or unenroll an unknown device.
pub const E_PLATFORM_WRONG_STATE : HResultError = from_constant; // MENROLL_E_PLATFORM_WRONG_STATE
/// The version of Windows installed on the client does not support this enrollment type.
pub const E_PLATFORM_LICENSE_ERROR : HResultError = from_constant; // MENROLL_E_PLATFORM_LICENSE_ERROR
/// An error occurred on the client.
pub const E_PLATFORM_UNKNOWN_ERROR : HResultError = from_constant; // MENROLL_E_PLATFORM_UNKNOWN_ERROR
/// Provisioning failed in the certificate store CSP.
pub const E_PROV_CSP_CERTSTORE : HResultError = from_constant; // MENROLL_E_PROV_CSP_CERTSTORE
/// Provisioning failed in a W7/DMAcc CSP.
pub const E_PROV_CSP_W7 : HResultError = from_constant; // MENROLL_E_PROV_CSP_W7
/// Provisioning failed in the DM client CSP.
pub const E_PROV_CSP_DMCLIENT : HResultError = from_constant; // MENROLL_E_PROV_CSP_DMCLIENT
/// Provisioning failed in the Passport for Work CSP.
pub const E_PROV_CSP_PFW : HResultError = from_constant; // MENROLL_E_PROV_CSP_PFW
/// Provisioning failed in an unspecified CSP.
pub const E_PROV_CSP_MISC : HResultError = from_constant; // MENROLL_E_PROV_CSP_MISC
/// Provisioning failed, but a specific CSP is not indicated.
pub const E_PROV_UNKNOWN : HResultError = from_constant; // MENROLL_E_PROV_UNKNOWN
/// When attempting to bind the public cert/private key, the public cert was not found either: when attempting to bind the public cert/private key, or when looking into provisioning payload.
pub const E_PROV_SSLCERTNOTFOUND : HResultError = from_constant; // MENROLL_E_PROV_SSLCERTNOTFOUND
/// Provisioning failed in the EnterpriseAppManagement CSP.
pub const E_PROV_CSP_APPMGMT : HResultError = from_constant; // MENROLL_E_PROV_CSP_APPMGMT
/// Mobile Device Management (MDM) was blocked, possibly by Group Policy or the local management agent.
pub const E_DEVICE_MANAGEMENT_BLOCKED : HResultError = from_constant; // MENROLL_E_DEVICE_MANAGEMENT_BLOCKED
/// Failed to create the private key.
pub const E_CERTPOLICY_PRIVATEKEYCREATION_FAILED : HResultError = from_constant; // MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED
/// Certificate Authentication was requested, but failed to find a certificate to use.
pub const E_CERTAUTH_FAILED_TO_FIND_CERT : HResultError = from_constant; // MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT
/// The server responded with HTTP 200, but the message was empty.
pub const E_EMPTY_MESSAGE : HResultError = from_constant; // MENROLL_E_EMPTY_MESSAGE
/// The user canceled the operation.
pub const E_USER_CANCELLED : HResultError = from_constant; // MENROLL_E_USER_CANCELLED
/// Mobile Device Management (MDM) is not configured.
pub const E_MDM_NOT_CONFIGURED : HResultError = from_constant; // MENROLL_E_MDM_NOT_CONFIGURED