/usr/x86_64-w64-mingw32/include/msdrm.h is in mingw-w64-x86-64-dev 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _INC_MSDRM
#define _INC_MSDRM
#include <msdrmdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
HRESULT WINAPI DRMCreateClientSession(
DRMCALLBACK pfnCallback,
UINT uCallbackVersion,
PWSTR wszGroupIDProviderType,
PWSTR wszGroupID,
DRMHSESSION *phClient
);
HRESULT WINAPI DRMAcquireIssuanceLicenseTemplate(
DRMHSESSION hClient,
UINT uFlags,
VOID *pvReserved,
UINT cReserved,
PWSTR *pwszReserved,
PWSTR wszURL,
VOID *pvContext
);
HRESULT WINAPI DRMActivate(
DRMHSESSION hClient,
UINT uFlags,
UINT uLangID,
DRM_ACTSERV_INFO *pActServInfo,
VOID *pvContext,
HWND hParentWnd
);
HRESULT WINAPI DRMGetServiceLocation(
DRMHSESSION hClient,
UINT uServiceType,
UINT uServiceLocation,
PWSTR wszIssuanceLicense,
UINT *puServiceURLLength,
PWSTR wszServiceURL
);
HRESULT WINAPI DRMIsActivated(
DRMHSESSION hClient,
UINT uFlags,
DRM_ACTSERV_INFO *pActServInfo
);
HRESULT WINAPI DRMCheckSecurity(
DRMENVHANDLE hEnv,
UINT cLevel
);
HRESULT WINAPI DRMCloseSession(
DRMHSESSION hSession
);
HRESULT WINAPI DRMCreateLicenseStorageSession(
DRMENVHANDLE hEnv,
DRMHANDLE hDefaultLibrary,
DRMHSESSION hClient,
UINT uFlags,
PWSTR wszIssuanceLicense,
DRMHSESSION *phLicenseStorage
);
HRESULT WINAPI DRMDuplicateSession(
DRMHSESSION hSessionIn,
DRMHSESSION *phSessionOut
);
HRESULT WINAPI DRMGetClientVersion(
DRM_CLIENT_VERSION_INFO *pDRMClientVersionInfo
);
HRESULT WINAPI DRMGetEnvironmentInfo(
DRMENVHANDLE handle,
PWSTR wszAttribute,
DRMENCODINGTYPE *peEncoding,
UINT *pcBuffer,
BYTE *pbBuffer
);
HRESULT WINAPI DRMGetIntervalTime(
DRMPUBHANDLE hIssuanceLicense,
UINT *pcDays
);
HRESULT WINAPI DRMGetOwnerLicense(
DRMPUBHANDLE hIssuanceLicense,
UINT *puLength,
PWSTR wszOwnerLicense
);
HRESULT WINAPI DRMGetProcAddress(
DRMHANDLE hLibrary,
PWSTR wszProcName,
FARPROC *ppfnProcAddress
);
HRESULT WINAPI DRMGetSecurityProvider(
UINT uFlags,
UINT *puTypeLen,
PWSTR wszType,
UINT *puPathLen,
PWSTR wszPath
);
HRESULT WINAPI DRMInitEnvironment(
DRMSECURITYPROVIDERTYPE eSecurityProviderType,
DRMSPECTYPE eSpecification,
PWSTR wszSecurityProvider,
PWSTR wszManifestCredentials,
PWSTR wszMachineCredentials,
DRMENVHANDLE *phEnv,
DRMHANDLE *phDefaultLibrary
);
HRESULT WINAPI DRMLoadLibrary(
DRMENVHANDLE hEnv,
DRMSPECTYPE eSpecification,
PWSTR wszLibraryProvider,
PWSTR wszCredentials,
DRMHANDLE *phLibrary
);
HRESULT WINAPI DRMRegisterContent(
WINBOOL fRegister
);
HRESULT WINAPI DRMRegisterRevocationList(
DRMENVHANDLE hEnv,
PWSTR wszRevocationList
);
HRESULT WINAPI DRMRepair(void);
HRESULT WINAPI DRMSetIntervalTime(
DRMPUBHANDLE hIssuanceLicense,
UINT cDays
);
HRESULT WINAPI DRMSetGlobalOptions(
DRMGLOBALOPTIONS eGlobalOptions,
LPVOID pvdata,
DWORD dwlen
);
HRESULT WINAPI DRMAddRightWithUser(
DRMPUBHANDLE hIssuanceLicense,
DRMPUBHANDLE hRight,
DRMPUBHANDLE hUser
);
HRESULT WINAPI DRMClearAllRights(
DRMPUBHANDLE hIssuanceLicense
);
HRESULT WINAPI DRMCreateIssuanceLicense(
SYSTEMTIME *pstTimeFrom,
SYSTEMTIME *pstTimeUntil,
PWSTR wszReferralInfoName,
PWSTR wszReferralInfoURL,
DRMPUBHANDLE hOwner,
PWSTR wszIssuanceLicense,
DRMHANDLE hBoundLicense,
DRMPUBHANDLE *phIssuanceLicense
);
HRESULT WINAPI DRMCreateRight(
PWSTR wszRightName,
SYSTEMTIME *pstFrom,
SYSTEMTIME *pstUntil,
UINT cExtendedInfo,
PWSTR *pwszExtendedInfoName,
PWSTR *pwszExtendedInfoValue,
DRMPUBHANDLE *phRight
);
HRESULT WINAPI DRMCreateUser(
PWSTR wszUserName,
PWSTR wszUserId,
PWSTR wszUserIdType,
DRMPUBHANDLE *phUser
);
HRESULT WINAPI DRMGetApplicationSpecificData(
DRMPUBHANDLE hIssuanceLicense,
UINT uIndex,
UINT *puNameLength,
PWSTR wszName,
UINT *puValueLength,
PWSTR wszValue
);
HRESULT WINAPI DRMGetIssuanceLicenseInfo(
DRMPUBHANDLE hIssuanceLicense,
SYSTEMTIME *pstTimeFrom,
SYSTEMTIME *pstTimeUntil,
UINT uFlags,
UINT *puDistributionPointNameLength,
PWSTR wszDistributionPointName,
UINT *puDistributionPointURLLength,
PWSTR wszDistributionPointURL,
DRMPUBHANDLE *phOwner,
WINBOOL *pfOfficial
);
HRESULT WINAPI DRMGetIssuanceLicenseTemplate(
DRMPUBHANDLE hIssuanceLicense,
UINT *puIssuanceLicenseTemplateLength,
PWSTR wszIssuanceLicenseTemplate
);
HRESULT WINAPI DRMGetMetaData(
DRMPUBHANDLE hIssuanceLicense,
UINT *puContentIdLength,
PWSTR wszContentId,
UINT *puContentIdTypeLength,
PWSTR wszContentIdType,
UINT *puSKUIdLength,
PWSTR wszSKUId,
UINT *puSKUIdTypeLength,
PWSTR wszSKUIdType,
UINT *puContentTypeLength,
PWSTR wszContentType,
UINT *puContentNameLength,
PWSTR wszContentName
);
HRESULT WINAPI DRMGetNameAndDescription(
DRMPUBHANDLE hIssuanceLicense,
UINT uIndex,
UINT *pulcid,
UINT *puNameLength,
PWSTR wszName,
UINT *puDescriptionLength,
PWSTR wszDescription
);
HRESULT WINAPI DRMGetRevocationPoint(
DRMPUBHANDLE hIssuanceLicense,
UINT *puIdLength,
PWSTR wszId,
UINT *puIdTypeLength,
PWSTR wszIdType,
UINT *puURLLength,
PWSTR wszURL,
SYSTEMTIME *pstFrequency,
UINT *puNameLength,
PWSTR wszName,
UINT *puPublicKeyLength,
PWSTR wszPublicKey
);
HRESULT WINAPI DRMGetRightExtendedInfo(
DRMPUBHANDLE hRight,
UINT uIndex,
UINT *puExtendedInfoNameLength,
PWSTR wszExtendedInfoName,
UINT *puExtendedInfoValueLength,
PWSTR wszExtendedInfoValue
);
HRESULT WINAPI DRMGetRightInfo(
DRMPUBHANDLE hRight,
UINT *puRightNameLength,
PWSTR wszRightName,
SYSTEMTIME *pstFrom,
SYSTEMTIME *pstUntil
);
HRESULT WINAPI DRMGetSignedIssuanceLicense(
DRMENVHANDLE hEnv,
DRMPUBHANDLE hIssuanceLicense,
UINT uFlags,
BYTE *pbSymKey,
UINT cbSymKey,
PWSTR wszSymKeyType,
PWSTR wszClientLicensorCertificate,
DRMCALLBACK pfnCallback,
PWSTR wszURL,
VOID *pvContext
);
HRESULT WINAPI DRMGetUsagePolicy(
DRMPUBHANDLE hIssuanceLicense,
UINT uIndex,
DRM_USAGEPOLICY_TYPE *peUsagePolicyType,
WINBOOL *pfExclusion,
UINT *puNameLength,
PWSTR wszName,
UINT *puMinVersionLength,
PWSTR wszMinVersion,
UINT *puMaxVersionLength,
PWSTR wszMaxVersion,
UINT *puPublicKeyLength,
PWSTR wszPublicKey,
UINT *puDigestAlgorithmLength,
PWSTR wszDigestAlgorithm,
UINT *pcbDigest,
BYTE *pbDigest
);
HRESULT WINAPI DRMGetUserInfo(
DRMPUBHANDLE hUser,
UINT *puUserNameLength,
PWSTR wszUserName,
UINT *puUserIdLength,
PWSTR wszUserId,
UINT *puUserIdTypeLength,
PWSTR wszUserIdType
);
HRESULT WINAPI DRMGetUserRights(
DRMPUBHANDLE hIssuanceLicense,
DRMPUBHANDLE hUser,
UINT uIndex,
DRMPUBHANDLE *phRight
);
HRESULT WINAPI DRMGetUsers(
DRMPUBHANDLE hIssuanceLicense,
UINT uIndex,
DRMPUBHANDLE *phUser
);
HRESULT WINAPI DRMSetApplicationSpecificData(
DRMPUBHANDLE hIssuanceLicense,
WINBOOL fDelete,
PWSTR wszName,
PWSTR wszValue
);
HRESULT WINAPI DRMSetMetaData(
DRMPUBHANDLE hIssuanceLicense,
PWSTR wszContentId,
PWSTR wszContentIdType,
PWSTR wszSKUId,
PWSTR wszSKUIdType,
PWSTR wszContentType,
PWSTR wszContentName
);
HRESULT WINAPI DRMSetNameAndDescription(
DRMPUBHANDLE hIssuanceLicense,
WINBOOL fDelete,
UINT lcid,
PWSTR wszName,
PWSTR wszDescription
);
HRESULT WINAPI DRMSetRevocationPoint(
DRMPUBHANDLE hIssuanceLicense,
WINBOOL fDelete,
PWSTR wszId,
PWSTR wszIdType,
PWSTR wszURL,
SYSTEMTIME *pstFrequency,
PWSTR wszName,
PWSTR wszPublicKey
);
HRESULT WINAPI DRMSetUsagePolicy(
DRMPUBHANDLE hIssuanceLicense,
DRM_USAGEPOLICY_TYPE eUsagePolicyType,
WINBOOL fDelete,
WINBOOL fExclusion,
PWSTR wszName,
PWSTR wszMinVersion,
PWSTR wszMaxVersion,
PWSTR wszPublicKey,
PWSTR wszDigestAlgorithm,
BYTE *pbDigest,
UINT cbDigest
);
HRESULT WINAPI DRMCloseEnvironmentHandle(
DRMENVHANDLE hEnv
);
HRESULT WINAPI DRMCloseHandle(
DRMHANDLE handle
);
HRESULT WINAPI DRMClosePubHandle(
DRMPUBHANDLE hPub
);
HRESULT WINAPI DRMCloseQueryHandle(
DRMQUERYHANDLE hQuery
);
HRESULT WINAPI DRMDuplicateEnvironmentHandle(
DRMENVHANDLE hToCopy,
DRMENVHANDLE *phCopy
);
HRESULT WINAPI DRMDuplicateHandle(
DRMHANDLE hToCopy,
DRMHANDLE *phCopy
);
HRESULT WINAPI DRMDuplicatePubHandle(
DRMPUBHANDLE hPubIn,
DRMPUBHANDLE *phPubOut
);
HRESULT WINAPI DRMGetUnboundLicenseAttribute(
DRMQUERYHANDLE hQueryRoot,
PWSTR wszAttributeType,
UINT iWhich,
DRMENCODINGTYPE *peEncoding,
UINT *pcBuffer,
BYTE *pbBuffer
);
HRESULT WINAPI DRMGetUnboundLicenseAttributeCount(
DRMQUERYHANDLE hQueryRoot,
PWSTR wszAttributeType,
UINT *pcAttributes
);
HRESULT WINAPI DRMGetUnboundLicenseObject(
DRMQUERYHANDLE hQueryRoot,
PWSTR wszSubObjectType,
UINT iIndex,
DRMQUERYHANDLE *phSubQuery
);
HRESULT WINAPI DRMGetUnboundLicenseObjectCount(
DRMQUERYHANDLE hQueryRoot,
PWSTR wszSubObjectType,
UINT *pcSubObjects
);
HRESULT WINAPI DRMParseUnboundLicense(
PWSTR wszCertificate,
DRMQUERYHANDLE *phQueryRoot
);
HRESULT WINAPI DRMCreateBoundLicense(
DRMENVHANDLE hEnv,
DRMBOUNDLICENSEPARAMS *pParams,
PWSTR wszLicenseChain,
DRMHANDLE *phBoundLicense,
DRMHANDLE *phErrorLog
);
HRESULT WINAPI DRMCreateEnablingPrincipal(
DRMENVHANDLE hEnv,
DRMHANDLE hLibrary,
PWSTR wszObject,
DRMID *pidPrincipal,
PWSTR wszCredentials,
DRMHANDLE *pHEnablingPrincipal
);
HRESULT WINAPI DRMGetBoundLicenseAttribute(
DRMHANDLE hQueryRoot,
PWSTR wszAttribute,
UINT iWhich,
DRMENCODINGTYPE *peEncoding,
UINT *pcBuffer,
BYTE *pbBuffer
);
HRESULT WINAPI DRMGetBoundLicenseAttributeCount(
DRMHANDLE hQueryRoot,
PWSTR wszAttribute,
UINT *pcAttributes
);
HRESULT WINAPI DRMGetBoundLicenseObject(
DRMHANDLE hQueryRoot,
PWSTR wszSubObjectType,
UINT iWhich,
DRMHANDLE *phSubObject
);
HRESULT WINAPI DRMGetBoundLicenseObjectCount(
DRMHANDLE hQueryRoot,
PWSTR wszSubObjectType,
UINT *pcSubObject
);
HRESULT WINAPI DRMAcquireAdvisories(
DRMHSESSION hLicenseStorage,
PWSTR wszLicense,
PWSTR wszURL,
VOID *pvContext
);
HRESULT WINAPI DRMAcquireLicense(
DRMHSESSION hSession,
UINT uFlags,
PWSTR wszGroupIdentityCredential,
PWSTR wszRequestedRights,
PWSTR wszCustomData,
PWSTR wszURL,
VOID *pvContext
);
HRESULT WINAPI DRMAddLicense(
DRMHSESSION hLicenseStorage,
UINT uFlags,
PWSTR wszLicense
);
HRESULT WINAPI DRMConstructCertificateChain(
UINT cCertificates,
PWSTR *rgwszCertificates,
UINT *pcChain,
PWSTR wszChain
);
HRESULT WINAPI DRMDeconstructCertificateChain(
PWSTR wszChain,
UINT iWhich,
UINT *pcCert,
PWSTR wszCert
);
HRESULT WINAPI DRMDeleteLicense(
DRMHSESSION hSession,
PWSTR wszLicenseId
);
HRESULT WINAPI DRMEnumerateLicense(
DRMHSESSION hSession,
UINT uFlags,
UINT uIndex,
WINBOOL *pfSharedFlag,
UINT *puCertificateDataLen,
PWSTR wszCertificateData
);
HRESULT WINAPI DRMGetCertificateChainCount(
PWSTR wszChain,
UINT *pcCertCount
);
HRESULT WINAPI DRMAttest(
DRMHANDLE hEnablingPrincipal,
PWSTR wszData,
DRMATTESTTYPE eType,
UINT *pcStrLen,
PWSTR wszAttestedBlob
);
HRESULT WINAPI DRMCreateEnablingBitsDecryptor(
DRMHANDLE hBoundLicense,
PWSTR wszRight,
DRMHANDLE hAuxLib,
PWSTR wszAuxPlug,
DRMHANDLE *phDecryptor
);
HRESULT WINAPI DRMCreateEnablingBitsEncryptor(
DRMHANDLE hBoundLicense,
PWSTR wszRight,
DRMHANDLE hAuxLib,
PWSTR wszAuxPlug,
DRMHANDLE *phEncryptor
);
HRESULT WINAPI DRMDecrypt(
DRMHANDLE hCryptoProvider,
UINT iPosition,
UINT cNumInBytes,
BYTE *pbInData,
UINT *pcNumOutBytes,
BYTE *pbOutData
);
HRESULT WINAPI DRMEncrypt(
DRMHANDLE hCryptoProvider,
UINT iPosition,
UINT cNumInBytes,
BYTE *pbInData,
UINT *pcNumOutBytes,
BYTE *pbOutData
);
HRESULT WINAPI DRMVerify(
PWSTR wszData,
UINT *pcStrLenAttestedData,
PWSTR wszAttestedData,
DRMATTESTTYPE *peType,
UINT *pcPrincipalChain,
PWSTR wszPrincipalChain,
UINT *pcManifestChain,
PWSTR wszManifestChain
);
HRESULT WINAPI DRMDecode(
PWSTR wszAlgID,
PWSTR wszEncodedString,
UINT *puDecodedDataLen,
BYTE *pbDecodedData
);
HRESULT WINAPI DRMEncode(
PWSTR wszAlgID,
UINT uDataLen,
BYTE *pbDecodedData,
UINT *puEncodedStringLen,
PWSTR wszEncodedString
);
HRESULT WINAPI DRMGetInfo(
DRMHANDLE handle,
PWSTR wszAttribute,
DRMENCODINGTYPE *peEncoding,
UINT *pcBuffer,
BYTE *pbBuffer
);
HRESULT WINAPI DRMGetTime(
DRMENVHANDLE hEnv,
DRMTIMETYPE eTimerIdType,
SYSTEMTIME *poTimeObject
);
#if (_WIN32_WINNT >= 0x0600)
HRESULT WINAPI DRMIsWindowProtected(
HWND hwnd,
WINBOOL *pfProtected
);
HRESULT WINAPI DRMRegisterProtectedWindow(
DRMENVHANDLE hEnv,
HWND hwnd
);
HRESULT WINAPI DRMAcquireIssuanceLicenseTemplate(
DRMHSESSION hClient,
UINT uFlags,
VOID *pvReserved,
UINT cReserved,
PWSTR *pwszReserved,
PWSTR wszURL,
VOID *pvContext
);
#endif /*(_WIN32_WINNT >= 0x0600)*/
#if (_WIN32_WINNT >= 0x0601)
HRESULT WINAPI DRMGetSignedIssuanceLicenseEx(
DRMENVHANDLE hEnv,
DRMPUBHANDLE hIssuanceLicense,
UINT uFlags,
BYTE *pbSymKey,
UINT cbSymKey,
PWSTR wszSymKeyType,
VOID *pvReserved,
DRMHANDLE hEnablingPrincipal,
DRMHANDLE hBoundLicense,
DRMCALLBACK pfnCallback,
VOID *pvContext
);
#endif /*(_WIN32_WINNT >= 0x0601)*/
#ifdef __cplusplus
}
#endif
#endif /*_INC_MSDRM*/
|