129 references to RightsManagementFailureCode
WindowsBase (129)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (12)
514
if (hr == (int)
RightsManagementFailureCode
.NoMoreData)
654
throw new RightsManagementException(
RightsManagementFailureCode
.LicenseAcquisitionFailed);
1059
if (hr == (int)
RightsManagementFailureCode
.UseDefault)
1147
if (hr == (int)
RightsManagementFailureCode
.QueryReportsNoResults)
1227
throw new RightsManagementException(
RightsManagementFailureCode
.InvalidLicense);
1230
if ((hr == (int)
RightsManagementFailureCode
.NoMoreData) ||
1231
(hr == (int)
RightsManagementFailureCode
.QueryReportsNoResults))
1691
if ((hr == (int)
RightsManagementFailureCode
.NoMoreData) ||
1692
(hr == (int)
RightsManagementFailureCode
.QueryReportsNoResults))
1734
if ((hr != (int)
RightsManagementFailureCode
.NoMoreData) &&
1735
(hr != (int)
RightsManagementFailureCode
.QueryReportsNoResults))
1870
if (hr == (int)
RightsManagementFailureCode
.QueryReportsNoResults)
Base\MS\Internal\Security\RightsManagement\Errors.cs (97)
34
internal static string GetLocalizedFailureCodeMessageWithDefault(
RightsManagementFailureCode
failureCode)
69
string errorMessage = GetLocalizedFailureCodeMessage((
RightsManagementFailureCode
)hr);
72
throw new RightsManagementException((
RightsManagementFailureCode
)hr, errorMessage);
94
private static string GetLocalizedFailureCodeMessage(
RightsManagementFailureCode
failureCode)
99
case
RightsManagementFailureCode
.InvalidLicense:
101
case
RightsManagementFailureCode
.InfoNotInLicense:
103
case
RightsManagementFailureCode
.InvalidLicenseSignature:
105
case
RightsManagementFailureCode
.EncryptionNotPermitted:
107
case
RightsManagementFailureCode
.RightNotGranted:
109
case
RightsManagementFailureCode
.InvalidVersion:
111
case
RightsManagementFailureCode
.InvalidEncodingType:
113
case
RightsManagementFailureCode
.InvalidNumericalValue:
115
case
RightsManagementFailureCode
.InvalidAlgorithmType:
117
case
RightsManagementFailureCode
.EnvironmentNotLoaded:
119
case
RightsManagementFailureCode
.EnvironmentCannotLoad:
121
case
RightsManagementFailureCode
.TooManyLoadedEnvironments:
123
case
RightsManagementFailureCode
.IncompatibleObjects:
125
case
RightsManagementFailureCode
.LibraryFail:
127
case
RightsManagementFailureCode
.EnablingPrincipalFailure:
129
case
RightsManagementFailureCode
.InfoNotPresent:
131
case
RightsManagementFailureCode
.BadGetInfoQuery:
133
case
RightsManagementFailureCode
.KeyTypeUnsupported:
135
case
RightsManagementFailureCode
.CryptoOperationUnsupported:
137
case
RightsManagementFailureCode
.ClockRollbackDetected:
139
case
RightsManagementFailureCode
.QueryReportsNoResults:
141
case
RightsManagementFailureCode
.UnexpectedException:
143
case
RightsManagementFailureCode
.BindValidityTimeViolated:
145
case
RightsManagementFailureCode
.BrokenCertChain:
147
case
RightsManagementFailureCode
.BindPolicyViolation:
149
case
RightsManagementFailureCode
.ManifestPolicyViolation:
151
case
RightsManagementFailureCode
.BindRevokedLicense:
153
case
RightsManagementFailureCode
.BindRevokedIssuer:
155
case
RightsManagementFailureCode
.BindRevokedPrincipal:
157
case
RightsManagementFailureCode
.BindRevokedResource:
159
case
RightsManagementFailureCode
.BindRevokedModule:
161
case
RightsManagementFailureCode
.BindContentNotInEndUseLicense:
163
case
RightsManagementFailureCode
.BindAccessPrincipalNotEnabling:
165
case
RightsManagementFailureCode
.BindAccessUnsatisfied:
167
case
RightsManagementFailureCode
.BindIndicatedPrincipalMissing:
169
case
RightsManagementFailureCode
.BindMachineNotFoundInGroupIdentity:
171
case
RightsManagementFailureCode
.LibraryUnsupportedPlugIn:
173
case
RightsManagementFailureCode
.BindRevocationListStale:
175
case
RightsManagementFailureCode
.BindNoApplicableRevocationList:
177
case
RightsManagementFailureCode
.InvalidHandle:
179
case
RightsManagementFailureCode
.BindIntervalTimeViolated:
181
case
RightsManagementFailureCode
.BindNoSatisfiedRightsGroup:
183
case
RightsManagementFailureCode
.BindSpecifiedWorkMissing:
185
case
RightsManagementFailureCode
.NoMoreData:
187
case
RightsManagementFailureCode
.LicenseAcquisitionFailed:
189
case
RightsManagementFailureCode
.IdMismatch:
191
case
RightsManagementFailureCode
.TooManyCertificates:
193
case
RightsManagementFailureCode
.NoDistributionPointUrlFound:
195
case
RightsManagementFailureCode
.AlreadyInProgress:
197
case
RightsManagementFailureCode
.GroupIdentityNotSet:
199
case
RightsManagementFailureCode
.RecordNotFound:
201
case
RightsManagementFailureCode
.NoConnect:
203
case
RightsManagementFailureCode
.NoLicense:
205
case
RightsManagementFailureCode
.NeedsMachineActivation:
207
case
RightsManagementFailureCode
.NeedsGroupIdentityActivation:
209
case
RightsManagementFailureCode
.ActivationFailed:
211
case
RightsManagementFailureCode
.Aborted:
213
case
RightsManagementFailureCode
.OutOfQuota:
215
case
RightsManagementFailureCode
.AuthenticationFailed:
217
case
RightsManagementFailureCode
.ServerError:
219
case
RightsManagementFailureCode
.InstallationFailed:
221
case
RightsManagementFailureCode
.HidCorrupted:
223
case
RightsManagementFailureCode
.InvalidServerResponse:
225
case
RightsManagementFailureCode
.ServiceNotFound:
227
case
RightsManagementFailureCode
.UseDefault:
229
case
RightsManagementFailureCode
.ServerNotFound:
231
case
RightsManagementFailureCode
.InvalidEmail:
233
case
RightsManagementFailureCode
.ValidityTimeViolation:
235
case
RightsManagementFailureCode
.OutdatedModule:
237
case
RightsManagementFailureCode
.ServiceMoved:
239
case
RightsManagementFailureCode
.ServiceGone:
241
case
RightsManagementFailureCode
.AdEntryNotFound:
243
case
RightsManagementFailureCode
.NotAChain:
245
case
RightsManagementFailureCode
.RequestDenied:
247
case
RightsManagementFailureCode
.NotSet:
249
case
RightsManagementFailureCode
.MetadataNotSet:
251
case
RightsManagementFailureCode
.RevocationInfoNotSet:
253
case
RightsManagementFailureCode
.InvalidTimeInfo:
255
case
RightsManagementFailureCode
.RightNotSet:
257
case
RightsManagementFailureCode
.LicenseBindingToWindowsIdentityFailed:
259
case
RightsManagementFailureCode
.InvalidIssuanceLicenseTemplate:
261
case
RightsManagementFailureCode
.InvalidKeyLength:
263
case
RightsManagementFailureCode
.ExpiredOfficialIssuanceLicenseTemplate:
265
case
RightsManagementFailureCode
.InvalidClientLicensorCertificate:
267
case
RightsManagementFailureCode
.HidInvalid:
269
case
RightsManagementFailureCode
.EmailNotVerified:
271
case
RightsManagementFailureCode
.DebuggerDetected:
273
case
RightsManagementFailureCode
.InvalidLockboxType:
275
case
RightsManagementFailureCode
.InvalidLockboxPath:
277
case
RightsManagementFailureCode
.InvalidRegistryPath:
279
case
RightsManagementFailureCode
.NoAesCryptoProvider:
281
case
RightsManagementFailureCode
.GlobalOptionAlreadySet:
283
case
RightsManagementFailureCode
.OwnerLicenseNotFound:
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (6)
642
throw new RightsManagementException(
RightsManagementFailureCode
.InvalidLicense);
653
if (hr == (int)
RightsManagementFailureCode
.NoMoreData)
690
if (hr == (int)
RightsManagementFailureCode
.NoMoreData)
745
if (hr == (int)
RightsManagementFailureCode
.NoMoreData)
802
if (hr == (int)
RightsManagementFailureCode
.NoMoreData)
971
if (hr == (int)
RightsManagementFailureCode
.RevocationInfoNotSet)
Base\System\Security\RightsManagement\CryptoProvider.cs (3)
100
throw new RightsManagementException(
RightsManagementFailureCode
.EncryptionNotPermitted);
160
throw new RightsManagementException(
RightsManagementFailureCode
.RightNotGranted);
402
throw new RightsManagementException(
RightsManagementFailureCode
.RightNotGranted);
Base\System\Security\RightsManagement\Exceptions.cs (7)
69
public RightsManagementException(
RightsManagementFailureCode
failureCode) :
87
public RightsManagementException(
RightsManagementFailureCode
failureCode, string message) :
103
public RightsManagementException(
RightsManagementFailureCode
failureCode, Exception innerException) :
122
public RightsManagementException(
RightsManagementFailureCode
failureCode, string message, Exception innerException) :
138
_failureCode = (
RightsManagementFailureCode
)info.GetInt32(_serializationFailureCodeAttributeName);
166
public
RightsManagementFailureCode
FailureCode
174
private
RightsManagementFailureCode
_failureCode;
Base\System\Security\RightsManagement\PublishLicense.cs (2)
77
throw new RightsManagementException(
RightsManagementFailureCode
.InvalidLicense);
88
throw new RightsManagementException(
RightsManagementFailureCode
.InvalidLicense);
Base\System\Security\RightsManagement\SecureEnvironment.cs (1)
303
throw new RightsManagementException(
RightsManagementFailureCode
.NeedsGroupIdentityActivation);
Base\System\Security\RightsManagement\UseLicense.cs (1)
75
throw new RightsManagementException(
RightsManagementFailureCode
.InvalidLicense);