/usr/i586-mingw32msvc/include/ddk/cfgmgr32.h is in mingw32-runtime 3.15.2-0ubuntu1.
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 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 | /*
* cfgmgr32.h
*
* PnP configuration manager
*
* This file is part of the w32api package.
*
* Contributors:
* Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
*
* THIS SOFTWARE IS NOT COPYRIGHTED
*
* This source code is offered for use in the public domain. You may
* use, modify or distribute it freely.
*
* This code is distributed in the hope that it will be useful but
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
* DISCLAIMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/
#ifndef __CFGMGR32_H
#define __CFGMGR32_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include "ntddk.h"
#if defined(_CFGMGR32_)
#define CMAPI DECLSPEC_EXPORT
#else
#define CMAPI DECLSPEC_IMPORT
#endif
#include "cfg.h"
#include <pshpack1.h>
#define CR_SUCCESS 0x00000000
#define CR_DEFAULT 0x00000001
#define CR_OUT_OF_MEMORY 0x00000002
#define CR_INVALID_POINTER 0x00000003
#define CR_INVALID_FLAG 0x00000004
#define CR_INVALID_DEVNODE 0x00000005
#define CR_INVALID_DEVINST CR_INVALID_DEVNODE
#define CR_INVALID_RES_DES 0x00000006
#define CR_INVALID_LOG_CONF 0x00000007
#define CR_INVALID_ARBITRATOR 0x00000008
#define CR_INVALID_NODELIST 0x00000009
#define CR_DEVNODE_HAS_REQS 0x0000000A
#define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS
#define CR_INVALID_RESOURCEID 0x0000000B
#define CR_DLVXD_NOT_FOUND 0x0000000C
#define CR_NO_SUCH_DEVNODE 0x0000000D
#define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE
#define CR_NO_MORE_LOG_CONF 0x0000000E
#define CR_NO_MORE_RES_DES 0x0000000F
#define CR_ALREADY_SUCH_DEVNODE 0x00000010
#define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE
#define CR_INVALID_RANGE_LIST 0x00000011
#define CR_INVALID_RANGE 0x00000012
#define CR_FAILURE 0x00000013
#define CR_NO_SUCH_LOGICAL_DEV 0x00000014
#define CR_CREATE_BLOCKED 0x00000015
#define CR_NOT_SYSTEM_VM 0x00000016
#define CR_REMOVE_VETOED 0x00000017
#define CR_APM_VETOED 0x00000018
#define CR_INVALID_LOAD_TYPE 0x00000019
#define CR_BUFFER_SMALL 0x0000001A
#define CR_NO_ARBITRATOR 0x0000001B
#define CR_NO_REGISTRY_HANDLE 0x0000001C
#define CR_REGISTRY_ERROR 0x0000001D
#define CR_INVALID_DEVICE_ID 0x0000001E
#define CR_INVALID_DATA 0x0000001F
#define CR_INVALID_API 0x00000020
#define CR_DEVLOADER_NOT_READY 0x00000021
#define CR_NEED_RESTART 0x00000022
#define CR_NO_MORE_HW_PROFILES 0x00000023
#define CR_DEVICE_NOT_THERE 0x00000024
#define CR_NO_SUCH_VALUE 0x00000025
#define CR_WRONG_TYPE 0x00000026
#define CR_INVALID_PRIORITY 0x00000027
#define CR_NOT_DISABLEABLE 0x00000028
#define CR_FREE_RESOURCES 0x00000029
#define CR_QUERY_VETOED 0x0000002A
#define CR_CANT_SHARE_IRQ 0x0000002B
#define CR_NO_DEPENDENT 0x0000002C
#define CR_SAME_RESOURCES 0x0000002D
#define CR_NO_SUCH_REGISTRY_KEY 0x0000002E
#define CR_INVALID_MACHINENAME 0x0000002F
#define CR_REMOTE_COMM_FAILURE 0x00000030
#define CR_MACHINE_UNAVAILABLE 0x00000031
#define CR_NO_CM_SERVICES 0x00000032
#define CR_ACCESS_DENIED 0x00000033
#define CR_CALL_NOT_IMPLEMENTED 0x00000034
#define CR_INVALID_PROPERTY 0x00000035
#define CR_DEVICE_INTERFACE_ACTIVE 0x00000036
#define CR_NO_SUCH_DEVICE_INTERFACE 0x00000037
#define CR_INVALID_REFERENCE_STRING 0x00000038
#define CR_INVALID_CONFLICT_LIST 0x00000039
#define CR_INVALID_INDEX 0x0000003A
#define CR_INVALID_STRUCTURE_SIZE 0x0000003B
typedef DWORD RETURN_TYPE;
typedef RETURN_TYPE CONFIGRET;
typedef HANDLE HMACHINE;
typedef HMACHINE *PHMACHINE;
typedef DWORD_PTR RES_DES;
typedef RES_DES *PRES_DES;
typedef DWORD_PTR RANGE_ELEMENT;
typedef RANGE_ELEMENT *PRANGE_ELEMENT;
typedef ULONG_PTR CONFLICT_LIST;
typedef CONFLICT_LIST *PCONFLICT_LIST;
typedef DWORD_PTR LOG_CONF;
typedef LOG_CONF *PLOG_CONF;
typedef ULONG PRIORITY;
typedef PRIORITY *PPRIORITY;
typedef DWORD_PTR RANGE_LIST;
typedef RANGE_LIST *PRANGE_LIST;
typedef DWORD DEVNODE, DEVINST;
typedef DEVNODE *PDEVNODE, *PDEVINST;
typedef CHAR *DEVNODEID_A, *DEVINSTID_A;
typedef WCHAR *DEVNODEID_W, *DEVINSTID_W;
#ifdef UNICODE
typedef DEVNODEID_W DEVNODEID;
typedef DEVINSTID_W DEVINSTID;
#else
typedef DEVNODEID_A DEVNODEID;
typedef DEVINSTID_A DEVINSTID;
#endif
typedef ULONG REGDISPOSITION;
typedef ULONG RESOURCEID;
typedef RESOURCEID *PRESOURCEID;
#define CM_RESDES_WIDTH_DEFAULT 0x00000000
#define CM_RESDES_WIDTH_32 0x00000001
#define CM_RESDES_WIDTH_64 0x00000002
#define CM_RESDES_WIDTH_BITS 0x00000003
#define MAX_CONFIG_VALUE 9999
#define MAX_INSTANCE_VALUE 9999
#define MAX_DEVICE_ID_LEN 200
#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN
#define MAX_CLASS_NAME_LEN 32
#define MAX_GUID_STRING_LEN 39
#define MAX_PROFILE_LEN 80
#define ResType_All 0x00000000
#define ResType_None 0x00000000
#define ResType_Mem 0x00000001
#define ResType_IO 0x00000002
#define ResType_DMA 0x00000003
#define ResType_IRQ 0x00000004
#define ResType_DoNotUse 0x00000005
#define ResType_BusNumber 0x00000006
#define ResType_MAX 0x00000006
#define ResType_Ignored_Bit 0x00008000
#define ResType_ClassSpecific 0x0000FFFF
#define ResType_Reserved 0x00008000
#define ResType_DevicePrivate 0x00008001
#define ResType_PcCardConfig 0x00008002
#define ResType_MfCardConfig 0x00008003
#define CM_GETIDLIST_FILTER_NONE 0x00000000
#define CM_GETIDLIST_FILTER_ENUMERATOR 0x00000001
#define CM_GETIDLIST_FILTER_SERVICE 0x00000002
#define CM_GETIDLIST_FILTER_EJECTRELATIONS 0x00000004
#define CM_GETIDLIST_FILTER_REMOVALRELATIONS 0x00000008
#define CM_GETIDLIST_FILTER_POWERRELATIONS 0x00000010
#define CM_GETIDLIST_FILTER_BUSRELATIONS 0x00000020
#define CM_GETIDLIST_DONOTGENERATE 0x10000040
#define CM_GETIDLIST_FILTER_BITS 0x1000007F
#define CM_GET_DEVICE_INTERFACE_LIST_PRESENT 0x00000000
#define CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES 0x00000001
#define CM_GET_DEVICE_INTERFACE_LIST_BITS 0x00000001
typedef struct BusNumber_Des_s {
DWORD BUSD_Count;
DWORD BUSD_Type;
DWORD BUSD_Flags;
ULONG BUSD_Alloc_Base;
ULONG BUSD_Alloc_End;
} BUSNUMBER_DES, *PBUSNUMBER_DES;
typedef struct BusNumber_Range_s {
ULONG BUSR_Min;
ULONG BUSR_Max;
ULONG BUSR_nBusNumbers;
ULONG BUSR_Flags;
} BUSNUMBER_RANGE, *PBUSNUMBER_RANGE;
#define BusNumberType_Range sizeof(BUSNUMBER_RANGE)
typedef struct BusNumber_Resource_s {
BUSNUMBER_DES BusNumber_Header;
BUSNUMBER_RANGE BusNumber_Data[ANYSIZE_ARRAY];
} BUSNUMBER_RESOURCE, *PBUSNUMBER_RESOURCE;
typedef struct CS_Des_s {
DWORD CSD_SignatureLength;
DWORD CSD_LegacyDataOffset;
DWORD CSD_LegacyDataSize;
DWORD CSD_Flags;
GUID CSD_ClassGuid;
BYTE CSD_Signature[ANYSIZE_ARRAY];
} CS_DES, *PCS_DES;
typedef struct CS_Resource_s {
CS_DES CS_Header;
} CS_RESOURCE, *PCS_RESOURCE;
typedef struct DevPrivate_Des_s {
DWORD PD_Count;
DWORD PD_Type;
DWORD PD_Data1;
DWORD PD_Data2;
DWORD PD_Data3;
DWORD PD_Flags;
} DEVPRIVATE_DES, *PDEVPRIVATE_DES;
typedef struct DevPrivate_Range_s {
DWORD PR_Data1;
DWORD PR_Data2;
DWORD PR_Data3;
} DEVPRIVATE_RANGE, *PDEVPRIVATE_RANGE;
#define PType_Range sizeof(DEVPRIVATE_RANGE)
typedef struct DevPrivate_Resource_s {
DEVPRIVATE_DES PRV_Header;
DEVPRIVATE_RANGE PRV_Data[ANYSIZE_ARRAY];
} DEVPRIVATE_RESOURCE, *PDEVPRIVATE_RESOURCE;
/* DMA_DES.DD_Flags constants and masks */
#define mDD_Width 0x3
#define fDD_BYTE 0x0
#define fDD_WORD 0x1
#define fDD_DWORD 0x2
#define fDD_BYTE_AND_WORD 0x3
#define mDD_BusMaster 0x4
#define fDD_NoBusMaster 0x0
#define fDD_BusMaster 0x4
#define mDD_Type 0x18
#define fDD_TypeStandard 0x00
#define fDD_TypeA 0x08
#define fDD_TypeB 0x10
#define fDD_TypeF 0x18
typedef struct DMA_Des_s {
DWORD DD_Count;
DWORD DD_Type;
DWORD DD_Flags;
ULONG DD_Alloc_Chan;
} DMA_DES, *PDMA_DES;
typedef struct DMA_Range_s {
ULONG DR_Min;
ULONG DR_Max;
ULONG DR_Flags;
} DMA_RANGE, *PDMA_RANGE;
#define DType_Range sizeof(DMA_RANGE)
typedef struct DMA_Resource_s {
DMA_DES DMA_Header;
DMA_RANGE DMA_Data[ANYSIZE_ARRAY];
} DMA_RESOURCE, *PDMA_RESOURCE;
/* IO_DES.Type constants and masks */
#define fIOD_PortType 0x1
#define fIOD_Memory 0x0
#define fIOD_IO 0x1
#define fIOD_DECODE 0x00fc
#define fIOD_10_BIT_DECODE 0x0004
#define fIOD_12_BIT_DECODE 0x0008
#define fIOD_16_BIT_DECODE 0x0010
#define fIOD_POSITIVE_DECODE 0x0020
#define fIOD_PASSIVE_DECODE 0x0040
#define fIOD_WINDOW_DECODE 0x0080
typedef struct IO_Des_s {
DWORD IOD_Count;
DWORD IOD_Type;
DWORDLONG IOD_Alloc_Base;
DWORDLONG IOD_Alloc_End;
DWORD IOD_DesFlags;
} IO_DES, *PIO_DES;
/* IO_RANGE.IOR_Alias constants */
#define IO_ALIAS_10_BIT_DECODE 0x00000004
#define IO_ALIAS_12_BIT_DECODE 0x00000010
#define IO_ALIAS_16_BIT_DECODE 0x00000000
#define IO_ALIAS_POSITIVE_DECODE 0x000000FF
typedef struct IO_Range_s {
DWORDLONG IOR_Align;
DWORD IOR_nPorts;
DWORDLONG IOR_Min;
DWORDLONG IOR_Max;
DWORD IOR_RangeFlags;
DWORDLONG IOR_Alias;
} IO_RANGE, *PIO_RANGE;
#define IOType_Range sizeof(IO_RANGE)
typedef struct IO_Resource_s {
IO_DES IO_Header;
IO_RANGE IO_Data[ANYSIZE_ARRAY];
} IO_RESOURCE, *PIO_RESOURCE;
/* IRQ_DES.IRQD_flags constants */
#define mIRQD_Share 0x1
#define fIRQD_Exclusive 0x0
#define fIRQD_Share 0x1
#define fIRQD_Share_Bit 0
#define fIRQD_Level_Bit 1
#define mIRQD_Edge_Level 0x2
#define fIRQD_Level 0x0
#define fIRQD_Edge 0x2
typedef struct IRQ_Des_32_s {
DWORD IRQD_Count;
DWORD IRQD_Type;
DWORD IRQD_Flags;
ULONG IRQD_Alloc_Num;
ULONG32 IRQD_Affinity;
} IRQ_DES_32, *PIRQ_DES_32;
typedef struct IRQ_Des_64_s {
DWORD IRQD_Count;
DWORD IRQD_Type;
DWORD IRQD_Flags;
ULONG IRQD_Alloc_Num;
ULONG64 IRQD_Affinity;
} IRQ_DES_64, *PIRQ_DES_64;
#ifdef _WIN64
typedef IRQ_DES_64 IRQ_DES;
typedef PIRQ_DES_64 PIRQ_DES;
#else
typedef IRQ_DES_32 IRQ_DES;
typedef PIRQ_DES_32 PIRQ_DES;
#endif
typedef struct IRQ_Range_s {
ULONG IRQR_Min;
ULONG IRQR_Max;
ULONG IRQR_Flags;
} IRQ_RANGE, *PIRQ_RANGE;
#define IRQType_Range sizeof(IRQ_RANGE)
typedef struct IRQ_Resource_s {
IRQ_DES IRQ_Header;
IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY];
} IRQ_RESOURCE, *PIRQ_RESOURCE;
/* MEM_DES.MD_Flags constants */
#define mMD_MemoryType 0x1
#define fMD_MemoryType mMD_MemoryType
#define fMD_ROM 0x0
#define fMD_RAM 0x1
#define mMD_32_24 0x2
#define fMD_32_24 mMD_32_24
#define fMD_24 0x0
#define fMD_32 0x2
#define mMD_Prefetchable 0x4
#define fMD_Prefetchable mMD_Prefetchable
#define fMD_Pref mMD_Prefetchable
#define fMD_PrefetchDisallowed 0x0
#define fMD_PrefetchAllowed 0x4
#define mMD_Readable 0x8
#define fMD_Readable mMD_Readable
#define fMD_ReadAllowed 0x0
#define fMD_ReadDisallowed 0x8
#define mMD_CombinedWrite 0x10
#define fMD_CombinedWrite mMD_CombinedWrite
#define fMD_CombinedWriteDisallowed 0x0
#define fMD_CombinedWriteAllowed 0x10
#define mMD_Cacheable 0x20
#define fMD_NonCacheable 0x0
#define fMD_Cacheable 0x20
typedef struct Mem_Des_s {
DWORD MD_Count;
DWORD MD_Type;
DWORDLONG MD_Alloc_Base;
DWORDLONG MD_Alloc_End;
DWORD MD_Flags;
DWORD MD_Reserved;
} MEM_DES, *PMEM_DES;
typedef struct Mem_Range_s {
DWORDLONG MR_Align;
ULONG MR_nBytes;
DWORDLONG MR_Min;
DWORDLONG MR_Max;
DWORD MR_Flags;
DWORD MR_Reserved;
} MEM_RANGE, *PMEM_RANGE;
#define MType_Range sizeof(MEM_RANGE)
typedef struct Mem_Resource_s {
MEM_DES MEM_Header;
MEM_RANGE MEM_Data[ANYSIZE_ARRAY];
} MEM_RESOURCE, *PMEM_RESOURCE;
/* MFCARD_DES.PMF_Flags constants */
#define fPMF_AUDIO_ENABLE 0x8
#define mPMF_AUDIO_ENABLE fPMF_AUDIO_ENABLE
typedef struct MfCard_Des_s {
DWORD PMF_Count;
DWORD PMF_Type;
DWORD PMF_Flags;
BYTE PMF_ConfigOptions;
BYTE PMF_IoResourceIndex;
BYTE PMF_Reserved[2];
DWORD PMF_ConfigRegisterBase;
} MFCARD_DES, *PMFCARD_DES;
typedef struct MfCard_Resource_s {
MFCARD_DES MfCard_Header;
} MFCARD_RESOURCE, *PMFCARD_RESOURCE;
/* PCCARD_DES.PCD_Flags constants */
typedef struct PcCard_Des_s {
DWORD PCD_Count;
DWORD PCD_Type;
DWORD PCD_Flags;
BYTE PCD_ConfigIndex;
BYTE PCD_Reserved[3];
DWORD PCD_MemoryCardBase1;
DWORD PCD_MemoryCardBase2;
} PCCARD_DES, *PPCCARD_DES;
#define mPCD_IO_8_16 0x1
#define fPCD_IO_8 0x0
#define fPCD_IO_16 0x1
#define mPCD_MEM_8_16 0x2
#define fPCD_MEM_8 0x0
#define fPCD_MEM_16 0x2
#define mPCD_MEM_A_C 0xC
#define fPCD_MEM1_A 0x4
#define fPCD_MEM2_A 0x8
#define fPCD_IO_ZW_8 0x10
#define fPCD_IO_SRC_16 0x20
#define fPCD_IO_WS_16 0x40
#define mPCD_MEM_WS 0x300
#define fPCD_MEM_WS_ONE 0x100
#define fPCD_MEM_WS_TWO 0x200
#define fPCD_MEM_WS_THREE 0x300
#define fPCD_MEM_A 0x4
#define fPCD_ATTRIBUTES_PER_WINDOW 0x8000
#define fPCD_IO1_16 0x00010000
#define fPCD_IO1_ZW_8 0x00020000
#define fPCD_IO1_SRC_16 0x00040000
#define fPCD_IO1_WS_16 0x00080000
#define fPCD_IO2_16 0x00100000
#define fPCD_IO2_ZW_8 0x00200000
#define fPCD_IO2_SRC_16 0x00400000
#define fPCD_IO2_WS_16 0x00800000
#define mPCD_MEM1_WS 0x03000000
#define fPCD_MEM1_WS_ONE 0x01000000
#define fPCD_MEM1_WS_TWO 0x02000000
#define fPCD_MEM1_WS_THREE 0x03000000
#define fPCD_MEM1_16 0x04000000
#define mPCD_MEM2_WS 0x30000000
#define fPCD_MEM2_WS_ONE 0x10000000
#define fPCD_MEM2_WS_TWO 0x20000000
#define fPCD_MEM2_WS_THREE 0x30000000
#define fPCD_MEM2_16 0x40000000
#define PCD_MAX_MEMORY 2
#define PCD_MAX_IO 2
typedef struct PcCard_Resource_s {
PCCARD_DES PcCard_Header;
} PCCARD_RESOURCE, *PPCCARD_RESOURCE;
/* CONFLICT_DETAILS.CD.ulMask constants */
#define CM_CDMASK_DEVINST 0x00000001
#define CM_CDMASK_RESDES 0x00000002
#define CM_CDMASK_FLAGS 0x00000004
#define CM_CDMASK_DESCRIPTION 0x00000008
#define CM_CDMASK_VALID 0x0000000F
/* CONFLICT_DETAILS.CD.ulFlags constants */
#define CM_CDFLAGS_DRIVER 0x00000001
#define CM_CDFLAGS_ROOT_OWNED 0x00000002
#define CM_CDFLAGS_RESERVED 0x00000004
typedef struct _CONFLICT_DETAILS_A {
ULONG CD_ulSize;
ULONG CD_ulMask;
DEVINST CD_dnDevInst;
RES_DES CD_rdResDes;
ULONG CD_ulFlags;
CHAR CD_szDescription[MAX_PATH];
} CONFLICT_DETAILS_A , *PCONFLICT_DETAILS_A;
typedef struct _CONFLICT_DETAILS_W {
ULONG CD_ulSize;
ULONG CD_ulMask;
DEVINST CD_dnDevInst;
RES_DES CD_rdResDes;
ULONG CD_ulFlags;
WCHAR CD_szDescription[MAX_PATH];
} CONFLICT_DETAILS_W , *PCONFLICT_DETAILS_W;
#ifdef UNICODE
typedef CONFLICT_DETAILS_W CONFLICT_DETAILS;
typedef PCONFLICT_DETAILS_W PCONFLICT_DETAILS;
#else
typedef CONFLICT_DETAILS_A CONFLICT_DETAILS;
typedef PCONFLICT_DETAILS_A PCONFLICT_DETAILS;
#endif
/* CM_Add_Empty_Log_Conf.ulFlags constants */
#define PRIORITY_EQUAL_FIRST 0x00000008
#define PRIORITY_EQUAL_LAST 0x00000000
#define PRIORITY_BIT 0x00000008
CMAPI
CONFIGRET
WINAPI
CM_Add_Empty_Log_Conf(
/*OUT*/ PLOG_CONF plcLogConf,
/*IN*/ DEVINST dnDevInst,
/*IN*/ PRIORITY Priority,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Add_Empty_Log_Conf_Ex(
/*OUT*/ PLOG_CONF plcLogConf,
/*IN*/ DEVINST dnDevInst,
/*IN*/ PRIORITY Priority,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* CM_Add_ID.ulFlags constants */
#define CM_ADD_ID_HARDWARE 0x00000000
#define CM_ADD_ID_COMPATIBLE 0x00000001
#define CM_ADD_ID_BITS 0x00000001
CMAPI
CONFIGRET
WINAPI
CM_Add_IDA(
/*IN*/ DEVINST dnDevInst,
/*IN*/ PSTR pszID,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Add_ID_ExA(
/*IN*/ DEVINST dnDevInst,
/*IN*/ PSTR pszID,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Add_ID_ExW(
/*IN*/ DEVINST dnDevInst,
/*IN*/ PWSTR pszID,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Add_IDW(
/*IN*/ DEVINST dnDevInst,
/*IN*/ PWSTR pszID,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
#ifdef UNICODE
#define CM_Add_ID CM_Add_IDW
#define CM_Add_ID_Ex CM_Add_ID_ExW
#else
#define CM_Add_ID CM_Add_IDA
#define CM_Add_ID_Ex CM_Add_ID_ExA
#endif /* UNICODE */
/* FIXME: Obsolete CM_Add_Range */
CMAPI
CONFIGRET
WINAPI
CM_Add_Res_Des(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ LOG_CONF lcLogConf,
/*IN*/ RESOURCEID ResourceID,
/*IN*/ PCVOID ResourceData,
/*IN*/ ULONG ResourceLen,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Add_Res_Des_Ex(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ LOG_CONF lcLogConf,
/*IN*/ RESOURCEID ResourceID,
/*IN*/ PCVOID ResourceData,
/*IN*/ ULONG ResourceLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Connect_MachineA(
/*IN*/ PCSTR UNCServerName,
/*OUT*/ PHMACHINE phMachine);
CMAPI
CONFIGRET
WINAPI
CM_Connect_MachineW(
/*IN*/ PCWSTR UNCServerName,
/*OUT*/ PHMACHINE phMachine);
#ifdef UNICODE
#define CM_Connect_Machine CM_Connect_MachineW
#else
#define CM_Connect_Machine CM_Connect_MachineA
#endif /* UNICODE */
/* FIXME: Obsolete CM_Create_DevNode */
/* FIXME: Obsolete CM_Create_DevNodeEx */
/* FIXME: Obsolete CM_Create_Range_List */
/* FIXME: Obsolete CM_Delete_Class_Key */
/* FIXME: Obsolete CM_Delete_Class_Key_Ex */
/* FIXME: Obsolete CM_Delete_DevNode_Key */
/* FIXME: Obsolete CM_Delete_DevNode_Key_Ex */
/* FIXME: Obsolete CM_Delete_Range */
/* FIXME: Obsolete CM_Detected_Resource_Conflict */
/* FIXME: Obsolete CM_Detected_Resource_Conflict_Ex */
/* FIXME: Obsolete CM_Disable_DevNode */
/* FIXME: Obsolete CM_Disable_DevNodeEx */
CMAPI
CONFIGRET
WINAPI
CM_Disconnect_Machine(
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Enable_DevNode */
/* FIXME: Obsolete CM_Enable_DevNodeEx */
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_Classes(
/*IN*/ ULONG ulClassIndex,
/*OUT*/ LPGUID ClassGuid,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_Classes_Ex(
/*IN*/ ULONG ulClassIndex,
/*OUT*/ LPGUID ClassGuid,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_EnumeratorsA(
/*IN*/ ULONG ulEnumIndex,
/*OUT*/ PCHAR Buffer,
/*IN OUT*/ PULONG pulLength,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_Enumerators_ExA(
/*IN*/ ULONG ulEnumIndex,
/*OUT*/ PCHAR Buffer,
/*IN OUT*/ PULONG pulLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_Enumerators_ExW(
/*IN*/ ULONG ulEnumIndex,
/*OUT*/ PWCHAR Buffer,
/*IN OUT*/ PULONG pulLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Enumerate_EnumeratorsW(
/*IN*/ ULONG ulEnumIndex,
/*OUT*/ PWCHAR Buffer,
/*IN OUT*/ PULONG pulLength,
/*IN*/ ULONG ulFlags);
#ifdef UNICODE
#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsW
#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExW
#else
#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsA
#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExW
#endif /* UNICODE */
/* FIXME: Obsolete CM_Find_Range */
/* FIXME: Obsolete CM_First_Range */
CMAPI
CONFIGRET
WINAPI
CM_Free_Log_Conf(
/*IN*/ LOG_CONF lcLogConfToBeFreed,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Free_Log_Conf_Ex(
/*IN*/ LOG_CONF lcLogConfToBeFreed,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Free_Log_Conf_Handle(
/*IN*/ LOG_CONF lcLogConf);
/* FIXME: Obsolete CM_Free_Range_List */
CMAPI
CONFIGRET
WINAPI
CM_Free_Res_Des(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Free_Res_Des_Ex(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Free_Res_Des_Handle(
/*IN*/ RES_DES rdResDes);
CMAPI
CONFIGRET
WINAPI
CM_Free_Resource_Conflict_Handle(
/*IN*/ CONFLICT_LIST clConflictList);
CMAPI
CONFIGRET
WINAPI
CM_Get_Child(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Child_Ex(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Get_Class_Name */
/* FIXME: Obsolete CM_Get_Class_Name_Ex */
/* FIXME: Obsolete CM_Get_Class_Key_Name */
/* FIXME: Obsolete CM_Get_Class_Key_Name_Ex */
/* FIXME: Obsolete CM_Get_Class_Registry_Property */
CMAPI
CONFIGRET
WINAPI
CM_Get_Depth(
/*OUT*/ PULONG pulDepth,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Depth_Ex(
/*OUT*/ PULONG pulDepth,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_IDA(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_ExA(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_ExW(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PWCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_IDW(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PWCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags);
#ifdef UNICODE
#define CM_Get_Device_ID CM_Get_Device_IDW
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
#else
#define CM_Get_Device_ID CM_Get_Device_IDA
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
#endif /* UNICODE */
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_ListA(
/*IN*/ PCSTR pszFilter, /*OPTIONAL*/
/*OUT*/ PCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_ExA(
/*IN*/ PCSTR pszFilter, /*OPTIONAL*/
/*OUT*/ PCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_ExW(
/*IN*/ PCWSTR pszFilter, /*OPTIONAL*/
/*OUT*/ PWCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_ListW(
/*IN*/ PCWSTR pszFilter, /*OPTIONAL*/
/*OUT*/ PWCHAR Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags);
#ifdef UNICODE
#define CM_Get_Device_ID_List CM_Get_Device_ID_ListW
#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExW
#else
#define CM_Get_Device_ID_List CM_Get_Device_ID_ListA
#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExA
#endif /* UNICODE */
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_SizeA(
/*OUT*/ PULONG pulLen,
/*IN*/ PCSTR pszFilter, /*OPTIONAL*/
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_Size_ExA(
/*OUT*/ PULONG pulLen,
/*IN*/ PCSTR pszFilter, /*OPTIONAL*/
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_Size_ExW(
/*OUT*/ PULONG pulLen,
/*IN*/ PCWSTR pszFilter, /*OPTIONAL*/
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_List_SizeW(
/*OUT*/ PULONG pulLen,
/*IN*/ PCWSTR pszFilter, /*OPTIONAL*/
/*IN*/ ULONG ulFlags);
#ifdef UNICODE
#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeW
#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExW
#else
#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeA
#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExA
#endif /* UNICODE */
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_Size(
/*OUT*/ PULONG pulLen,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Device_ID_Size_Ex(
/*OUT*/ PULONG pulLen,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Get_Device_Interface_Alias */
/* FIXME: Obsolete CM_Get_Device_Interface_Alias_Ex */
/* FIXME: Obsolete CM_Get_Device_Interface_List */
/* FIXME: Obsolete CM_Get_Device_Interface_List_Ex */
/* FIXME: Obsolete CM_Get_Device_Interface_List_Size */
/* FIXME: Obsolete CM_Get_Device_Interface_List_Size_Ex */
/* FIXME: Obsolete CM_Get_DevNode_Custom_Property */
/* FIXME: Obsolete CM_Get_DevNode_Custom_Property_Ex */
/* FIXME: Obsolete CM_Get_DevNode_Registry_Property */
CMAPI
CONFIGRET
WINAPI
CM_Get_DevNode_Status(
/*OUT*/ PULONG pulStatus,
/*OUT*/ PULONG pulProblemNumber,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_DevNode_Status_Ex(
/*OUT*/ PULONG pulStatus,
/*OUT*/ PULONG pulProblemNumber,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
#define CM_Get_DevInst_Status CM_Get_DevNode_Status
#define CM_Get_DevInst_Status_Ex CM_Get_DevNode_Status_Ex
/* CM_Get_First_Log_Conf.ulFlags constants */
#define BASIC_LOG_CONF 0x00000000 /* Specifies the req list. */
#define FILTERED_LOG_CONF 0x00000001 /* Specifies the filtered req list. */
#define ALLOC_LOG_CONF 0x00000002 /* Specifies the Alloc Element. */
#define BOOT_LOG_CONF 0x00000003 /* Specifies the RM Alloc Element. */
#define FORCED_LOG_CONF 0x00000004 /* Specifies the Forced Log Conf */
#define OVERRIDE_LOG_CONF 0x00000005 /* Specifies the Override req list. */
#define NUM_LOG_CONF 0x00000006 /* Number of Log Conf type */
#define LOG_CONF_BITS 0x00000007 /* The bits of the log conf type. */
CMAPI
CONFIGRET
WINAPI
CM_Get_First_Log_Conf(
/*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_First_Log_Conf_Ex(
/*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Get_Global_State */
/* FIXME: Obsolete CM_Get_Global_State_Ex */
/* FIXME: Obsolete CM_Get_Hardware_Profile_Info */
/* FIXME: Obsolete CM_Get_Hardware_Profile_Info_Ex */
/* FIXME: Obsolete CM_Get_HW_Prof_Flags */
/* FIXME: Obsolete CM_Get_HW_Prof_Flags_Ex */
CMAPI
CONFIGRET
WINAPI
CM_Get_Log_Conf_Priority(
/*IN*/ LOG_CONF lcLogConf,
/*OUT*/ PPRIORITY pPriority,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Log_Conf_Priority_Ex(
/*IN*/ LOG_CONF lcLogConf,
/*OUT*/ PPRIORITY pPriority,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Next_Log_Conf(
/*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/
/*IN*/ LOG_CONF lcLogConf,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Next_Log_Conf_Ex(
/*OUT*/ PLOG_CONF plcLogConf, /*OPTIONAL*/
/*IN*/ LOG_CONF lcLogConf,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Next_Res_Des(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ RESOURCEID ForResource,
/*OUT*/ PRESOURCEID pResourceID,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Next_Res_Des_Ex(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ RESOURCEID ForResource,
/*OUT*/ PRESOURCEID pResourceID,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Parent(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Parent_Ex(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Res_Des_Data(
/*IN*/ RES_DES rdResDes,
/*OUT*/ PVOID Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Res_Des_Data_Ex(
/*IN*/ RES_DES rdResDes,
/*OUT*/ PVOID Buffer,
/*IN*/ ULONG BufferLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Res_Des_Data_Size(
/*OUT*/ PULONG pulSize,
/*IN*/ RES_DES rdResDes,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Res_Des_Data_Size_Ex(
/*OUT*/ PULONG pulSize,
/*IN*/ RES_DES rdResDes,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Get_Resource_Conflict_Count(
/*IN*/ CONFLICT_LIST clConflictList,
/*OUT*/ PULONG pulCount);
CMAPI
CONFIGRET
WINAPI
CM_Get_Resource_Conflict_DetailsA(
/*IN*/ CONFLICT_LIST clConflictList,
/*IN*/ ULONG ulIndex,
/*IN OUT*/ PCONFLICT_DETAILS_A pConflictDetails);
CMAPI
CONFIGRET
WINAPI
CM_Get_Resource_Conflict_DetailsW(
/*IN*/ CONFLICT_LIST clConflictList,
/*IN*/ ULONG ulIndex,
/*IN OUT*/ PCONFLICT_DETAILS_W pConflictDetails);
#ifdef UNICODE
#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsW
#else
#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsA
#endif /* UNICODE */
CMAPI
CONFIGRET
WINAPI
CM_Get_Sibling(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST DevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Get_Sibling_Ex(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINST DevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
WORD
WINAPI
CM_Get_Version(
VOID);
CMAPI
WORD
WINAPI
CM_Get_Version_Ex(
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Intersect_Range_List */
/* FIXME: Obsolete CM_Invert_Range_List */
/* FIXME: Obsolete CM_Is_Dock_Station_Present */
/* FIXME: Obsolete CM_Is_Dock_Station_Present_Ex */
/* CM_Locate_DevNode.ulFlags constants */
#define CM_LOCATE_DEVNODE_NORMAL 0x00000000
#define CM_LOCATE_DEVNODE_PHANTOM 0x00000001
#define CM_LOCATE_DEVNODE_CANCELREMOVE 0x00000002
#define CM_LOCATE_DEVNODE_NOVALIDATION 0x00000004
#define CM_LOCATE_DEVNODE_BITS 0x00000007
#define CM_LOCATE_DEVINST_NORMAL CM_LOCATE_DEVNODE_NORMAL
#define CM_LOCATE_DEVINST_PHANTOM CM_LOCATE_DEVNODE_PHANTOM
#define CM_LOCATE_DEVINST_CANCELREMOVE CM_LOCATE_DEVNODE_CANCELREMOVE
#define CM_LOCATE_DEVINST_NOVALIDATION CM_LOCATE_DEVNODE_NOVALIDATION
#define CM_LOCATE_DEVINST_BITS CM_LOCATE_DEVNODE_BITS
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNodeA(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINSTID_A pDeviceID, /*OPTIONAL*/
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNode_ExA(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINSTID_A pDeviceID, /*OPTIONAL*/
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNode_ExW(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINSTID_W pDeviceID, /*OPTIONAL*/
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Locate_DevNodeW(
/*OUT*/ PDEVINST pdnDevInst,
/*IN*/ DEVINSTID_W pDeviceID, /*OPTIONAL*/
/*IN*/ ULONG ulFlags);
#define CM_Locate_DevInstA CM_Locate_DevNodeA
#define CM_Locate_DevInstW CM_Locate_DevNodeW
#define CM_Locate_DevInst_ExA CM_Locate_DevNode_ExA
#define CM_Locate_DevInst_ExW CM_Locate_DevNode_ExW
#ifdef UNICODE
#define CM_Locate_DevNode CM_Locate_DevNodeW
#define CM_Locate_DevInst CM_Locate_DevNodeW
#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExW
#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExW
#else
#define CM_Locate_DevNode CM_Locate_DevNodeA
#define CM_Locate_DevInst CM_Locate_DevNodeA
#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExA
#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExA
#endif /* UNICODE */
/* FIXME: Obsolete CM_Merge_Range_List */
CMAPI
CONFIGRET
WINAPI
CM_Modify_Res_Des(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ RESOURCEID ResourceID,
/*IN*/ PCVOID ResourceData,
/*IN*/ ULONG ResourceLen,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Modify_Res_Des_Ex(
/*OUT*/ PRES_DES prdResDes,
/*IN*/ RES_DES rdResDes,
/*IN*/ RESOURCEID ResourceID,
/*IN*/ PCVOID ResourceData,
/*IN*/ ULONG ResourceLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Move_DevNode */
/* FIXME: Obsolete CM_Move_DevNode_Ex */
/* FIXME: Obsolete CM_Next_Range */
/* FIXME: Obsolete CM_Open_Class_Key */
/* FIXME: Obsolete CM_Open_Class_Key_Ex */
/* FIXME: Obsolete CM_Open_DevNode_Key */
/* FIXME: Obsolete CM_Open_DevNode_Key_Ex */
/* CM_Query_And_Remove_SubTree.ulFlags constants */
#define CM_REMOVE_UI_OK 0x00000000
#define CM_REMOVE_UI_NOT_OK 0x00000001
#define CM_REMOVE_NO_RESTART 0x00000002
#define CM_REMOVE_BITS 0x00000003
CMAPI
CONFIGRET
WINAPI
CM_Query_And_Remove_SubTreeA(
/*IN*/ DEVINST dnAncestor,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Query_And_Remove_SubTreeW(
/*IN*/ DEVINST dnAncestor,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPWSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Query_And_Remove_SubTree_ExA(
/*IN*/ DEVINST dnAncestor,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Query_And_Remove_SubTree_ExW(
/*IN*/ DEVINST dnAncestor,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPWSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* FIXME: Obsolete CM_Query_Arbitrator_Free_Data */
/* FIXME: Obsolete CM_Query_Arbitrator_Free_Data_Ex */
/* FIXME: Obsolete CM_Query_Arbitrator_Free_Size */
/* FIXME: Obsolete CM_Query_Arbitrator_Free_Size_Ex */
/* FIXME: Obsolete CM_Query_Arbitrator_Free_Size_Ex */
/* FIXME: Obsolete CM_Query_Remove_SubTree */
/* FIXME: Obsolete CM_Query_Remove_SubTree_Ex */
CMAPI
CONFIGRET
WINAPI
CM_Query_Resource_Conflict_List(
/*OUT*/ PCONFLICT_LIST pclConflictList,
/*IN*/ DEVINST dnDevInst,
/*IN*/ RESOURCEID ResourceID,
/*IN*/ PCVOID ResourceData,
/*IN*/ ULONG ResourceLen,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
/* CM_Reenumerate_DevNode.ulFlags constants */
#define CM_REENUMERATE_NORMAL 0x00000000
#define CM_REENUMERATE_SYNCHRONOUS 0x00000001
#define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002
#define CM_REENUMERATE_ASYNCHRONOUS 0x00000004
#define CM_REENUMERATE_BITS 0x00000007
CMAPI
CONFIGRET
WINAPI
CM_Reenumerate_DevNode(
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Reenumerate_DevNode_Ex(
/*IN*/ DEVINST dnDevInst,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
#define CM_Reenumerate_DevInst CM_Reenumerate_DevNode
#define CM_Reenumerate_DevInst_Ex CM_Reenumerate_DevNode_Ex
/* FIXME: Obsolete CM_Register_Device_Driver */
/* FIXME: Obsolete CM_Register_Device_Driver_Ex */
/* FIXME: Obsolete CM_Register_Device_Interface */
/* FIXME: Obsolete CM_Register_Device_Interface_Ex */
/* FIXME: Obsolete CM_Remove_SubTree */
/* FIXME: Obsolete CM_Remove_SubTree_Ex */
CMAPI
CONFIGRET
WINAPI
CM_Request_Device_EjectA(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags);
CMAPI
CONFIGRET
WINAPI
CM_Request_Device_Eject_ExW(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPWSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Request_Device_Eject_ExA(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags,
/*IN*/ HMACHINE hMachine);
CMAPI
CONFIGRET
WINAPI
CM_Request_Device_EjectW(
/*IN*/ DEVINST dnDevInst,
/*OUT*/ PPNP_VETO_TYPE pVetoType,
/*OUT*/ LPWSTR pszVetoName,
/*IN*/ ULONG ulNameLength,
/*IN*/ ULONG ulFlags);
#ifdef UNICODE
#define CM_Request_Device_Eject CM_Request_Device_EjectW
#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExW
#else
#define CM_Request_Device_Eject CM_Request_Device_EjectA
#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExA
#endif /* UNICODE */
/* FIXME: Obsolete CM_Request_Eject_PC */
/* FIXME: Obsolete CM_Request_Eject_PC_Ex */
/* FIXME: Obsolete CM_Run_Detection */
/* FIXME: Obsolete CM_Run_Detection_Ex */
/* FIXME: Obsolete CM_Set_Class_Registry_Property */
/* FIXME: Obsolete CM_Set_DevNode_Problem */
/* FIXME: Obsolete CM_Set_DevNode_Problem_Ex */
/* FIXME: Obsolete CM_Set_DevNode_Registry_Property */
/* FIXME: Obsolete CM_Set_DevNode_Registry_Property_Ex */
/* FIXME: Obsolete CM_Set_HW_Prof */
/* FIXME: Obsolete CM_Set_HW_Prof_Ex */
/* FIXME: Obsolete CM_Set_HW_Prof_Flags */
/* FIXME: Obsolete CM_Set_HW_Prof_Flags_Ex */
/* FIXME: Obsolete CM_Setup_DevNode */
/* FIXME: Obsolete CM_Setup_DevNode_Ex */
/* FIXME: Obsolete CM_Test_Range_Available */
/* FIXME: Obsolete CM_Uninstall_DevNode */
/* FIXME: Obsolete CM_Uninstall_DevNode_Ex */
/* FIXME: Obsolete CM_Unregister_Device_Interface */
/* FIXME: Obsolete CM_Unregister_Device_Interface_Ex */
#define CM_WaitNoPendingInstallEvents CMP_WaitNoPendingInstallEvents
CMAPI
DWORD
WINAPI
CMP_WaitNoPendingInstallEvents(
/*IN*/ DWORD dwTimeout);
#include <poppack.h>
#ifdef __cplusplus
}
#endif
#endif /* __CFGMGR32_H */
|