78 references to SafeNativeMethods
WindowsBase (78)
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (40)
68
int hr =
SafeNativeMethods
.DRMCreateClientSession(
279
int hr =
SafeNativeMethods
.DRMAcquireLicense(
310
int hr =
SafeNativeMethods
.DRMInitEnvironment(
327
return (0 ==
SafeNativeMethods
.DRMIsActivated(_hSession, (uint)activateFlags, null));
397
int hr =
SafeNativeMethods
.DRMDeleteLicense(_hSession, licenseId);
511
hr =
SafeNativeMethods
.DRMEnumerateLicense(
528
hr =
SafeNativeMethods
.DRMEnumerateLicense(
568
int hr =
SafeNativeMethods
.DRMGetSignedIssuanceLicense(
606
int hr =
SafeNativeMethods
.DRMCreateLicenseStorageSession(
632
hr =
SafeNativeMethods
.DRMAcquireLicense(
731
hr =
SafeNativeMethods
.DRMCreateBoundLicense(
1035
int hr =
SafeNativeMethods
.DRMActivate(
1056
int hr =
SafeNativeMethods
.DRMGetServiceLocation(
1072
hr =
SafeNativeMethods
.DRMGetServiceLocation(
1087
int hr =
SafeNativeMethods
.DRMGetOwnerLicense(
1096
hr =
SafeNativeMethods
.DRMGetOwnerLicense(
1111
int hr =
SafeNativeMethods
.DRMDeconstructCertificateChain(
1124
hr =
SafeNativeMethods
.DRMDeconstructCertificateChain(
1144
int hr =
SafeNativeMethods
.DRMGetUnboundLicenseAttribute(
1162
hr =
SafeNativeMethods
.DRMGetUnboundLicenseAttribute(
1221
int hr =
SafeNativeMethods
.DRMGetUnboundLicenseAttribute(
1306
hr =
SafeNativeMethods
.DRMParseUnboundLicense(
1329
hr =
SafeNativeMethods
.DRMParseUnboundLicense(
1339
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1386
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(
1415
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(useLicense, out queryRootHandle);
1464
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(
1475
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1621
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(
1632
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1645
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1685
int hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1714
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1728
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1769
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(publishLicense, out queryRootHandle);
1780
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1853
int hr =
SafeNativeMethods
.DRMParseUnboundLicense(publishLicense, out queryRootHandle);
1865
hr =
SafeNativeMethods
.DRMGetUnboundLicenseObject(
1937
int hr =
SafeNativeMethods
.DRMGetSecurityProvider(0,
1950
hr =
SafeNativeMethods
.DRMGetSecurityProvider(0,
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (27)
146
hr =
SafeNativeMethods
.DRMCreateIssuanceLicense(
164
SafeNativeMethods
.DRMSetIntervalTime(_issuanceLicenseHandle, (uint)rightValidityIntervalDays);
196
hr =
SafeNativeMethods
.DRMSetMetaData(
229
int hr =
SafeNativeMethods
.DRMGetIssuanceLicenseTemplate(
238
hr =
SafeNativeMethods
.DRMGetIssuanceLicenseTemplate(
283
int hr =
SafeNativeMethods
.DRMGetIntervalTime(_issuanceLicenseHandle, ref validityDays);
423
int hr =
SafeNativeMethods
.DRMAddRightWithUser(
438
int hr =
SafeNativeMethods
.DRMSetNameAndDescription(
449
int hr =
SafeNativeMethods
.DRMSetApplicationSpecificData(
475
int hr =
SafeNativeMethods
.DRMCreateRight(
501
hr =
SafeNativeMethods
.DRMCreateUser(
510
hr =
SafeNativeMethods
.DRMCreateUser(
531
int hr =
SafeNativeMethods
.DRMGetRightInfo(rightHandle,
542
hr =
SafeNativeMethods
.DRMGetRightInfo(rightHandle,
564
int hr =
SafeNativeMethods
.DRMGetUserInfo(userHandle,
588
hr =
SafeNativeMethods
.DRMGetUserInfo(userHandle,
649
int hr =
SafeNativeMethods
.DRMGetUsers(
680
int hr =
SafeNativeMethods
.DRMGetNameAndDescription(
709
hr =
SafeNativeMethods
.DRMGetNameAndDescription(
736
int hr =
SafeNativeMethods
.DRMGetApplicationSpecificData(
771
hr =
SafeNativeMethods
.DRMGetApplicationSpecificData(
799
int hr =
SafeNativeMethods
.DRMGetUserRights(_issuanceLicenseHandle, userHandle, (uint)index, out rightHandle);
837
int hr =
SafeNativeMethods
.DRMGetIssuanceLicenseInfo(
878
hr =
SafeNativeMethods
.DRMGetIssuanceLicenseInfo(
932
int hr =
SafeNativeMethods
.DRMSetRevocationPoint(
958
int hr =
SafeNativeMethods
.DRMGetRevocationPoint(
1010
hr =
SafeNativeMethods
.DRMGetRevocationPoint(
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementEnvironmentHandle.cs (1)
55
z =
SafeNativeMethods
.DRMCloseEnvironmentHandle((uint)this.handle);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementHandle.cs (1)
55
z =
SafeNativeMethods
.DRMCloseHandle((uint)this.handle);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementPubHandle.cs (1)
55
z =
SafeNativeMethods
.DRMClosePubHandle((uint)this.handle);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementQueryHandle.cs (1)
55
z =
SafeNativeMethods
.DRMCloseQueryHandle((uint)this.handle);
Base\MS\Internal\Security\RightsManagement\SafeRightsManagementSessionHandle.cs (1)
55
z =
SafeNativeMethods
.DRMCloseSession((uint)this.handle);
Base\System\Security\RightsManagement\CryptoProvider.cs (6)
129
hr =
SafeNativeMethods
.DRMEncrypt(
188
hr =
SafeNativeMethods
.DRMDecrypt(
433
int hr =
SafeNativeMethods
.DRMGetInfo(DecryptorHandle,
445
hr =
SafeNativeMethods
.DRMGetInfo(DecryptorHandle,
471
int hr =
SafeNativeMethods
.DRMCreateEnablingBitsDecryptor(
503
int hr =
SafeNativeMethods
.DRMCreateEnablingBitsEncryptor(