ReactOS 0.4.15-dev-5853-gcb454ef
cfgmgr32.h
Go to the documentation of this file.
1/*
2 * cfgmgr32.h
3 *
4 * PnP configuration manager
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23#pragma once
24
25#ifndef _CFGMGR32_H_
26#define _CFGMGR32_H_
27
28#include <cfg.h>
29
30#ifndef GUID_DEFINED
31#include <guiddef.h>
32#endif
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#if defined(_CFGMGR32_)
39#define CMAPI
40#else
41#define CMAPI DECLSPEC_IMPORT
42#endif
43
44typedef CONST VOID *PCVOID;
45
46#define MAX_CONFIG_VALUE 9999
47#define MAX_INSTANCE_VALUE 9999
48
49#define MAX_DEVICE_ID_LEN 200
50#define MAX_DEVNODE_ID_LEN MAX_DEVICE_ID_LEN
51
52#define MAX_CLASS_NAME_LEN 32
53#define MAX_GUID_STRING_LEN 39
54#define MAX_PROFILE_LEN 80
55
56#define MAX_MEM_REGISTERS 9
57#define MAX_IO_PORTS 20
58#define MAX_IRQS 7
59#define MAX_DMA_CHANNELS 7
60
61#define DWORD_MAX 0xffffffffUL
62#define DWORDLONG_MAX 0xffffffffffffffffui64
63
64#define CONFIGMG_VERSION 0x0400
65
66#ifdef NT_INCLUDED
67
68typedef unsigned __int64 DWORDLONG;
69typedef DWORDLONG *PDWORDLONG;
70
71#endif /* NT_INCLUDED */
72
75
78
81
82#ifdef UNICODE
85#else
88#endif
89
92
95
98
101
104
107
110
113
114typedef struct _CONFLICT_DETAILS_A {
122
123typedef struct _CONFLICT_DETAILS_W {
131
132#ifdef UNICODE
135#else
138#endif
139
140/* CONFLICT_DETAILS.CD.ulMask constants */
141#define CM_CDMASK_DEVINST 0x00000001
142#define CM_CDMASK_RESDES 0x00000002
143#define CM_CDMASK_FLAGS 0x00000004
144#define CM_CDMASK_DESCRIPTION 0x00000008
145#define CM_CDMASK_VALID 0x0000000F
146
147/* CONFLICT_DETAILS.CD.ulFlags constants */
148#define CM_CDFLAGS_DRIVER 0x00000001
149#define CM_CDFLAGS_ROOT_OWNED 0x00000002
150#define CM_CDFLAGS_RESERVED 0x00000004
151
153
154#include <pshpack1.h>
155
156/* MEM_DES.MD_Flags constants */
157#define mMD_MemoryType 0x1
158#define fMD_MemoryType mMD_MemoryType
159#define fMD_ROM 0x0
160#define fMD_RAM 0x1
161
162#define mMD_32_24 0x2
163#define fMD_32_24 mMD_32_24
164#define fMD_24 0x0
165#define fMD_32 0x2
166
167#define mMD_Prefetchable 0x4
168#define fMD_Prefetchable mMD_Prefetchable
169#define fMD_Pref mMD_Prefetchable
170#define fMD_PrefetchDisallowed 0x0
171#define fMD_PrefetchAllowed 0x4
172
173#define mMD_Readable 0x8
174#define fMD_Readable mMD_Readable
175#define fMD_ReadAllowed 0x0
176#define fMD_ReadDisallowed 0x8
177
178#define mMD_CombinedWrite 0x10
179#define fMD_CombinedWrite mMD_CombinedWrite
180#define fMD_CombinedWriteDisallowed 0x0
181#define fMD_CombinedWriteAllowed 0x10
182
183#define mMD_Cacheable 0x20
184#define fMD_NonCacheable 0x0
185#define fMD_Cacheable 0x20
186#define fMD_WINDOW_DECODE 0x40
187#define fMD_MEMORY_BAR 0x80
188
189typedef struct Mem_Range_s {
197
198typedef struct Mem_Des_s {
206
207typedef struct Mem_Resource_s {
211
212#define MType_Range sizeof(MEM_RANGE)
213
214typedef struct Mem_Large_Range_s {
222
223typedef struct Mem_Large_Des_s {
231
232typedef struct Mem_Large_Resource_s {
236
237#define MLType_Range sizeof(struct Mem_Large_Range_s)
238
239/* IO_DES.Type constants and masks */
240#define fIOD_PortType 0x1
241#define fIOD_Memory 0x0
242#define fIOD_IO 0x1
243#define fIOD_DECODE 0x00fc
244#define fIOD_10_BIT_DECODE 0x0004
245#define fIOD_12_BIT_DECODE 0x0008
246#define fIOD_16_BIT_DECODE 0x0010
247#define fIOD_POSITIVE_DECODE 0x0020
248#define fIOD_PASSIVE_DECODE 0x0040
249#define fIOD_WINDOW_DECODE 0x0080
250#define fIOD_PORT_BAR 0x0100
251
252/* IO_RANGE.IOR_Alias constants */
253#define IO_ALIAS_10_BIT_DECODE 0x00000004
254#define IO_ALIAS_12_BIT_DECODE 0x00000010
255#define IO_ALIAS_16_BIT_DECODE 0x00000000
256#define IO_ALIAS_POSITIVE_DECODE 0x000000FF
257
258typedef struct IO_Range_s {
266
267typedef struct IO_Des_s {
274
275typedef struct IO_Resource_s {
279
280#define IOA_Local 0xff
281
282#define IOType_Range sizeof(IO_RANGE)
283
284/* DMA_DES.DD_Flags constants and masks */
285#define mDD_Width 0x3
286#define fDD_BYTE 0x0
287#define fDD_WORD 0x1
288#define fDD_DWORD 0x2
289#define fDD_BYTE_AND_WORD 0x3
290
291#define mDD_BusMaster 0x4
292#define fDD_NoBusMaster 0x0
293#define fDD_BusMaster 0x4
294
295#define mDD_Type 0x18
296#define fDD_TypeStandard 0x00
297#define fDD_TypeA 0x08
298#define fDD_TypeB 0x10
299#define fDD_TypeF 0x18
300
301typedef struct DMA_Des_s {
307
308typedef struct DMA_Range_s {
313
314#define DType_Range sizeof(DMA_RANGE)
315
316typedef struct DMA_Resource_s {
320
321/* IRQ_DES.IRQD_flags constants */
322#define mIRQD_Share 0x1
323#define fIRQD_Exclusive 0x0
324#define fIRQD_Share 0x1
325
326#define fIRQD_Share_Bit 0
327#define fIRQD_Level_Bit 1
328
329#define mIRQD_Edge_Level 0x2
330#define fIRQD_Level 0x0
331#define fIRQD_Edge 0x2
332
333typedef struct IRQ_Range_s {
336#if defined(NT_PROCESSOR_GROUPS)
338 USHORT IRQR_Rsvdz;
339#else
341#endif
343
344typedef struct IRQ_Des_32_s {
347#if defined(NT_PROCESSOR_GROUPS)
349 USHORT IRQD_Group;
350#else
352#endif
356
357typedef struct IRQ_Des_64_s {
360#if defined(NT_PROCESSOR_GROUPS)
362 USHORT IRQD_Group;
363#else
365#endif
369
370#ifdef _WIN64
371typedef IRQ_DES_64 IRQ_DES;
372typedef PIRQ_DES_64 PIRQ_DES;
373#else
376#endif
377
378typedef struct IRQ_Resource_32_s {
382
383typedef struct IRQ_Resource_64_s {
387
388#ifdef _WIN64
391#else
394#endif
395
396#define IRQType_Range sizeof(IRQ_RANGE)
397
398#if (WINVER >= _WIN32_WINNT_WINXP)
399#define CM_RESDES_WIDTH_DEFAULT 0x00000000
400#define CM_RESDES_WIDTH_32 0x00000001
401#define CM_RESDES_WIDTH_64 0x00000002
402#define CM_RESDES_WIDTH_BITS 0x00000003
403#endif
404
405typedef struct DevPrivate_Range_s {
410
411typedef struct DevPrivate_Des_s {
419
420#define PType_Range sizeof(DEVPRIVATE_RANGE)
421
422typedef struct DevPrivate_Resource_s {
426
427typedef struct CS_Des_s {
435
436typedef struct CS_Resource_s {
439
440#define mPCD_IO_8_16 0x1
441#define fPCD_IO_8 0x0
442#define fPCD_IO_16 0x1
443#define mPCD_MEM_8_16 0x2
444#define fPCD_MEM_8 0x0
445#define fPCD_MEM_16 0x2
446#define mPCD_MEM_A_C 0xC
447#define fPCD_MEM1_A 0x4
448#define fPCD_MEM2_A 0x8
449#define fPCD_IO_ZW_8 0x10
450#define fPCD_IO_SRC_16 0x20
451#define fPCD_IO_WS_16 0x40
452#define mPCD_MEM_WS 0x300
453#define fPCD_MEM_WS_ONE 0x100
454#define fPCD_MEM_WS_TWO 0x200
455#define fPCD_MEM_WS_THREE 0x300
456
457#if (WINVER >= _WIN32_WINNT_WINXP)
458
459#define fPCD_MEM_A 0x4
460
461#define fPCD_ATTRIBUTES_PER_WINDOW 0x8000
462
463#define fPCD_IO1_16 0x00010000
464#define fPCD_IO1_ZW_8 0x00020000
465#define fPCD_IO1_SRC_16 0x00040000
466#define fPCD_IO1_WS_16 0x00080000
467
468#define fPCD_IO2_16 0x00100000
469#define fPCD_IO2_ZW_8 0x00200000
470#define fPCD_IO2_SRC_16 0x00400000
471#define fPCD_IO2_WS_16 0x00800000
472
473#define mPCD_MEM1_WS 0x03000000
474#define fPCD_MEM1_WS_ONE 0x01000000
475#define fPCD_MEM1_WS_TWO 0x02000000
476#define fPCD_MEM1_WS_THREE 0x03000000
477#define fPCD_MEM1_16 0x04000000
478
479#define mPCD_MEM2_WS 0x30000000
480#define fPCD_MEM2_WS_ONE 0x10000000
481#define fPCD_MEM2_WS_TWO 0x20000000
482#define fPCD_MEM2_WS_THREE 0x30000000
483#define fPCD_MEM2_16 0x40000000
484
485#define PCD_MAX_MEMORY 2
486#define PCD_MAX_IO 2
487
488#endif /* (WINVER >= _WIN32_WINNT_WINXP) */
489
490typedef struct PcCard_Des_s {
498#if (WINVER >= _WIN32_WINNT_WINXP)
502#endif
504
505typedef struct PcCard_Resource_s {
508
509/* MFCARD_DES.PMF_Flags constants */
510#define fPMF_AUDIO_ENABLE 0x8
511#define mPMF_AUDIO_ENABLE fPMF_AUDIO_ENABLE
512
513typedef struct MfCard_Des_s {
522
523typedef struct MfCard_Resource_s {
526
527typedef struct BusNumber_Des_s {
534
535typedef struct BusNumber_Range_s {
541
542#define BusNumberType_Range sizeof(BUSNUMBER_RANGE)
543
544typedef struct BusNumber_Resource_s {
548
549#define CM_HWPI_NOT_DOCKABLE 0x00000000
550#define CM_HWPI_UNDOCKED 0x00000001
551#define CM_HWPI_DOCKED 0x00000002
552
553typedef struct HWProfileInfo_sA {
558
559typedef struct HWProfileInfo_sW {
564
565#ifdef UNICODE
568#else
571#endif
572
573#include <poppack.h>
574
575#define ResType_All 0x00000000
576#define ResType_None 0x00000000
577#define ResType_Mem 0x00000001
578#define ResType_IO 0x00000002
579#define ResType_DMA 0x00000003
580#define ResType_IRQ 0x00000004
581#define ResType_DoNotUse 0x00000005
582#define ResType_BusNumber 0x00000006
583#define ResType_MemLarge 0x00000007
584#define ResType_MAX 0x00000007
585#define ResType_Ignored_Bit 0x00008000
586#define ResType_ClassSpecific 0x0000FFFF
587#define ResType_Reserved 0x00008000
588#define ResType_DevicePrivate 0x00008001
589#define ResType_PcCardConfig 0x00008002
590#define ResType_MfCardConfig 0x00008003
591
592#define CM_ADD_RANGE_ADDIFCONFLICT 0x00000000
593#define CM_ADD_RANGE_DONOTADDIFCONFLICT 0x00000001
594#define CM_ADD_RANGE_BITS 0x00000001
595
596#define BASIC_LOG_CONF 0x00000000
597#define FILTERED_LOG_CONF 0x00000001
598#define ALLOC_LOG_CONF 0x00000002
599#define BOOT_LOG_CONF 0x00000003
600#define FORCED_LOG_CONF 0x00000004
601#define OVERRIDE_LOG_CONF 0x00000005
602#define NUM_LOG_CONF 0x00000006
603#define LOG_CONF_BITS 0x00000007
604
605#define PRIORITY_EQUAL_FIRST 0x00000008
606#define PRIORITY_EQUAL_LAST 0x00000000
607#define PRIORITY_BIT 0x00000008
608
609#define RegDisposition_OpenAlways 0x00000000
610#define RegDisposition_OpenExisting 0x00000001
611#define RegDisposition_Bits 0x00000001
612
613/* CM_Add_ID.ulFlags constants */
614#define CM_ADD_ID_HARDWARE 0x00000000
615#define CM_ADD_ID_COMPATIBLE 0x00000001
616#define CM_ADD_ID_BITS 0x00000001
617
618/* Flags for CM_Create_DevNode[_Ex].ulFlags constants */
619#define CM_CREATE_DEVNODE_NORMAL 0x00000000
620#define CM_CREATE_DEVNODE_NO_WAIT_INSTALL 0x00000001
621#define CM_CREATE_DEVNODE_PHANTOM 0x00000002
622#define CM_CREATE_DEVNODE_GENERATE_ID 0x00000004
623#define CM_CREATE_DEVNODE_DO_NOT_INSTALL 0x00000008
624#define CM_CREATE_DEVNODE_BITS 0x0000000F
625
626#define CM_CREATE_DEVINST_NORMAL CM_CREATE_DEVNODE_NORMAL
627#define CM_CREATE_DEVINST_NO_WAIT_INSTALL CM_CREATE_DEVNODE_NO_WAIT_INSTALL
628#define CM_CREATE_DEVINST_PHANTOM CM_CREATE_DEVNODE_PHANTOM
629#define CM_CREATE_DEVINST_GENERATE_ID CM_CREATE_DEVNODE_GENERATE_ID
630#define CM_CREATE_DEVINST_DO_NOT_INSTALL CM_CREATE_DEVNODE_DO_NOT_INSTALL
631#define CM_CREATE_DEVINST_BITS CM_CREATE_DEVNODE_BITS
632
633/* Flags for CM_Delete_Class_Key.ulFlags constants */
634#define CM_DELETE_CLASS_ONLY 0x00000000
635#define CM_DELETE_CLASS_SUBKEYS 0x00000001
636#if (WINVER >= _WIN32_WINNT_VISTA)
637#define CM_DELETE_CLASS_INTERFACE 0x00000002
638#endif
639#define CM_DELETE_CLASS_BITS 0x00000003
640
641/* CM_Run_Detection[_Ex].ulFlags constants */
642#define CM_DETECT_NEW_PROFILE 0x00000001
643#define CM_DETECT_CRASHED 0x00000002
644#define CM_DETECT_HWPROF_FIRST_BOOT 0x00000004
645#define CM_DETECT_RUN 0x80000000
646#define CM_DETECT_BITS 0x80000007
647
648#define CM_DISABLE_POLITE 0x00000000
649#define CM_DISABLE_ABSOLUTE 0x00000001
650#define CM_DISABLE_HARDWARE 0x00000002
651#define CM_DISABLE_UI_NOT_OK 0x00000004
652#define CM_DISABLE_BITS 0x00000007
653
654#define CM_GETIDLIST_FILTER_NONE 0x00000000
655#define CM_GETIDLIST_FILTER_ENUMERATOR 0x00000001
656#define CM_GETIDLIST_FILTER_SERVICE 0x00000002
657#define CM_GETIDLIST_FILTER_EJECTRELATIONS 0x00000004
658#define CM_GETIDLIST_FILTER_REMOVALRELATIONS 0x00000008
659#define CM_GETIDLIST_FILTER_POWERRELATIONS 0x00000010
660#define CM_GETIDLIST_FILTER_BUSRELATIONS 0x00000020
661#define CM_GETIDLIST_DONOTGENERATE 0x10000040
662#if (WINVER <= _WIN32_WINNT_VISTA)
663#define CM_GETIDLIST_FILTER_BITS 0x1000007F
664#endif
665#if (WINVER >= _WIN32_WINNT_WIN7)
666#define CM_GETIDLIST_FILTER_TRANSPORTRELATIONS 0x00000080
667#define CM_GETIDLIST_FILTER_PRESENT 0x00000100
668#define CM_GETIDLIST_FILTER_CLASS 0x00000200
669#define CM_GETIDLIST_FILTER_BITS 0x100003FF
670#endif
671
672#define CM_GET_DEVICE_INTERFACE_LIST_PRESENT 0x00000000
673#define CM_GET_DEVICE_INTERFACE_LIST_ALL_DEVICES 0x00000001
674#define CM_GET_DEVICE_INTERFACE_LIST_BITS 0x00000001
675
676#define CM_DRP_DEVICEDESC 0x00000001
677#define CM_DRP_HARDWAREID 0x00000002
678#define CM_DRP_COMPATIBLEIDS 0x00000003
679#define CM_DRP_UNUSED0 0x00000004
680#define CM_DRP_SERVICE 0x00000005
681#define CM_DRP_UNUSED1 0x00000006
682#define CM_DRP_UNUSED2 0x00000007
683#define CM_DRP_CLASS 0x00000008
684#define CM_DRP_CLASSGUID 0x00000009
685#define CM_DRP_DRIVER 0x0000000A
686#define CM_DRP_CONFIGFLAGS 0x0000000B
687#define CM_DRP_MFG 0x0000000C
688#define CM_DRP_FRIENDLYNAME 0x0000000D
689#define CM_DRP_LOCATION_INFORMATION 0x0000000E
690#define CM_DRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0000000F
691#define CM_DRP_CAPABILITIES 0x00000010
692#define CM_DRP_UI_NUMBER 0x00000011
693#define CM_DRP_UPPERFILTERS 0x00000012
694#if (WINVER >= _WIN32_WINNT_VISTA)
695#define CM_CRP_UPPERFILTERS CM_DRP_UPPERFILTERS
696#endif
697#define CM_DRP_LOWERFILTERS 0x00000013
698#if (WINVER >= _WIN32_WINNT_VISTA)
699#define CM_CRP_LOWERFILTERS CM_DRP_LOWERFILTERS
700#endif
701#define CM_DRP_BUSTYPEGUID 0x00000014
702#define CM_DRP_LEGACYBUSTYPE 0x00000015
703#define CM_DRP_BUSNUMBER 0x00000016
704#define CM_DRP_ENUMERATOR_NAME 0x00000017
705#define CM_DRP_SECURITY 0x00000018
706#define CM_CRP_SECURITY CM_DRP_SECURITY
707#define CM_DRP_SECURITY_SDS 0x00000019
708#define CM_CRP_SECURITY_SDS CM_DRP_SECURITY_SDS
709#define CM_DRP_DEVTYPE 0x0000001A
710#define CM_CRP_DEVTYPE CM_DRP_DEVTYPE
711#define CM_DRP_EXCLUSIVE 0x0000001B
712#define CM_CRP_EXCLUSIVE CM_DRP_EXCLUSIVE
713#define CM_DRP_CHARACTERISTICS 0x0000001C
714#define CM_CRP_CHARACTERISTICS CM_DRP_CHARACTERISTICS
715#define CM_DRP_ADDRESS 0x0000001D
716#define CM_DRP_UI_NUMBER_DESC_FORMAT 0x0000001E
717#if (WINVER >= _WIN32_WINNT_WINXP)
718#define CM_DRP_DEVICE_POWER_DATA 0x0000001F
719#define CM_DRP_REMOVAL_POLICY 0x00000020
720#define CM_DRP_REMOVAL_POLICY_HW_DEFAULT 0x00000021
721#define CM_DRP_REMOVAL_POLICY_OVERRIDE 0x00000022
722#define CM_DRP_INSTALL_STATE 0x00000023
723#endif
724#if (WINVER >= _WIN32_WINNT_WS03)
725#define CM_DRP_LOCATION_PATHS 0x00000024
726#endif
727#if (WINVER >= _WIN32_WINNT_WIN7)
728#define CM_DRP_BASE_CONTAINERID 0x00000025
729#endif
730#define CM_DRP_MIN 0x00000001
731#define CM_CRP_MIN CM_DRP_MIN
732#define CM_DRP_MAX 0x00000025
733#define CM_CRP_MAX CM_DRP_MAX
734
735#define CM_DEVCAP_LOCKSUPPORTED 0x00000001
736#define CM_DEVCAP_EJECTSUPPORTED 0x00000002
737#define CM_DEVCAP_REMOVABLE 0x00000004
738#define CM_DEVCAP_DOCKDEVICE 0x00000008
739#define CM_DEVCAP_UNIQUEID 0x00000010
740#define CM_DEVCAP_SILENTINSTALL 0x00000020
741#define CM_DEVCAP_RAWDEVICEOK 0x00000040
742#define CM_DEVCAP_SURPRISEREMOVALOK 0x00000080
743#define CM_DEVCAP_HARDWAREDISABLED 0x00000100
744#define CM_DEVCAP_NONDYNAMIC 0x00000200
745
746#if (WINVER >= _WIN32_WINNT_WINXP)
747
748#define CM_REMOVAL_POLICY_EXPECT_NO_REMOVAL 1
749#define CM_REMOVAL_POLICY_EXPECT_ORDERLY_REMOVAL 2
750#define CM_REMOVAL_POLICY_EXPECT_SURPRISE_REMOVAL 3
751
752#define CM_INSTALL_STATE_INSTALLED 0
753#define CM_INSTALL_STATE_NEEDS_REINSTALL 1
754#define CM_INSTALL_STATE_FAILED_INSTALL 2
755#define CM_INSTALL_STATE_FINISH_INSTALL 3
756
757#endif /* (WINVER >= _WIN32_WINNT_WINXP) */
758
759/* CM_Locate_DevNode.ulFlags constants */
760#define CM_LOCATE_DEVNODE_NORMAL 0x00000000
761#define CM_LOCATE_DEVNODE_PHANTOM 0x00000001
762#define CM_LOCATE_DEVNODE_CANCELREMOVE 0x00000002
763#define CM_LOCATE_DEVNODE_NOVALIDATION 0x00000004
764#define CM_LOCATE_DEVNODE_BITS 0x00000007
765
766#define CM_LOCATE_DEVINST_NORMAL CM_LOCATE_DEVNODE_NORMAL
767#define CM_LOCATE_DEVINST_PHANTOM CM_LOCATE_DEVNODE_PHANTOM
768#define CM_LOCATE_DEVINST_CANCELREMOVE CM_LOCATE_DEVNODE_CANCELREMOVE
769#define CM_LOCATE_DEVINST_NOVALIDATION CM_LOCATE_DEVNODE_NOVALIDATION
770#define CM_LOCATE_DEVINST_BITS CM_LOCATE_DEVNODE_BITS
771
772#define CM_OPEN_CLASS_KEY_INSTALLER 0x00000000
773#define CM_OPEN_CLASS_KEY_INTERFACE 0x00000001
774#define CM_OPEN_CLASS_KEY_BITS 0x00000001
775
776/* CM_Query_And_Remove_SubTree.ulFlags constants */
777#define CM_REMOVE_UI_OK 0x00000000
778#define CM_REMOVE_UI_NOT_OK 0x00000001
779#define CM_REMOVE_NO_RESTART 0x00000002
780#define CM_REMOVE_BITS 0x00000003
781
782#define CM_QUERY_REMOVE_UI_OK (CM_REMOVE_UI_OK)
783#define CM_QUERY_REMOVE_UI_NOT_OK (CM_REMOVE_UI_NOT_OK)
784#define CM_QUERY_REMOVE_BITS (CM_QUERY_REMOVE_UI_OK|CM_QUERY_REMOVE_UI_NOT_OK)
785
786/* CM_Reenumerate_DevNode.ulFlags constants */
787#define CM_REENUMERATE_NORMAL 0x00000000
788#define CM_REENUMERATE_SYNCHRONOUS 0x00000001
789#if (WINVER >= _WIN32_WINNT_WINXP)
790#define CM_REENUMERATE_RETRY_INSTALLATION 0x00000002
791#define CM_REENUMERATE_ASYNCHRONOUS 0x00000004
792#endif
793#define CM_REENUMERATE_BITS 0x00000007
794
795#define CM_REGISTER_DEVICE_DRIVER_STATIC 0x00000000
796#define CM_REGISTER_DEVICE_DRIVER_DISABLEABLE 0x00000001
797#define CM_REGISTER_DEVICE_DRIVER_REMOVABLE 0x00000002
798#define CM_REGISTER_DEVICE_DRIVER_BITS 0x00000003
799
800#define CM_REGISTRY_HARDWARE 0x00000000
801#define CM_REGISTRY_SOFTWARE 0x00000001
802#define CM_REGISTRY_USER 0x00000100
803#define CM_REGISTRY_CONFIG 0x00000200
804#define CM_REGISTRY_BITS 0x00000301
805
806#define CM_SET_DEVNODE_PROBLEM_NORMAL 0x00000000
807#define CM_SET_DEVNODE_PROBLEM_OVERRIDE 0x00000001
808#define CM_SET_DEVNODE_PROBLEM_BITS 0x00000001
809
810#define CM_SET_DEVINST_PROBLEM_NORMAL CM_SET_DEVNODE_PROBLEM_NORMAL
811#define CM_SET_DEVINST_PROBLEM_OVERRIDE CM_SET_DEVNODE_PROBLEM_OVERRIDE
812#define CM_SET_DEVINST_PROBLEM_BITS CM_SET_DEVNODE_PROBLEM_BITS
813
814/* CM_Set_HW_Prof_Flags[_Ex].ulFlags constants */
815#define CM_SET_HW_PROF_FLAGS_UI_NOT_OK 0x00000001
816#define CM_SET_HW_PROF_FLAGS_BITS 0x00000001
817
818/* CM_Setup_DevInst[_Ex].ulFlags constants */
819#define CM_SETUP_DEVNODE_READY 0x00000000
820#define CM_SETUP_DEVINST_READY CM_SETUP_DEVNODE_READY
821#define CM_SETUP_DOWNLOAD 0x00000001
822#define CM_SETUP_WRITE_LOG_CONFS 0x00000002
823#define CM_SETUP_PROP_CHANGE 0x00000003
824#if (WINVER >= _WIN32_WINNT_WINXP)
825#define CM_SETUP_DEVNODE_RESET 0x00000004
826#define CM_SETUP_DEVINST_RESET CM_SETUP_DEVNODE_RESET
827#endif
828#define CM_SETUP_BITS 0x00000007
829
830#define CM_QUERY_ARBITRATOR_RAW 0x00000000
831#define CM_QUERY_ARBITRATOR_TRANSLATED 0x00000001
832#define CM_QUERY_ARBITRATOR_BITS 0x00000001
833
834#if (WINVER >= _WIN32_WINNT_WINXP)
835#define CM_CUSTOMDEVPROP_MERGE_MULTISZ 0x00000001
836#define CM_CUSTOMDEVPROP_BITS 0x00000001
837#endif
838
839#define CM_NAME_ATTRIBUTE_NAME_RETRIEVED_FROM_DEVICE 0x1
840#define CM_NAME_ATTRIBUTE_USER_ASSIGNED_NAME 0x2
841
842#define CR_SUCCESS 0x00000000
843#define CR_DEFAULT 0x00000001
844#define CR_OUT_OF_MEMORY 0x00000002
845#define CR_INVALID_POINTER 0x00000003
846#define CR_INVALID_FLAG 0x00000004
847#define CR_INVALID_DEVNODE 0x00000005
848#define CR_INVALID_DEVINST CR_INVALID_DEVNODE
849#define CR_INVALID_RES_DES 0x00000006
850#define CR_INVALID_LOG_CONF 0x00000007
851#define CR_INVALID_ARBITRATOR 0x00000008
852#define CR_INVALID_NODELIST 0x00000009
853#define CR_DEVNODE_HAS_REQS 0x0000000A
854#define CR_DEVINST_HAS_REQS CR_DEVNODE_HAS_REQS
855#define CR_INVALID_RESOURCEID 0x0000000B
856#define CR_DLVXD_NOT_FOUND 0x0000000C
857#define CR_NO_SUCH_DEVNODE 0x0000000D
858#define CR_NO_SUCH_DEVINST CR_NO_SUCH_DEVNODE
859#define CR_NO_MORE_LOG_CONF 0x0000000E
860#define CR_NO_MORE_RES_DES 0x0000000F
861#define CR_ALREADY_SUCH_DEVNODE 0x00000010
862#define CR_ALREADY_SUCH_DEVINST CR_ALREADY_SUCH_DEVNODE
863#define CR_INVALID_RANGE_LIST 0x00000011
864#define CR_INVALID_RANGE 0x00000012
865#define CR_FAILURE 0x00000013
866#define CR_NO_SUCH_LOGICAL_DEV 0x00000014
867#define CR_CREATE_BLOCKED 0x00000015
868#define CR_NOT_SYSTEM_VM 0x00000016
869#define CR_REMOVE_VETOED 0x00000017
870#define CR_APM_VETOED 0x00000018
871#define CR_INVALID_LOAD_TYPE 0x00000019
872#define CR_BUFFER_SMALL 0x0000001A
873#define CR_NO_ARBITRATOR 0x0000001B
874#define CR_NO_REGISTRY_HANDLE 0x0000001C
875#define CR_REGISTRY_ERROR 0x0000001D
876#define CR_INVALID_DEVICE_ID 0x0000001E
877#define CR_INVALID_DATA 0x0000001F
878#define CR_INVALID_API 0x00000020
879#define CR_DEVLOADER_NOT_READY 0x00000021
880#define CR_NEED_RESTART 0x00000022
881#define CR_NO_MORE_HW_PROFILES 0x00000023
882#define CR_DEVICE_NOT_THERE 0x00000024
883#define CR_NO_SUCH_VALUE 0x00000025
884#define CR_WRONG_TYPE 0x00000026
885#define CR_INVALID_PRIORITY 0x00000027
886#define CR_NOT_DISABLEABLE 0x00000028
887#define CR_FREE_RESOURCES 0x00000029
888#define CR_QUERY_VETOED 0x0000002A
889#define CR_CANT_SHARE_IRQ 0x0000002B
890#define CR_NO_DEPENDENT 0x0000002C
891#define CR_SAME_RESOURCES 0x0000002D
892#define CR_NO_SUCH_REGISTRY_KEY 0x0000002E
893#define CR_INVALID_MACHINENAME 0x0000002F
894#define CR_REMOTE_COMM_FAILURE 0x00000030
895#define CR_MACHINE_UNAVAILABLE 0x00000031
896#define CR_NO_CM_SERVICES 0x00000032
897#define CR_ACCESS_DENIED 0x00000033
898#define CR_CALL_NOT_IMPLEMENTED 0x00000034
899#define CR_INVALID_PROPERTY 0x00000035
900#define CR_DEVICE_INTERFACE_ACTIVE 0x00000036
901#define CR_NO_SUCH_DEVICE_INTERFACE 0x00000037
902#define CR_INVALID_REFERENCE_STRING 0x00000038
903#define CR_INVALID_CONFLICT_LIST 0x00000039
904#define CR_INVALID_INDEX 0x0000003A
905#define CR_INVALID_STRUCTURE_SIZE 0x0000003B
906#define NUM_CR_RESULTS 0x0000003C
907
908#define CM_GLOBAL_STATE_CAN_DO_UI 0x00000001
909#define CM_GLOBAL_STATE_ON_BIG_STACK 0x00000002
910#define CM_GLOBAL_STATE_SERVICES_AVAILABLE 0x00000004
911#define CM_GLOBAL_STATE_SHUTTING_DOWN 0x00000008
912#define CM_GLOBAL_STATE_DETECTION_PENDING 0x00000010
913#if (WINVER >= _WIN32_WINNT_WIN7)
914#define CM_GLOBAL_STATE_REBOOT_REQUIRED 0x00000020
915#endif
916
917/* FIXME : These definitions don't exist in the official header
918
919#define CMP_MAGIC 0x01234567
920
921CMAPI
922CONFIGRET
923WINAPI
924CMP_GetServerSideDeviceInstallFlags(
925 _Out_ PULONG pulSSDIFlags,
926 _In_ ULONG ulFlags,
927 _In_ HMACHINE hMachine)
928
929CMAPI
930CONFIGRET
931WINAPI
932CMP_Init_Detection(
933 _In_ DWORD dwMagic);
934
935CMAPI
936CONFIGRET
937WINAPI
938CMP_RegisterNotification(
939 _In_ HANDLE hRecipient,
940 _In_ LPVOID lpvNotificationFilter,
941 _In_ DWORD dwFlags,
942 _Out_ PULONG pluhDevNotify);
943
944CMAPI
945CONFIGRET
946WINAPI
947CMP_Report_LogOn(
948 _In_ DWORD dwMagic,
949 _In_ DWORD dwProcessId);
950
951CMAPI
952CONFIGRET
953WINAPI
954CMP_UnregisterNotification(
955 _In_ ULONG luhDevNotify);
956
957CMAPI
958CONFIGRET
959WINAPI
960CMP_WaitServicesAvailable(
961 _In_ IN HMACHINE hMachine);
962*/
963
964CMAPI
966WINAPI
968 _Out_ PLOG_CONF plcLogConf,
969 _In_ DEVINST dnDevInst,
971 _In_ ULONG ulFlags);
972
973CMAPI
975WINAPI
977 _Out_ PLOG_CONF plcLogConf,
978 _In_ DEVINST dnDevInst,
980 _In_ ULONG ulFlags,
981 _In_opt_ HMACHINE hMachine);
982
983CMAPI
985WINAPI
987 _In_ DEVINST dnDevInst,
988 _In_ PSTR pszID,
989 _In_ ULONG ulFlags);
990
991CMAPI
993WINAPI
995 _In_ DEVINST dnDevInst,
996 _In_ PSTR pszID,
997 _In_ ULONG ulFlags,
998 _In_opt_ HMACHINE hMachine);
999
1000CMAPI
1002WINAPI
1004 _In_ DEVINST dnDevInst,
1005 _In_ PWSTR pszID,
1006 _In_ ULONG ulFlags,
1007 _In_opt_ HMACHINE hMachine);
1008
1009CMAPI
1011WINAPI
1013 _In_ DEVINST dnDevInst,
1014 _In_ PWSTR pszID,
1015 _In_ ULONG ulFlags);
1016
1017#ifdef UNICODE
1018#define CM_Add_ID CM_Add_IDW
1019#define CM_Add_ID_Ex CM_Add_ID_ExW
1020#else
1021#define CM_Add_ID CM_Add_IDA
1022#define CM_Add_ID_Ex CM_Add_ID_ExA
1023#endif /* UNICODE */
1024
1025CMAPI
1027WINAPI
1029 _In_ DWORDLONG ullStartValue,
1030 _In_ DWORDLONG ullEndValue,
1031 _In_ RANGE_LIST rlh,
1032 _In_ ULONG ulFlags);
1033
1034CMAPI
1036WINAPI
1038 _Out_opt_ PRES_DES prdResDes,
1039 _In_ LOG_CONF lcLogConf,
1040 _In_ RESOURCEID ResourceID,
1041 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
1042 _In_ ULONG ResourceLen,
1043 _In_ ULONG ulFlags);
1044
1045CMAPI
1047WINAPI
1049 _Out_opt_ PRES_DES prdResDes,
1050 _In_ LOG_CONF lcLogConf,
1051 _In_ RESOURCEID ResourceID,
1052 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
1053 _In_ ULONG ResourceLen,
1054 _In_ ULONG ulFlags,
1055 _In_opt_ HMACHINE hMachine);
1056
1057CMAPI
1059WINAPI
1061 _In_opt_ PCSTR UNCServerName,
1062 _Out_ PHMACHINE phMachine);
1063
1064CMAPI
1066WINAPI
1068 _In_opt_ PCWSTR UNCServerName,
1069 _Out_ PHMACHINE phMachine);
1070
1071#ifdef UNICODE
1072#define CM_Connect_Machine CM_Connect_MachineW
1073#else
1074#define CM_Connect_Machine CM_Connect_MachineA
1075#endif /* UNICODE */
1076
1077CMAPI
1079WINAPI
1081 _Out_ PDEVINST pdnDevInst,
1082 _In_ DEVINSTID_A pDeviceID,
1083 _In_ DEVINST dnParent,
1084 _In_ ULONG ulFlags);
1085
1086CMAPI
1088WINAPI
1090 _Out_ PDEVINST pdnDevInst,
1091 _In_ DEVINSTID_W pDeviceID,
1092 _In_ DEVINST dnParent,
1093 _In_ ULONG ulFlags);
1094
1095CMAPI
1097WINAPI
1099 _Out_ PDEVINST pdnDevInst,
1100 _In_ DEVINSTID_A pDeviceID,
1101 _In_ DEVINST dnParent,
1102 _In_ ULONG ulFlags,
1103 _In_opt_ HANDLE hMachine);
1104
1105CMAPI
1107WINAPI
1109 _Out_ PDEVINST pdnDevInst,
1110 _In_ DEVINSTID_W pDeviceID,
1111 _In_ DEVINST dnParent,
1112 _In_ ULONG ulFlags,
1113 _In_opt_ HANDLE hMachine);
1114
1115#define CM_Create_DevInstW CM_Create_DevNodeW
1116#define CM_Create_DevInstA CM_Create_DevNodeA
1117#define CM_Create_DevInst_ExW CM_Create_DevNode_ExW
1118#define CM_Create_DevInst_ExA CM_Create_DevNode_ExA
1119#ifdef UNICODE
1120#define CM_Create_DevNode CM_Create_DevNodeW
1121#define CM_Create_DevInst CM_Create_DevNodeW
1122#define CM_Create_DevNode_Ex CM_Create_DevNode_ExW
1123#define CM_Create_DevInst_Ex CM_Create_DevInst_ExW
1124#else
1125#define CM_Create_DevNode CM_Create_DevNodeA
1126#define CM_Create_DevInst CM_Create_DevNodeA
1127#define CM_Create_DevNode_Ex CM_Create_DevNode_ExA
1128#define CM_Create_DevInst_Ex CM_Create_DevNode_ExA
1129#endif /* UNICODE */
1130
1131CMAPI
1133WINAPI
1135 _Out_ PRANGE_LIST prlh,
1136 _In_ ULONG ulFlags);
1137
1138CMAPI
1140WINAPI
1142 _In_ LPGUID ClassGuid,
1143 _In_ ULONG ulFlags);
1144
1145CMAPI
1147WINAPI
1149 _In_ LPGUID ClassGuid,
1150 _In_ ULONG ulFlags,
1151 _In_opt_ HANDLE hMachine);
1152
1153CMAPI
1155WINAPI
1157 _In_ DEVNODE dnDevNode,
1158 _In_ ULONG ulHardwareProfile,
1159 _In_ ULONG ulFlags);
1160
1161CMAPI
1163WINAPI
1165 _In_ DEVNODE dnDevNode,
1166 _In_ ULONG ulHardwareProfile,
1167 _In_ ULONG ulFlags,
1168 _In_opt_ HANDLE hMachine);
1169
1170#define CM_Delete_DevInst_Key CM_Delete_DevNode_Key
1171#define CM_Delete_DevInst_Key_Ex CM_Delete_DevNode_Key_Ex
1172
1173CMAPI
1175WINAPI
1177 _In_ DWORDLONG ullStartValue,
1178 _In_ DWORDLONG ullEndValue,
1179 _In_ RANGE_LIST rlh,
1180 _In_ ULONG ulFlags);
1181
1182CMAPI
1184WINAPI
1186 _In_ DEVINST dnDevInst,
1187 _In_ RESOURCEID ResourceID,
1188 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
1189 _In_ ULONG ResourceLen,
1190 _Out_ PBOOL pbConflictDetected,
1191 _In_ ULONG ulFlags);
1192
1193CMAPI
1195WINAPI
1197 _In_ DEVINST dnDevInst,
1198 _In_ RESOURCEID ResourceID,
1199 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
1200 _In_ ULONG ResourceLen,
1201 _Out_ PBOOL pbConflictDetected,
1202 _In_ ULONG ulFlags,
1203 _In_opt_ HMACHINE hMachine);
1204
1205CMAPI
1207WINAPI
1209 _In_ DEVINST dnDevInst,
1210 _In_ ULONG ulFlags);
1211
1212CMAPI
1214WINAPI
1216 _In_ DEVINST dnDevInst,
1217 _In_ ULONG ulFlags,
1218 _In_opt_ HMACHINE hMachine);
1219
1220#define CM_Disable_DevInst CM_Disable_DevNode
1221#define CM_Disable_DevInst_Ex CM_Disable_DevNode_Ex
1222
1223CMAPI
1225WINAPI
1227 _In_opt_ HMACHINE hMachine);
1228
1229CMAPI
1231WINAPI
1233 _In_ RANGE_LIST rlhOld,
1234 _In_ RANGE_LIST rlhNew,
1235 _In_ ULONG ulFlags);
1236
1237CMAPI
1239WINAPI
1241 _In_ DEVINST dnDevInst,
1242 _In_ ULONG ulFlags);
1243
1244CMAPI
1246WINAPI
1248 _In_ DEVINST dnDevInst,
1249 _In_ ULONG ulFlags,
1250 _In_opt_ HMACHINE hMachine);
1251
1252#define CM_Enable_DevInst CM_Enable_DevNode
1253#define CM_Enable_DevInst_Ex CM_Enable_DevNode_Ex
1254
1255CMAPI
1257WINAPI
1259 _In_ ULONG ulClassIndex,
1260 _Out_ LPGUID ClassGuid,
1261 _In_ ULONG ulFlags);
1262
1263CMAPI
1265WINAPI
1267 _In_ ULONG ulClassIndex,
1268 _Out_ LPGUID ClassGuid,
1269 _In_ ULONG ulFlags,
1270 _In_opt_ HMACHINE hMachine);
1271
1272CMAPI
1274WINAPI
1276 _In_ ULONG ulEnumIndex,
1277 _Out_writes_(*pulLength) PCHAR Buffer,
1278 _Inout_ PULONG pulLength,
1279 _In_ ULONG ulFlags);
1280
1281CMAPI
1283WINAPI
1285 _In_ ULONG ulEnumIndex,
1286 _Out_writes_(*pulLength) PCHAR Buffer,
1287 _Inout_ PULONG pulLength,
1288 _In_ ULONG ulFlags,
1289 _In_opt_ HMACHINE hMachine);
1290
1291CMAPI
1293WINAPI
1295 _In_ ULONG ulEnumIndex,
1296 _Out_writes_(*pulLength) PWCHAR Buffer,
1297 _Inout_ PULONG pulLength,
1298 _In_ ULONG ulFlags,
1299 _In_opt_ HMACHINE hMachine);
1300
1301CMAPI
1303WINAPI
1305 _In_ ULONG ulEnumIndex,
1306 _Out_writes_(*pulLength) PWCHAR Buffer,
1307 _Inout_ PULONG pulLength,
1308 _In_ ULONG ulFlags);
1309
1310#ifdef UNICODE
1311#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsW
1312#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExW
1313#else
1314#define CM_Enumerate_Enumerators CM_Enumerate_EnumeratorsA
1315#define CM_Enumerate_Enumerators_Ex CM_Enumerate_Enumerators_ExA
1316#endif /* UNICODE */
1317
1318CMAPI
1320WINAPI
1322 _Out_ PDWORDLONG pullStart,
1323 _In_ DWORDLONG ullStart,
1324 _In_ ULONG ulLength,
1325 _In_ DWORDLONG ullAlignment,
1326 _In_ DWORDLONG ullEnd,
1327 _In_ RANGE_LIST rlh,
1328 _In_ ULONG ulFlags);
1329
1330CMAPI
1332WINAPI
1334 _In_ RANGE_LIST rlh,
1335 _Out_ PDWORDLONG pullStart,
1336 _Out_ PDWORDLONG pullEnd,
1337 _Out_ PRANGE_ELEMENT preElement,
1338 _In_ ULONG ulFlags);
1339
1340CMAPI
1342WINAPI
1344 _In_ LOG_CONF lcLogConfToBeFreed,
1345 _In_ ULONG ulFlags);
1346
1347CMAPI
1349WINAPI
1351 _In_ LOG_CONF lcLogConfToBeFreed,
1352 _In_ ULONG ulFlags,
1353 _In_opt_ HMACHINE hMachine);
1354
1355CMAPI
1357WINAPI
1359 _In_ LOG_CONF lcLogConf);
1360
1361CMAPI
1363WINAPI
1365 _In_ RANGE_LIST rlh,
1366 _In_ ULONG ulFlags);
1367
1368CMAPI
1370WINAPI
1372 _Out_opt_ PRES_DES prdResDes,
1373 _In_ RES_DES rdResDes,
1374 _In_ ULONG ulFlags);
1375
1376CMAPI
1378WINAPI
1380 _Out_opt_ PRES_DES prdResDes,
1381 _In_ RES_DES rdResDes,
1382 _In_ ULONG ulFlags,
1383 _In_opt_ HMACHINE hMachine);
1384
1385CMAPI
1387WINAPI
1389 _In_ RES_DES rdResDes);
1390
1391CMAPI
1393WINAPI
1395 _In_ CONFLICT_LIST clConflictList);
1396
1397CMAPI
1399WINAPI
1401 _Out_ PDEVINST pdnDevInst,
1402 _In_ DEVINST dnDevInst,
1403 _In_ ULONG ulFlags);
1404
1405CMAPI
1407WINAPI
1409 _Out_ PDEVINST pdnDevInst,
1410 _In_ DEVINST dnDevInst,
1411 _In_ ULONG ulFlags,
1412 _In_opt_ HMACHINE hMachine);
1413
1414CMAPI
1416WINAPI
1418 _In_ LPGUID ClassGuid,
1419 _Out_writes_opt_(*pulLength) PCHAR Buffer,
1420 _Inout_ PULONG pulLength,
1421 _In_ ULONG ulFlags);
1422
1423CMAPI
1425WINAPI
1427 _In_ LPGUID ClassGuid,
1428 _Out_writes_opt_(*pulLength) PWCHAR Buffer,
1429 _Inout_ PULONG pulLength,
1430 _In_ ULONG ulFlags);
1431
1432CMAPI
1434WINAPI
1436 _In_ LPGUID ClassGuid,
1437 _Out_writes_opt_(*pulLength) PCHAR Buffer,
1438 _Inout_ PULONG pulLength,
1439 _In_ ULONG ulFlags,
1440 _In_opt_ HMACHINE hMachine);
1441
1442CMAPI
1444WINAPI
1446 _In_ LPGUID ClassGuid,
1447 _Out_writes_opt_(*pulLength) PWCHAR Buffer,
1448 _Inout_ PULONG pulLength,
1449 _In_ ULONG ulFlags,
1450 _In_opt_ HMACHINE hMachine);
1451
1452#ifdef UNICODE
1453#define CM_Get_Class_Name CM_Get_Class_NameW
1454#define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExW
1455#else
1456#define CM_Get_Class_Name CM_Get_Class_NameA
1457#define CM_Get_Class_Name_Ex CM_Get_Class_Name_ExA
1458#endif /* UNICODE */
1459
1460CMAPI
1462WINAPI
1464 _In_ LPGUID ClassGuid,
1465 _Out_writes_opt_(*pulLength) LPSTR pszKeyName,
1466 _Inout_ PULONG pulLength,
1467 _In_ ULONG ulFlags);
1468
1469CMAPI
1471WINAPI
1473 _In_ LPGUID ClassGuid,
1474 _Out_writes_opt_(*pulLength) LPWSTR pszKeyName,
1475 _Inout_ PULONG pulLength,
1476 _In_ ULONG ulFlags);
1477
1478CMAPI
1480WINAPI
1482 _In_ LPGUID ClassGuid,
1483 _Out_writes_opt_(*pulLength) LPSTR pszKeyName,
1484 _Inout_ PULONG pulLength,
1485 _In_ ULONG ulFlags,
1486 _In_opt_ HMACHINE hMachine);
1487
1488CMAPI
1490WINAPI
1492 _In_ LPGUID ClassGuid,
1493 _Out_writes_opt_(*pulLength) LPWSTR pszKeyName,
1494 _Inout_ PULONG pulLength,
1495 _In_ ULONG ulFlags,
1496 _In_opt_ HMACHINE hMachine);
1497
1498#ifdef UNICODE
1499#define CM_Get_Class_Key_Name CM_Get_Class_Key_NameW
1500#define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExW
1501#else
1502#define CM_Get_Class_Key_Name CM_Get_Class_Key_NameA
1503#define CM_Get_Class_Key_Name_Ex CM_Get_Class_Key_Name_ExA
1504#endif /* UNICODE */
1505
1506CMAPI
1508WINAPI
1510 _Out_ PULONG pulDepth,
1511 _In_ DEVINST dnDevInst,
1512 _In_ ULONG ulFlags);
1513
1514CMAPI
1516WINAPI
1518 _Out_ PULONG pulDepth,
1519 _In_ DEVINST dnDevInst,
1520 _In_ ULONG ulFlags,
1521 _In_opt_ HMACHINE hMachine);
1522
1523CMAPI
1525WINAPI
1527 _In_ DEVINST dnDevInst,
1528 _Out_writes_(BufferLen) PCHAR Buffer,
1529 _In_ ULONG BufferLen,
1530 _In_ ULONG ulFlags);
1531
1532CMAPI
1534WINAPI
1536 _In_ DEVINST dnDevInst,
1537 _Out_writes_(BufferLen) PCHAR Buffer,
1538 _In_ ULONG BufferLen,
1539 _In_ ULONG ulFlags,
1540 _In_opt_ HMACHINE hMachine);
1541
1542CMAPI
1544WINAPI
1546 _In_ DEVINST dnDevInst,
1547 _Out_writes_(BufferLen) PWCHAR Buffer,
1548 _In_ ULONG BufferLen,
1549 _In_ ULONG ulFlags,
1550 _In_opt_ HMACHINE hMachine);
1551
1552CMAPI
1554WINAPI
1556 _In_ DEVINST dnDevInst,
1557 _Out_writes_(BufferLen) PWCHAR Buffer,
1558 _In_ ULONG BufferLen,
1559 _In_ ULONG ulFlags);
1560
1561#ifdef UNICODE
1562#define CM_Get_Device_ID CM_Get_Device_IDW
1563#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
1564#else
1565#define CM_Get_Device_ID CM_Get_Device_IDA
1566#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExA
1567#endif /* UNICODE */
1568
1569CMAPI
1571WINAPI
1573 _In_opt_ PCSTR pszFilter,
1574 _Out_writes_(BufferLen) PCHAR Buffer,
1575 _In_ ULONG BufferLen,
1576 _In_ ULONG ulFlags);
1577
1578CMAPI
1580WINAPI
1582 _In_opt_ PCSTR pszFilter,
1583 _Out_writes_(BufferLen) PCHAR Buffer,
1584 _In_ ULONG BufferLen,
1585 _In_ ULONG ulFlags,
1586 _In_opt_ HMACHINE hMachine);
1587
1588CMAPI
1590WINAPI
1592 _In_opt_ PCWSTR pszFilter,
1593 _Out_writes_(BufferLen) PWCHAR Buffer,
1594 _In_ ULONG BufferLen,
1595 _In_ ULONG ulFlags,
1596 _In_opt_ HMACHINE hMachine);
1597
1598CMAPI
1600WINAPI
1602 _In_opt_ PCWSTR pszFilter,
1603 _Out_writes_(BufferLen) PWCHAR Buffer,
1604 _In_ ULONG BufferLen,
1605 _In_ ULONG ulFlags);
1606
1607#ifdef UNICODE
1608#define CM_Get_Device_ID_List CM_Get_Device_ID_ListW
1609#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExW
1610#else
1611#define CM_Get_Device_ID_List CM_Get_Device_ID_ListA
1612#define CM_Get_Device_ID_List_Ex CM_Get_Device_ID_List_ExA
1613#endif /* UNICODE */
1614
1615CMAPI
1617WINAPI
1619 _Out_ PULONG pulLen,
1620 _In_opt_ PCSTR pszFilter,
1621 _In_ ULONG ulFlags);
1622
1623CMAPI
1625WINAPI
1627 _Out_ PULONG pulLen,
1628 _In_opt_ PCSTR pszFilter,
1629 _In_ ULONG ulFlags,
1630 _In_opt_ HMACHINE hMachine);
1631
1632CMAPI
1634WINAPI
1636 _Out_ PULONG pulLen,
1637 _In_opt_ PCWSTR pszFilter,
1638 _In_ ULONG ulFlags,
1639 _In_opt_ HMACHINE hMachine);
1640
1641CMAPI
1643WINAPI
1645 _Out_ PULONG pulLen,
1646 _In_opt_ PCWSTR pszFilter,
1647 _In_ ULONG ulFlags);
1648
1649#ifdef UNICODE
1650#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeW
1651#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExW
1652#else
1653#define CM_Get_Device_ID_List_Size CM_Get_Device_ID_List_SizeA
1654#define CM_Get_Device_ID_List_Size_Ex CM_Get_Device_ID_List_Size_ExA
1655#endif /* UNICODE */
1656
1657CMAPI
1659WINAPI
1661 _Out_ PULONG pulLen,
1662 _In_ DEVINST dnDevInst,
1663 _In_ ULONG ulFlags);
1664
1665CMAPI
1667WINAPI
1669 _Out_ PULONG pulLen,
1670 _In_ DEVINST dnDevInst,
1671 _In_ ULONG ulFlags,
1672 _In_opt_ HMACHINE hMachine);
1673
1674CMAPI
1676WINAPI
1678 _In_ DEVINST dnDevInst,
1679 _In_ ULONG ulProperty,
1680 _Out_opt_ PULONG pulRegDataType,
1682 _Inout_ PULONG pulLength,
1683 _In_ ULONG ulFlags);
1684
1685CMAPI
1687WINAPI
1689 _In_ DEVINST dnDevInst,
1690 _In_ ULONG ulProperty,
1691 _Out_opt_ PULONG pulRegDataType,
1693 _Inout_ PULONG pulLength,
1694 _In_ ULONG ulFlags);
1695
1696CMAPI
1698WINAPI
1700 _In_ DEVINST dnDevInst,
1701 _In_ ULONG ulProperty,
1702 _Out_opt_ PULONG pulRegDataType,
1704 _Inout_ PULONG pulLength,
1705 _In_ ULONG ulFlags,
1706 _In_opt_ HMACHINE hMachine);
1707
1708CMAPI
1710WINAPI
1712 _In_ DEVINST dnDevInst,
1713 _In_ ULONG ulProperty,
1714 _Out_opt_ PULONG pulRegDataType,
1716 _Inout_ PULONG pulLength,
1717 _In_ ULONG ulFlags,
1718 _In_opt_ HMACHINE hMachine);
1719
1720#define CM_Get_DevInst_Registry_PropertyW CM_Get_DevNode_Registry_PropertyW
1721#define CM_Get_DevInst_Registry_PropertyA CM_Get_DevNode_Registry_PropertyA
1722#define CM_Get_DevInst_Registry_Property_ExW CM_Get_DevNode_Registry_Property_ExW
1723#define CM_Get_DevInst_Registry_Property_ExA CM_Get_DevNode_Registry_Property_ExA
1724
1725#ifdef UNICODE
1726#define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyW
1727#define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW
1728#define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyW
1729#define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExW
1730#else
1731#define CM_Get_DevInst_Registry_Property CM_Get_DevNode_Registry_PropertyA
1732#define CM_Get_DevInst_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA
1733#define CM_Get_DevNode_Registry_Property CM_Get_DevNode_Registry_PropertyA
1734#define CM_Get_DevNode_Registry_Property_Ex CM_Get_DevNode_Registry_Property_ExA
1735#endif /* UNICODE */
1736
1737#if (WINVER >= _WIN32_WINNT_WINXP)
1738
1739CMAPI
1741WINAPI
1743 _In_ DEVINST dnDevInst,
1744 _In_ PCSTR pszCustomPropertyName,
1745 _Out_opt_ PULONG pulRegDataType,
1747 _Inout_ PULONG pulLength,
1748 _In_ ULONG ulFlags);
1749
1750CMAPI
1752WINAPI
1754 _In_ DEVINST dnDevInst,
1755 _In_ PCWSTR pszCustomPropertyName,
1756 _Out_opt_ PULONG pulRegDataType,
1758 _Inout_ PULONG pulLength,
1759 _In_ ULONG ulFlags);
1760
1761CMAPI
1763WINAPI
1765 _In_ DEVINST dnDevInst,
1766 _In_ PCSTR pszCustomPropertyName,
1767 _Out_opt_ PULONG pulRegDataType,
1769 _Inout_ PULONG pulLength,
1770 _In_ ULONG ulFlags,
1771 _In_opt_ HMACHINE hMachine);
1772
1773CMAPI
1775WINAPI
1777 _In_ DEVINST dnDevInst,
1778 _In_ PCWSTR pszCustomPropertyName,
1779 _Out_opt_ PULONG pulRegDataType,
1781 _Inout_ PULONG pulLength,
1782 _In_ ULONG ulFlags,
1783 _In_opt_ HMACHINE hMachine);
1784
1785#define CM_Get_DevInst_Custom_PropertyW CM_Get_DevNode_Custom_PropertyW
1786#define CM_Get_DevInst_Custom_PropertyA CM_Get_DevNode_Custom_PropertyA
1787#define CM_Get_DevInst_Custom_Property_ExW CM_Get_DevNode_Custom_Property_ExW
1788#define CM_Get_DevInst_Custom_Property_ExA CM_Get_DevNode_Custom_Property_ExA
1789#ifdef UNICODE
1790#define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyW
1791#define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW
1792#define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyW
1793#define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExW
1794#else
1795#define CM_Get_DevInst_Custom_Property CM_Get_DevNode_Custom_PropertyA
1796#define CM_Get_DevInst_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA
1797#define CM_Get_DevNode_Custom_Property CM_Get_DevNode_Custom_PropertyA
1798#define CM_Get_DevNode_Custom_Property_Ex CM_Get_DevNode_Custom_Property_ExA
1799#endif
1800
1801#endif /* (WINVER >= _WIN32_WINNT_WINXP) */
1802
1803CMAPI
1805WINAPI
1807 _Out_ PULONG pulStatus,
1808 _Out_ PULONG pulProblemNumber,
1809 _In_ DEVINST dnDevInst,
1810 _In_ ULONG ulFlags);
1811
1812CMAPI
1814WINAPI
1816 _Out_ PULONG pulStatus,
1817 _Out_ PULONG pulProblemNumber,
1818 _In_ DEVINST dnDevInst,
1819 _In_ ULONG ulFlags,
1820 _In_opt_ HMACHINE hMachine);
1821
1822#define CM_Get_DevInst_Status CM_Get_DevNode_Status
1823#define CM_Get_DevInst_Status_Ex CM_Get_DevNode_Status_Ex
1824
1825CMAPI
1827WINAPI
1829 _Out_opt_ PLOG_CONF plcLogConf,
1830 _In_ DEVINST dnDevInst,
1831 _In_ ULONG ulFlags);
1832
1833CMAPI
1835WINAPI
1837 _Out_opt_ PLOG_CONF plcLogConf,
1838 _In_ DEVINST dnDevInst,
1839 _In_ ULONG ulFlags,
1840 _In_opt_ HMACHINE hMachine);
1841
1842CMAPI
1844WINAPI
1846 _Out_ PULONG pulState,
1847 _In_ ULONG ulFlags);
1848
1849CMAPI
1851WINAPI
1853 _Out_ PULONG pulState,
1854 _In_ ULONG ulFlags,
1855 _In_opt_ HMACHINE hMachine);
1856
1857CMAPI
1859WINAPI
1861 _In_ ULONG ulIndex,
1862 _Out_ PHWPROFILEINFO_A pHWProfileInfo,
1863 _In_ ULONG ulFlags);
1864
1865CMAPI
1867WINAPI
1869 _In_ ULONG ulIndex,
1870 _Out_ PHWPROFILEINFO_A pHWProfileInfo,
1871 _In_ ULONG ulFlags,
1872 _In_opt_ HMACHINE hMachine);
1873
1874CMAPI
1876WINAPI
1878 _In_ ULONG ulIndex,
1879 _Out_ PHWPROFILEINFO_W pHWProfileInfo,
1880 _In_ ULONG ulFlags);
1881
1882CMAPI
1884WINAPI
1886 _In_ ULONG ulIndex,
1887 _Out_ PHWPROFILEINFO_W pHWProfileInfo,
1888 _In_ ULONG ulFlags,
1889 _In_opt_ HMACHINE hMachine);
1890
1891#ifdef UNICODE
1892#define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoW
1893#define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExW
1894#else
1895#define CM_Get_Hardware_Profile_Info CM_Get_Hardware_Profile_InfoA
1896#define CM_Get_Hardware_Profile_Info_Ex CM_Get_Hardware_Profile_Info_ExA
1897#endif
1898
1899CMAPI
1901WINAPI
1903 _In_ DEVINSTID_A szDevInstName,
1904 _In_ ULONG ulHardwareProfile,
1905 _Out_ PULONG pulValue,
1906 _In_ ULONG ulFlags);
1907
1908CMAPI
1910WINAPI
1912 _In_ DEVINSTID_W szDevInstName,
1913 _In_ ULONG ulHardwareProfile,
1914 _Out_ PULONG pulValue,
1915 _In_ ULONG ulFlags);
1916
1917CMAPI
1919WINAPI
1921 _In_ DEVINSTID_A szDevInstName,
1922 _In_ ULONG ulHardwareProfile,
1923 _Out_ PULONG pulValue,
1924 _In_ ULONG ulFlags,
1925 _In_opt_ HMACHINE hMachine);
1926
1927CMAPI
1929WINAPI
1931 _In_ DEVINSTID_W szDevInstName,
1932 _In_ ULONG ulHardwareProfile,
1933 _Out_ PULONG pulValue,
1934 _In_ ULONG ulFlags,
1935 _In_opt_ HMACHINE hMachine);
1936
1937#ifdef UNICODE
1938#define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsW
1939#define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExW
1940#else
1941#define CM_Get_HW_Prof_Flags CM_Get_HW_Prof_FlagsA
1942#define CM_Get_HW_Prof_Flags_Ex CM_Get_HW_Prof_Flags_ExA
1943#endif
1944
1945CMAPI
1947WINAPI
1949 _In_ LPCSTR pszDeviceInterface,
1950 _In_ LPGUID AliasInterfaceGuid,
1951 _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface,
1952 _Inout_ PULONG pulLength,
1953 _In_ ULONG ulFlags);
1954
1955CMAPI
1957WINAPI
1959 _In_ LPCWSTR pszDeviceInterface,
1960 _In_ LPGUID AliasInterfaceGuid,
1961 _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface,
1962 _Inout_ PULONG pulLength,
1963 _In_ ULONG ulFlags);
1964
1965CMAPI
1967WINAPI
1969 _In_ LPCSTR pszDeviceInterface,
1970 _In_ LPGUID AliasInterfaceGuid,
1971 _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface,
1972 _Inout_ PULONG pulLength,
1973 _In_ ULONG ulFlags,
1974 _In_opt_ HMACHINE hMachine);
1975
1976CMAPI
1978WINAPI
1980 _In_ LPCWSTR pszDeviceInterface,
1981 _In_ LPGUID AliasInterfaceGuid,
1982 _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface,
1983 _Inout_ PULONG pulLength,
1984 _In_ ULONG ulFlags,
1985 _In_opt_ HMACHINE hMachine);
1986
1987#ifdef UNICODE
1988#define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasW
1989#define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExW
1990#else
1991#define CM_Get_Device_Interface_Alias CM_Get_Device_Interface_AliasA
1992#define CM_Get_Device_Interface_Alias_Ex CM_Get_Device_Interface_Alias_ExA
1993#endif
1994
1995CMAPI
1997WINAPI
2000 _In_opt_ DEVINSTID_A pDeviceID,
2001 _Out_writes_(BufferLen) PCHAR Buffer,
2002 _In_ ULONG BufferLen,
2003 _In_ ULONG ulFlags);
2004
2005CMAPI
2007WINAPI
2010 _In_opt_ DEVINSTID_W pDeviceID,
2011 _Out_writes_(BufferLen) PWCHAR Buffer,
2012 _In_ ULONG BufferLen,
2013 _In_ ULONG ulFlags);
2014
2015CMAPI
2017WINAPI
2020 _In_opt_ DEVINSTID_A pDeviceID,
2021 _Out_writes_(BufferLen) PCHAR Buffer,
2022 _In_ ULONG BufferLen,
2023 _In_ ULONG ulFlags,
2024 _In_opt_ HMACHINE hMachine);
2025
2026CMAPI
2028WINAPI
2031 _In_opt_ DEVINSTID_W pDeviceID,
2032 _Out_writes_(BufferLen) PWCHAR Buffer,
2033 _In_ ULONG BufferLen,
2034 _In_ ULONG ulFlags,
2035 _In_opt_ HMACHINE hMachine);
2036
2037#ifdef UNICODE
2038#define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListW
2039#define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExW
2040#else
2041#define CM_Get_Device_Interface_List CM_Get_Device_Interface_ListA
2042#define CM_Get_Device_Interface_List_Ex CM_Get_Device_Interface_List_ExA
2043#endif
2044
2045CMAPI
2047WINAPI
2049 _Out_ PULONG pulLen,
2051 _In_opt_ DEVINSTID_A pDeviceID,
2052 _In_ ULONG ulFlags);
2053
2054CMAPI
2056WINAPI
2058 _Out_ PULONG pulLen,
2060 _In_opt_ DEVINSTID_W pDeviceID,
2061 _In_ ULONG ulFlags);
2062
2063CMAPI
2065WINAPI
2067 _Out_ PULONG pulLen,
2069 _In_opt_ DEVINSTID_A pDeviceID,
2070 _In_ ULONG ulFlags,
2071 _In_opt_ HMACHINE hMachine);
2072
2073CMAPI
2075WINAPI
2077 _Out_ PULONG pulLen,
2079 _In_opt_ DEVINSTID_W pDeviceID,
2080 _In_ ULONG ulFlags,
2081 _In_opt_ HMACHINE hMachine);
2082
2083#ifdef UNICODE
2084#define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeW
2085#define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExW
2086#else
2087#define CM_Get_Device_Interface_List_Size CM_Get_Device_Interface_List_SizeA
2088#define CM_Get_Device_Interface_List_Size_Ex CM_Get_Device_Interface_List_Size_ExA
2089#endif
2090
2091CMAPI
2093WINAPI
2095 _In_ LOG_CONF lcLogConf,
2096 _Out_ PPRIORITY pPriority,
2097 _In_ ULONG ulFlags);
2098
2099CMAPI
2101WINAPI
2103 _In_ LOG_CONF lcLogConf,
2104 _Out_ PPRIORITY pPriority,
2105 _In_ ULONG ulFlags,
2106 _In_opt_ HMACHINE hMachine);
2107
2108CMAPI
2110WINAPI
2112 _Out_opt_ PLOG_CONF plcLogConf,
2113 _In_ LOG_CONF lcLogConf,
2114 _In_ ULONG ulFlags);
2115
2116CMAPI
2118WINAPI
2120 _Out_opt_ PLOG_CONF plcLogConf,
2121 _In_ LOG_CONF lcLogConf,
2122 _In_ ULONG ulFlags,
2123 _In_opt_ HMACHINE hMachine);
2124
2125CMAPI
2127WINAPI
2129 _Out_ PRES_DES prdResDes,
2130 _In_ RES_DES rdResDes,
2131 _In_ RESOURCEID ForResource,
2132 _Out_opt_ PRESOURCEID pResourceID,
2133 _In_ ULONG ulFlags);
2134
2135CMAPI
2137WINAPI
2139 _Out_ PRES_DES prdResDes,
2140 _In_ RES_DES rdResDes,
2141 _In_ RESOURCEID ForResource,
2142 _Out_opt_ PRESOURCEID pResourceID,
2143 _In_ ULONG ulFlags,
2144 _In_opt_ HMACHINE hMachine);
2145
2146CMAPI
2148WINAPI
2150 _Out_ PDEVINST pdnDevInst,
2151 _In_ DEVINST dnDevInst,
2152 _In_ ULONG ulFlags);
2153
2154CMAPI
2156WINAPI
2158 _Out_ PDEVINST pdnDevInst,
2159 _In_ DEVINST dnDevInst,
2160 _In_ ULONG ulFlags,
2161 _In_opt_ HMACHINE hMachine);
2162
2163CMAPI
2165WINAPI
2167 _In_ RES_DES rdResDes,
2168 _Out_writes_bytes_(BufferLen) PVOID Buffer,
2169 _In_ ULONG BufferLen,
2170 _In_ ULONG ulFlags);
2171
2172CMAPI
2174WINAPI
2176 _In_ RES_DES rdResDes,
2177 _Out_writes_bytes_(BufferLen) PVOID Buffer,
2178 _In_ ULONG BufferLen,
2179 _In_ ULONG ulFlags,
2180 _In_opt_ HMACHINE hMachine);
2181
2182CMAPI
2184WINAPI
2187 _In_ RES_DES rdResDes,
2188 _In_ ULONG ulFlags);
2189
2190CMAPI
2192WINAPI
2195 _In_ RES_DES rdResDes,
2196 _In_ ULONG ulFlags,
2197 _In_opt_ HMACHINE hMachine);
2198
2199CMAPI
2201WINAPI
2203 _In_ CONFLICT_LIST clConflictList,
2204 _Out_ PULONG pulCount);
2205
2206CMAPI
2208WINAPI
2210 _In_ CONFLICT_LIST clConflictList,
2211 _In_ ULONG ulIndex,
2212 _Inout_ PCONFLICT_DETAILS_A pConflictDetails);
2213
2214CMAPI
2216WINAPI
2218 _In_ CONFLICT_LIST clConflictList,
2219 _In_ ULONG ulIndex,
2220 _Inout_ PCONFLICT_DETAILS_W pConflictDetails);
2221
2222#ifdef UNICODE
2223#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsW
2224#else
2225#define CM_Get_Resource_Conflict_Details CM_Get_Resource_Conflict_DetailsA
2226#endif /* UNICODE */
2227
2228CMAPI
2230WINAPI
2232 _In_ LPGUID ClassGuid,
2233 _In_ ULONG ulProperty,
2234 _Out_opt_ PULONG pulRegDataType,
2236 _Inout_ PULONG pulLength,
2237 _In_ ULONG ulFlags,
2238 _In_opt_ HMACHINE hMachine);
2239
2240CMAPI
2242WINAPI
2244 _In_ LPGUID ClassGuid,
2245 _In_ ULONG ulProperty,
2247 _In_ ULONG ulLength,
2248 _In_ ULONG ulFlags,
2249 _In_opt_ HMACHINE hMachine);
2250
2251CMAPI
2253WINAPI
2255 _In_ LPGUID ClassGuid,
2256 _In_ ULONG ulProperty,
2257 _Out_opt_ PULONG pulRegDataType,
2259 _Inout_ PULONG pulLength,
2260 _In_ ULONG ulFlags,
2261 _In_opt_ HMACHINE hMachine);
2262
2263CMAPI
2265WINAPI
2267 _In_ LPGUID ClassGuid,
2268 _In_ ULONG ulProperty,
2270 _In_ ULONG ulLength,
2271 _In_ ULONG ulFlags,
2272 _In_opt_ HMACHINE hMachine);
2273
2274#ifdef UNICODE
2275#define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyW
2276#define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyW
2277#else
2278#define CM_Get_Class_Registry_Property CM_Get_Class_Registry_PropertyA
2279#define CM_Set_Class_Registry_Property CM_Set_Class_Registry_PropertyA
2280#endif // UNICODE
2281
2282CMAPI
2284WINAPI
2286 _Out_ PDEVINST pdnDevInst,
2287 _In_ DEVINST DevInst,
2288 _In_ ULONG ulFlags);
2289
2290CMAPI
2292WINAPI
2294 _Out_ PDEVINST pdnDevInst,
2295 _In_ DEVINST DevInst,
2296 _In_ ULONG ulFlags,
2297 _In_opt_ HMACHINE hMachine);
2298
2299CMAPI
2300WORD
2301WINAPI
2303
2304CMAPI
2305WORD
2306WINAPI
2308 _In_opt_ HMACHINE hMachine);
2309
2310#if (WINVER >= _WIN32_WINNT_WINXP)
2311
2312CMAPI
2313BOOL
2314WINAPI
2316 _In_ WORD wVersion);
2317
2318CMAPI
2319BOOL
2320WINAPI
2322 _In_ WORD wVersion,
2323 _In_opt_ HMACHINE hMachine);
2324
2325#endif /* (WINVER >= _WIN32_WINNT_WINXP) */
2326
2327CMAPI
2329WINAPI
2331 _In_ RANGE_LIST rlhOld1,
2332 _In_ RANGE_LIST rlhOld2,
2333 _In_ RANGE_LIST rlhNew,
2334 _In_ ULONG ulFlags);
2335
2336CMAPI
2338WINAPI
2340 _In_ RANGE_LIST rlhOld,
2341 _In_ RANGE_LIST rlhNew,
2342 _In_ DWORDLONG ullMaxValue,
2343 _In_ ULONG ulFlags);
2344
2345CMAPI
2347WINAPI
2349 _Out_ PBOOL pbPresent);
2350
2351CMAPI
2353WINAPI
2355 _Out_ PBOOL pbPresent,
2356 _In_opt_ HMACHINE hMachine);
2357
2358CMAPI
2360WINAPI
2362 _Out_ PDEVINST pdnDevInst,
2363 _In_opt_ DEVINSTID_A pDeviceID,
2364 _In_ ULONG ulFlags);
2365
2366CMAPI
2368WINAPI
2370 _Out_ PDEVINST pdnDevInst,
2371 _In_opt_ DEVINSTID_A pDeviceID,
2372 _In_ ULONG ulFlags,
2373 _In_opt_ HMACHINE hMachine);
2374
2375CMAPI
2377WINAPI
2379 _Out_ PDEVINST pdnDevInst,
2380 _In_opt_ DEVINSTID_W pDeviceID,
2381 _In_ ULONG ulFlags,
2382 _In_opt_ HMACHINE hMachine);
2383
2384CMAPI
2386WINAPI
2388 _Out_ PDEVINST pdnDevInst,
2389 _In_opt_ DEVINSTID_W pDeviceID,
2390 _In_ ULONG ulFlags);
2391
2392#define CM_Locate_DevInstA CM_Locate_DevNodeA
2393#define CM_Locate_DevInstW CM_Locate_DevNodeW
2394#define CM_Locate_DevInst_ExA CM_Locate_DevNode_ExA
2395#define CM_Locate_DevInst_ExW CM_Locate_DevNode_ExW
2396
2397#ifdef UNICODE
2398#define CM_Locate_DevNode CM_Locate_DevNodeW
2399#define CM_Locate_DevInst CM_Locate_DevNodeW
2400#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExW
2401#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExW
2402#else
2403#define CM_Locate_DevNode CM_Locate_DevNodeA
2404#define CM_Locate_DevInst CM_Locate_DevNodeA
2405#define CM_Locate_DevNode_Ex CM_Locate_DevNode_ExA
2406#define CM_Locate_DevInst_Ex CM_Locate_DevNode_ExA
2407#endif /* UNICODE */
2408
2409CMAPI
2411WINAPI
2413 _In_ RANGE_LIST rlhOld1,
2414 _In_ RANGE_LIST rlhOld2,
2415 _In_ RANGE_LIST rlhNew,
2416 _In_ ULONG ulFlags);
2417
2418CMAPI
2420WINAPI
2422 _Out_ PRES_DES prdResDes,
2423 _In_ RES_DES rdResDes,
2424 _In_ RESOURCEID ResourceID,
2425 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
2426 _In_ ULONG ResourceLen,
2427 _In_ ULONG ulFlags);
2428
2429CMAPI
2431WINAPI
2433 _Out_ PRES_DES prdResDes,
2434 _In_ RES_DES rdResDes,
2435 _In_ RESOURCEID ResourceID,
2436 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
2437 _In_ ULONG ResourceLen,
2438 _In_ ULONG ulFlags,
2439 _In_opt_ HMACHINE hMachine);
2440
2441CMAPI
2443WINAPI
2445 _In_ DEVINST dnFromDevInst,
2446 _In_ DEVINST dnToDevInst,
2447 _In_ ULONG ulFlags);
2448
2449CMAPI
2451WINAPI
2453 _In_ DEVINST dnFromDevInst,
2454 _In_ DEVINST dnToDevInst,
2455 _In_ ULONG ulFlags,
2456 _In_opt_ HMACHINE hMachine);
2457
2458#define CM_Move_DevInst CM_Move_DevNode
2459#define CM_Move_DevInst_Ex CM_Move_DevNode_Ex
2460
2461CMAPI
2463WINAPI
2465 _Inout_ PRANGE_ELEMENT preElement,
2466 _Out_ PDWORDLONG pullStart,
2467 _Out_ PDWORDLONG pullEnd,
2468 _In_ ULONG ulFlags);
2469
2470CMAPI
2472WINAPI
2474 _In_opt_ LPGUID ClassGuid,
2475 _In_opt_ LPCSTR pszClassName,
2476 _In_ REGSAM samDesired,
2478 _Out_ PHKEY phkClass,
2479 _In_ ULONG ulFlags);
2480
2481CMAPI
2483WINAPI
2485 _In_opt_ LPGUID ClassGuid,
2486 _In_opt_ LPCWSTR pszClassName,
2487 _In_ REGSAM samDesired,
2489 _Out_ PHKEY phkClass,
2490 _In_ ULONG ulFlags);
2491
2492CMAPI
2494WINAPI
2496 _In_opt_ LPGUID pszClassGuid,
2497 _In_opt_ LPCSTR pszClassName,
2498 _In_ REGSAM samDesired,
2500 _Out_ PHKEY phkClass,
2501 _In_ ULONG ulFlags,
2502 _In_opt_ HMACHINE hMachine);
2503
2504CMAPI
2506WINAPI
2508 _In_opt_ LPGUID pszClassGuid,
2509 _In_opt_ LPCWSTR pszClassName,
2510 _In_ REGSAM samDesired,
2512 _Out_ PHKEY phkClass,
2513 _In_ ULONG ulFlags,
2514 _In_opt_ HMACHINE hMachine);
2515
2516#ifdef UNICODE
2517#define CM_Open_Class_Key CM_Open_Class_KeyW
2518#define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExW
2519#else
2520#define CM_Open_Class_Key CM_Open_Class_KeyA
2521#define CM_Open_Class_Key_Ex CM_Open_Class_Key_ExA
2522#endif /* UNICODE */
2523
2524CMAPI
2526WINAPI
2528 _In_ DEVINST dnDevNode,
2529 _In_ REGSAM samDesired,
2530 _In_ ULONG ulHardwareProfile,
2532 _Out_ PHKEY phkDevice,
2533 _In_ ULONG ulFlags);
2534
2535CMAPI
2537WINAPI
2539 _In_ DEVINST dnDevNode,
2540 _In_ REGSAM samDesired,
2541 _In_ ULONG ulHardwareProfile,
2543 _Out_ PHKEY phkDevice,
2544 _In_ ULONG ulFlags,
2545 _In_opt_ HMACHINE hMachine);
2546
2547#define CM_Open_DevInst_Key CM_Open_DevNode_Key
2548#define CM_Open_DevInst_Key_Ex CM_Open_DevNode_Key_Ex
2549
2550#if (WINVER >= _WIN32_WINNT_VISTA)
2551
2552CMAPI
2554WINAPI
2556 _In_ LPCSTR pszDeviceInterface,
2557 _In_ REGSAM samDesired,
2559 _Out_ PHKEY phkDeviceInterface,
2560 _In_ ULONG ulFlags);
2561
2562CMAPI
2564WINAPI
2566 _In_ LPCWSTR pszDeviceInterface,
2567 _In_ REGSAM samDesired,
2569 _Out_ PHKEY phkDeviceInterface,
2570 _In_ ULONG ulFlags);
2571
2572CMAPI
2574WINAPI
2576 _In_ LPCSTR pszDeviceInterface,
2577 _In_ REGSAM samDesired,
2579 _Out_ PHKEY phkDeviceInterface,
2580 _In_ ULONG ulFlags,
2581 _In_opt_ HMACHINE hMachine);
2582
2583CMAPI
2585WINAPI
2587 _In_ LPCWSTR pszDeviceInterface,
2588 _In_ REGSAM samDesired,
2590 _Out_ PHKEY phkDeviceInterface,
2591 _In_ ULONG ulFlags,
2592 _In_opt_ HMACHINE hMachine);
2593
2594#ifdef UNICODE
2595#define CM_Open_Device_Interface_Key CM_Open_Device_Interface_KeyW
2596#define CM_Open_Device_Interface_Key_Ex CM_Open_Device_Interface_Key_ExW
2597#else
2598#define CM_Open_Device_Interface_Key CM_Open_Device_Interface_KeyA
2599#define CM_Open_Device_Interface_Key_Ex CM_Open_Device_Interface_Key_ExA
2600#endif
2601
2602CMAPI
2604WINAPI
2606 _In_ LPCSTR pszDeviceInterface,
2607 _In_ ULONG ulFlags);
2608
2609CMAPI
2611WINAPI
2613 _In_ LPCWSTR pszDeviceInterface,
2614 _In_ ULONG ulFlags);
2615
2616CMAPI
2618WINAPI
2620 _In_ LPCSTR pszDeviceInterface,
2621 _In_ ULONG ulFlags,
2622 _In_opt_ HMACHINE hMachine);
2623
2624CMAPI
2626WINAPI
2628 _In_ LPCWSTR pszDeviceInterface,
2629 _In_ ULONG ulFlags,
2630 _In_opt_ HMACHINE hMachine);
2631
2632#ifdef UNICODE
2633#define CM_Delete_Device_Interface_Key CM_Delete_Device_Interface_KeyW
2634#define CM_Delete_Device_Interface_Key_Ex CM_Delete_Device_Interface_Key_ExW
2635#else
2636#define CM_Delete_Device_Interface_Key CM_Delete_Device_Interface_KeyA
2637#define CM_Delete_Device_Interface_Key_Ex CM_Delete_Device_Interface_Key_ExA
2638#endif
2639
2640#endif /* (WINVER >= _WIN32_WINNT_VISTA) */
2641
2642CMAPI
2644WINAPI
2647 _In_ ULONG DataLen,
2648 _In_ DEVINST dnDevInst,
2649 _In_ RESOURCEID ResourceID,
2650 _In_ ULONG ulFlags);
2651
2652CMAPI
2654WINAPI
2657 _In_ ULONG DataLen,
2658 _In_ DEVINST dnDevInst,
2659 _In_ RESOURCEID ResourceID,
2660 _In_ ULONG ulFlags,
2661 _In_opt_ HMACHINE hMachine);
2662
2663CMAPI
2665WINAPI
2668 _In_ DEVINST dnDevInst,
2669 _In_ RESOURCEID ResourceID,
2670 _In_ ULONG ulFlags);
2671
2672CMAPI
2674WINAPI
2677 _In_ DEVINST dnDevInst,
2678 _In_ RESOURCEID ResourceID,
2679 _In_ ULONG ulFlags,
2680 _In_opt_ HMACHINE hMachine);
2681
2682CMAPI
2684WINAPI
2686 _In_ DEVINST dnAncestor,
2687 _In_ ULONG ulFlags);
2688
2689CMAPI
2691WINAPI
2693 _In_ DEVINST dnAncestor,
2694 _In_ ULONG ulFlags,
2695 _In_opt_ HMACHINE hMachine);
2696
2697CMAPI
2699WINAPI
2701 _In_ DEVINST dnAncestor,
2702 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2703 _Out_writes_opt_(ulNameLength) LPSTR pszVetoName,
2704 _In_ ULONG ulNameLength,
2705 _In_ ULONG ulFlags);
2706
2707CMAPI
2709WINAPI
2711 _In_ DEVINST dnAncestor,
2712 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2713 _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName,
2714 _In_ ULONG ulNameLength,
2715 _In_ ULONG ulFlags);
2716
2717CMAPI
2719WINAPI
2721 _In_ DEVINST dnAncestor,
2722 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2723 _Out_writes_opt_(ulNameLength) LPSTR pszVetoName,
2724 _In_ ULONG ulNameLength,
2725 _In_ ULONG ulFlags,
2726 _In_opt_ HMACHINE hMachine);
2727
2728CMAPI
2730WINAPI
2732 _In_ DEVINST dnAncestor,
2733 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2734 _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName,
2735 _In_ ULONG ulNameLength,
2736 _In_ ULONG ulFlags,
2737 _In_opt_ HMACHINE hMachine);
2738
2739#ifdef UNICODE
2740#define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeW
2741#define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExW
2742#else
2743#define CM_Query_And_Remove_SubTree CM_Query_And_Remove_SubTreeA
2744#define CM_Query_And_Remove_SubTree_Ex CM_Query_And_Remove_SubTree_ExA
2745#endif
2746
2747CMAPI
2749WINAPI
2751 _Out_ PCONFLICT_LIST pclConflictList,
2752 _In_ DEVINST dnDevInst,
2753 _In_ RESOURCEID ResourceID,
2754 _In_reads_bytes_(ResourceLen) PCVOID ResourceData,
2755 _In_ ULONG ResourceLen,
2756 _In_ ULONG ulFlags,
2757 _In_opt_ HMACHINE hMachine);
2758
2759CMAPI
2761WINAPI
2763 _In_ DEVINST dnDevInst,
2764 _In_ ULONG ulFlags);
2765
2766CMAPI
2768WINAPI
2770 _In_ DEVINST dnDevInst,
2771 _In_ ULONG ulFlags,
2772 _In_opt_ HMACHINE hMachine);
2773
2774#define CM_Reenumerate_DevInst CM_Reenumerate_DevNode
2775#define CM_Reenumerate_DevInst_Ex CM_Reenumerate_DevNode_Ex
2776
2777CMAPI
2779WINAPI
2781 _In_ DEVINST dnDevInst,
2783 _In_opt_ LPCSTR pszReference,
2784 _Out_writes_(*pulLength) LPSTR pszDeviceInterface,
2785 _Inout_ PULONG pulLength,
2786 _In_ ULONG ulFlags);
2787
2788CMAPI
2790WINAPI
2792 _In_ DEVINST dnDevInst,
2794 _In_opt_ LPCWSTR pszReference,
2795 _Out_writes_(*pulLength) LPWSTR pszDeviceInterface,
2796 _Inout_ PULONG pulLength,
2797 _In_ ULONG ulFlags);
2798
2799CMAPI
2801WINAPI
2803 _In_ DEVINST dnDevInst,
2805 _In_opt_ LPCSTR pszReference,
2806 _Out_writes_(*pulLength) LPSTR pszDeviceInterface,
2807 _Inout_ PULONG pulLength,
2808 _In_ ULONG ulFlags,
2809 _In_opt_ HMACHINE hMachine);
2810
2811CMAPI
2813WINAPI
2815 _In_ DEVINST dnDevInst,
2817 _In_opt_ LPCWSTR pszReference,
2818 _Out_writes_(*pulLength) LPWSTR pszDeviceInterface,
2819 _Inout_ PULONG pulLength,
2820 _In_ ULONG ulFlags,
2821 _In_opt_ HMACHINE hMachine);
2822
2823#ifdef UNICODE
2824#define CM_Register_Device_Interface CM_Register_Device_InterfaceW
2825#define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExW
2826#else
2827#define CM_Register_Device_Interface CM_Register_Device_InterfaceA
2828#define CM_Register_Device_Interface_Ex CM_Register_Device_Interface_ExA
2829#endif
2830
2831CMAPI
2833WINAPI
2835 _In_ DEVINST dnDevInst,
2836 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2837 _Out_writes_opt_(ulNameLength) LPSTR pszVetoName,
2838 _In_ ULONG ulNameLength,
2839 _In_ ULONG ulFlags);
2840
2841CMAPI
2843WINAPI
2845 _In_ DEVINST dnDevInst,
2846 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2847 _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName,
2848 _In_ ULONG ulNameLength,
2849 _In_ ULONG ulFlags,
2850 _In_opt_ HMACHINE hMachine);
2851
2852CMAPI
2854WINAPI
2856 _In_ DEVINST dnDevInst,
2857 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2858 _Out_writes_opt_(ulNameLength) LPSTR pszVetoName,
2859 _In_ ULONG ulNameLength,
2860 _In_ ULONG ulFlags,
2861 _In_opt_ HMACHINE hMachine);
2862
2863CMAPI
2865WINAPI
2867 _In_ DEVINST dnDevInst,
2868 _Out_opt_ PPNP_VETO_TYPE pVetoType,
2869 _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName,
2870 _In_ ULONG ulNameLength,
2871 _In_ ULONG ulFlags);
2872
2873#ifdef UNICODE
2874#define CM_Request_Device_Eject CM_Request_Device_EjectW
2875#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExW
2876#else
2877#define CM_Request_Device_Eject CM_Request_Device_EjectA
2878#define CM_Request_Device_Eject_Ex CM_Request_Device_Eject_ExA
2879#endif
2880
2881CMAPI
2883WINAPI
2885
2886CMAPI
2888WINAPI
2890 _In_opt_ HMACHINE hMachine);
2891
2892CMAPI
2894WINAPI
2896 _In_ ULONG ulFlags);
2897
2898CMAPI
2900WINAPI
2902 _In_ ULONG ulFlags,
2903 _In_opt_ HMACHINE hMachine);
2904
2905#if (WINVER >= _WIN32_WINNT_VISTA)
2906
2909
2912 _In_opt_ CONST GUID *SchemeGuid,
2913 _In_opt_ CONST GUID *SubGroupOfPowerSettingsGuid,
2914 _In_opt_ CONST GUID *PowerSettingGuid,
2915 _In_ ULONG AccessFlags,
2916 _In_ ULONG Type,
2920
2923 _In_ CONST GUID *SchemeGuid,
2925
2928 _In_ CONST GUID *SchemeGuid,
2930
2934
2937 _In_ CONST GUID *SourceSchemeGuid,
2938 _Inout_ GUID **DestinationSchemeGuid,
2940
2943 _In_ CONST GUID *SchemeGuid,
2945
2948 _In_ LPCWSTR ImportFileNamePath,
2949 _Inout_ GUID **DestinationSchemeGuid,
2951
2952#endif /* (WINVER >= _WIN32_WINNT_VISTA) */
2953
2954CMAPI
2956WINAPI
2958 _In_ DEVINST dnDevInst,
2959 _In_ ULONG ulProblem,
2960 _In_ ULONG ulFlags);
2961
2962CMAPI
2964WINAPI
2966 _In_ DEVINST dnDevInst,
2967 _In_ ULONG ulProblem,
2968 _In_ ULONG ulFlags,
2969 _In_opt_ HMACHINE hMachine);
2970
2971#define CM_Set_DevInst_Problem CM_Set_DevNode_Problem
2972#define CM_Set_DevInst_Problem_Ex CM_Set_DevNode_Problem_Ex
2973
2974CMAPI
2976WINAPI
2978 _In_ LPCSTR pszDeviceInterface,
2979 _In_ ULONG ulFlags);
2980
2981CMAPI
2983WINAPI
2985 _In_ LPCWSTR pszDeviceInterface,
2986 _In_ ULONG ulFlags);
2987
2988CMAPI
2990WINAPI
2992 _In_ LPCSTR pszDeviceInterface,
2993 _In_ ULONG ulFlags,
2994 _In_opt_ HMACHINE hMachine);
2995
2996CMAPI
2998WINAPI
3000 _In_ LPCWSTR pszDeviceInterface,
3001 _In_ ULONG ulFlags,
3002 _In_opt_ HMACHINE hMachine);
3003
3004#ifdef UNICODE
3005#define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceW
3006#define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExW
3007#else
3008#define CM_Unregister_Device_Interface CM_Unregister_Device_InterfaceA
3009#define CM_Unregister_Device_Interface_Ex CM_Unregister_Device_Interface_ExA
3010#endif
3011
3012CMAPI
3014WINAPI
3016 _In_ DEVINST dnDevInst,
3017 _In_ ULONG ulFlags);
3018
3019CMAPI
3021WINAPI
3023 _In_ DEVINST dnDevInst,
3024 _In_ ULONG ulFlags,
3025 _In_opt_ HMACHINE hMachine);
3026
3027CMAPI
3029WINAPI
3031 _In_ DEVINST dnAncestor,
3032 _In_ ULONG ulFlags);
3033
3034CMAPI
3036WINAPI
3038 _In_ DEVINST dnAncestor,
3039 _In_ ULONG ulFlags,
3040 _In_opt_ HMACHINE hMachine);
3041
3042CMAPI
3044WINAPI
3046 _In_ DEVINST dnDevInst,
3047 _In_ ULONG ulProperty,
3049 _In_ ULONG ulLength,
3050 _In_ ULONG ulFlags);
3051
3052CMAPI
3054WINAPI
3056 _In_ DEVINST dnDevInst,
3057 _In_ ULONG ulProperty,
3059 _In_ ULONG ulLength,
3060 _In_ ULONG ulFlags);
3061
3062CMAPI
3064WINAPI
3066 _In_ DEVINST dnDevInst,
3067 _In_ ULONG ulProperty,
3069 _In_ ULONG ulLength,
3070 _In_ ULONG ulFlags,
3071 _In_opt_ HMACHINE hMachine);
3072
3073CMAPI
3075WINAPI
3077 _In_ DEVINST dnDevInst,
3078 _In_ ULONG ulProperty,
3080 _In_ ULONG ulLength,
3081 _In_ ULONG ulFlags,
3082 _In_opt_ HMACHINE hMachine);
3083
3084#define CM_Set_DevInst_Registry_PropertyW CM_Set_DevNode_Registry_PropertyW
3085#define CM_Set_DevInst_Registry_PropertyA CM_Set_DevNode_Registry_PropertyA
3086#define CM_Set_DevInst_Registry_Property_ExW CM_Set_DevNode_Registry_Property_ExW
3087#define CM_Set_DevInst_Registry_Property_ExA CM_Set_DevNode_Registry_Property_ExA
3088
3089#ifdef UNICODE
3090#define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyW
3091#define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW
3092#define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyW
3093#define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExW
3094#else
3095#define CM_Set_DevInst_Registry_Property CM_Set_DevNode_Registry_PropertyA
3096#define CM_Set_DevInst_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA
3097#define CM_Set_DevNode_Registry_Property CM_Set_DevNode_Registry_PropertyA
3098#define CM_Set_DevNode_Registry_Property_Ex CM_Set_DevNode_Registry_Property_ExA
3099#endif /* UNICODE */
3100
3101CMAPI
3103WINAPI
3105 _In_ ULONG ulHardwareProfile,
3106 _In_ ULONG ulFlags);
3107
3108CMAPI
3110WINAPI
3112 _In_ ULONG ulHardwareProfile,
3113 _In_ ULONG ulFlags,
3114 _In_opt_ HMACHINE hMachine);
3115
3116CMAPI
3118WINAPI
3120 _In_ DEVINSTID_A szDevInstName,
3121 _In_ ULONG ulConfig,
3122 _In_ ULONG ulValue,
3123 _In_ ULONG ulFlags);
3124
3125CMAPI
3127WINAPI
3129 _In_ DEVINSTID_W szDevInstName,
3130 _In_ ULONG ulConfig,
3131 _In_ ULONG ulValue,
3132 _In_ ULONG ulFlags);
3133
3134CMAPI
3136WINAPI
3138 _In_ DEVINSTID_A szDevInstName,
3139 _In_ ULONG ulConfig,
3140 _In_ ULONG ulValue,
3141 _In_ ULONG ulFlags,
3142 _In_opt_ HMACHINE hMachine);
3143
3144CMAPI
3146WINAPI
3148 _In_ DEVINSTID_W szDevInstName,
3149 _In_ ULONG ulConfig,
3150 _In_ ULONG ulValue,
3151 _In_ ULONG ulFlags,
3152 _In_opt_ HMACHINE hMachine);
3153
3154#ifdef UNICODE
3155#define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsW
3156#define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExW
3157#else
3158#define CM_Set_HW_Prof_Flags CM_Set_HW_Prof_FlagsA
3159#define CM_Set_HW_Prof_Flags_Ex CM_Set_HW_Prof_Flags_ExA
3160#endif /* UNICODE */
3161
3162CMAPI
3164WINAPI
3166 _In_ DEVINST dnDevInst,
3167 _In_ ULONG ulFlags);
3168
3169CMAPI
3171WINAPI
3173 _In_ DEVINST dnDevInst,
3174 _In_ ULONG ulFlags,
3175 _In_opt_ HMACHINE hMachine);
3176
3177#define CM_Setup_DevInst CM_Setup_DevNode
3178#define CM_Setup_DevInst_Ex CM_Setup_DevNode_Ex
3179
3180CMAPI
3182WINAPI
3184 _In_ DWORDLONG ullStartValue,
3185 _In_ DWORDLONG ullEndValue,
3186 _In_ RANGE_LIST rlh,
3187 _In_ ULONG ulFlags);
3188
3189CMAPI
3191WINAPI
3193 _In_ DEVINST dnPhantom,
3194 _In_ ULONG ulFlags);
3195
3196CMAPI
3198WINAPI
3200 _In_ DEVINST dnPhantom,
3201 _In_ ULONG ulFlags,
3202 _In_opt_ HMACHINE hMachine);
3203
3204#define CM_Uninstall_DevInst CM_Uninstall_DevNode
3205#define CM_Uninstall_DevInst_Ex CM_Uninstall_DevNode_Ex
3206
3207
3208#if (WINVER >= _WIN32_WINNT_WIN2K)
3209
3210#define CM_WaitNoPendingInstallEvents CMP_WaitNoPendingInstallEvents
3211
3212CMAPI
3213DWORD
3214WINAPI
3217
3218#endif /* (WINVER >= _WIN32_WINNT_WIN2K) */
3219
3220#ifdef __cplusplus
3221}
3222#endif
3223
3224#endif /* _CFGMGR32_H_ */
Type
Definition: Type.h:7
unsigned long long RETURN_TYPE
BOOL Error
Definition: chkdsk.c:66
unsigned int ULONG32
Definition: basetsd.h:125
#define __int64
Definition: basetyps.h:16
enum _PNP_VETO_TYPE * PPNP_VETO_TYPE
struct DevPrivate_Resource_s DEVPRIVATE_RESOURCE
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Problem(_In_ DEVINST dnDevInst, _In_ ULONG ulProblem, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7748
ULONG_PTR CONFLICT_LIST
Definition: cfgmgr32.h:111
CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsA(_In_ ULONG ulEnumIndex, _Out_writes_(*pulLength) PCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2076
struct PcCard_Resource_s PCCARD_RESOURCE
CMAPI CONFIGRET WINAPI CM_Modify_Res_Des_Ex(_Out_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6039
#define MAX_PROFILE_LEN
Definition: cfgmgr32.h:54
DEVNODEID_A DEVNODEID
Definition: cfgmgr32.h:86
CMAPI CONFIGRET WINAPI CM_Detect_Resource_Conflict_Ex(_In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _Out_ PBOOL pbConflictDetected, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1759
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof(_In_ ULONG ulHardwareProfile, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8032
CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExW(_In_ DEVINST dnDevInst, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7525
CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Data(_Out_writes_bytes_(DataLen) PVOID pData, _In_ ULONG DataLen, _In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6720
CMAPI CONFIGRET WINAPI CM_Get_Global_State_Ex(_Out_ PULONG pulState, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4691
CMAPI CONFIGRET WINAPI CM_Get_Class_Name_ExA(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) PCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2789
CMAPI CONFIGRET WINAPI CM_Register_Device_Driver(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7127
DWORD_PTR RES_DES
Definition: cfgmgr32.h:93
CMAPI CONFIGRET WINAPI CM_Add_Res_Des_Ex(_Out_opt_ PRES_DES prdResDes, _In_ LOG_CONF lcLogConf, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1190
CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_FlagsA(_In_ DEVINSTID_A szDevInstName, _In_ ULONG ulHardwareProfile, _Out_ PULONG pulValue, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4739
CMAPI CONFIGRET WINAPI CM_Request_Device_EjectW(_In_ DEVINST dnDevInst, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7458
RANGE_ELEMENT * PRANGE_ELEMENT
Definition: cfgmgr32.h:106
struct CS_Des_s * PCS_DES
CMAPI CONFIGRET WINAPI CM_Intersect_Range_List(_In_ RANGE_LIST rlhOld1, _In_ RANGE_LIST rlhOld2, _In_ RANGE_LIST rlhNew, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5685
CMAPI CONFIGRET WINAPI CM_Open_Class_KeyA(_In_opt_ LPGUID ClassGuid, _In_opt_ LPCSTR pszClassName, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkClass, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6208
struct HWProfileInfo_sA * PHWPROFILEINFO_A
CMAPI CONFIGRET WINAPI CM_Delete_Device_Interface_KeyA(_In_ LPCSTR pszDeviceInterface, _In_ ULONG ulFlags)
struct PcCard_Des_s PCCARD_DES
struct IO_Resource_s IO_RESOURCE
struct HWProfileInfo_sW HWPROFILEINFO_W
CMAPI CONFIGRET WINAPI CM_Free_Range_List(_In_ RANGE_LIST rlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2407
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_FlagsA(_In_ DEVINSTID_A szDevInstName, _In_ ULONG ulConfig, _In_ ULONG ulValue, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8096
struct IRQ_Des_32_s * PIRQ_DES_32
CMAPI CONFIGRET WINAPI CM_Delete_Class_Key_Ex(_In_ LPGUID ClassGuid, _In_ ULONG ulFlags, _In_opt_ HANDLE hMachine)
Definition: cfgmgr.c:1523
struct IRQ_Des_64_s * PIRQ_DES_64
CMAPI CONFIGRET WINAPI CM_Delete_DevNode_Key_Ex(_In_ DEVNODE dnDevNode, _In_ ULONG ulHardwareProfile, _In_ ULONG ulFlags, _In_opt_ HANDLE hMachine)
Definition: cfgmgr.c:1595
struct IRQ_Range_s * PIRQ_RANGE
CMAPI CONFIGRET WINAPI CM_Setup_DevNode(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8221
CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size_Ex(_Out_ PULONG pulSize, _In_ RES_DES rdResDes, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5451
struct IRQ_Resource_64_s * PIRQ_RESOURCE_64
CMAPI CONFIGRET WINAPI CM_Open_Class_Key_ExA(_In_opt_ LPGUID pszClassGuid, _In_opt_ LPCSTR pszClassName, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkClass, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6252
CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf_Ex(_Out_opt_ PLOG_CONF plcLogConf, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4590
CMAPI CONFIGRET WINAPI CM_Locate_DevNodeA(_Out_ PDEVINST pdnDevInst, _In_opt_ DEVINSTID_A pDeviceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5846
struct _CONFLICT_DETAILS_W CONFLICT_DETAILS_W
CMAPI CONFIGRET WINAPI CM_Get_Class_Registry_PropertyW(_In_ LPGUID ClassGuid, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExW(_In_opt_ PCWSTR pszFilter, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
struct IO_Resource_s * PIO_RESOURCE
struct IO_Des_s * PIO_DES
CMAPI CONFIGRET WINAPI CM_Uninstall_DevNode_Ex(_In_ DEVINST dnPhantom, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8335
struct CS_Des_s CS_DES
CMAPI CONFIGRET WINAPI CM_Free_Log_Conf(_In_ LOG_CONF lcLogConfToBeFreed, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2302
DEVNODE * PDEVINST
Definition: cfgmgr32.h:77
DWORD_PTR RANGE_LIST
Definition: cfgmgr32.h:102
CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Ex(_Out_opt_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Add_IDA(_In_ DEVINST dnDevInst, _In_ PSTR pszID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:976
struct Mem_Range_s MEM_RANGE
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExW(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3480
#define PCD_MAX_MEMORY
Definition: cfgmgr32.h:485
#define PCD_MAX_IO
Definition: cfgmgr32.h:486
CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsA(_In_ CONFLICT_LIST clConflictList, _In_ ULONG ulIndex, _Inout_ PCONFLICT_DETAILS_A pConflictDetails)
Definition: cfgmgr.c:5496
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_Property_ExA(_In_ DEVINST dnDevInst, _In_ PCSTR pszCustomPropertyName, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3183
struct DMA_Des_s * PDMA_DES
CMAPI CONFIGRET WINAPI CM_Get_Sibling_Ex(_Out_ PDEVINST pdnDevInst, _In_ DEVINST DevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5547
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExA(_In_ DEVINSTID_A szDevInstName, _In_ ULONG ulConfig, _In_ ULONG ulValue, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8134
struct Mem_Range_s * PMEM_RANGE
CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExW(_In_ DEVINST dnAncestor, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6650
CMAPI CONFIGRET WINAPI CM_Run_Detection_Ex(_In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7660
CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExW(_Out_ PDEVINST pdnDevInst, _In_opt_ DEVINSTID_W pDeviceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5912
struct BusNumber_Range_s BUSNUMBER_RANGE
CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key_Ex(_In_ DEVINST dnDevNode, _In_ REGSAM samDesired, _In_ ULONG ulHardwareProfile, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDevice, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6414
struct HWProfileInfo_sA HWPROFILEINFO_A
CMAPI CONFIGRET WINAPI CM_Open_DevNode_Key(_In_ DEVINST dnDevNode, _In_ REGSAM samDesired, _In_ ULONG ulHardwareProfile, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDevice, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6393
CMAPI CONFIGRET WINAPI CM_Is_Dock_Station_Present(_Out_ PBOOL pbPresent)
Definition: cfgmgr.c:5721
_Null_terminated_ CHAR * DEVINSTID_A
Definition: cfgmgr32.h:79
CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7050
CMAPI CONFIGRET WINAPI CM_Is_Dock_Station_Present_Ex(_Out_ PBOOL pbPresent, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5736
struct IO_Range_s * PIO_RANGE
CONFIGRET CM_Import_PowerScheme(_In_ LPCWSTR ImportFileNamePath, _Inout_ GUID **DestinationSchemeGuid, _Out_ PDWORD Error)
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Problem_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulProblem, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7765
CMAPI CONFIGRET WINAPI CM_Get_Global_State(_Out_ PULONG pulState, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4675
CONFIGRET CM_RestoreAll_DefaultPowerSchemes(_Out_ PDWORD Error)
DWORD_PTR LOG_CONF
Definition: cfgmgr32.h:90
struct DMA_Resource_s DMA_RESOURCE
CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Ex(_In_ LOG_CONF lcLogConfToBeFreed, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2318
CMAPI CONFIGRET WINAPI CM_Open_Class_Key_ExW(_In_opt_ LPGUID pszClassGuid, _In_opt_ LPCWSTR pszClassName, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkClass, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6289
#define CMAPI
Definition: cfgmgr32.h:41
CMAPI CONFIGRET WINAPI CM_Create_DevNodeA(_Out_ PDEVINST pdnDevInst, _In_ DEVINSTID_A pDeviceID, _In_ DEVINST dnParent, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1310
HWPROFILEINFO_A HWPROFILEINFO
Definition: cfgmgr32.h:569
CMAPI CONFIGRET WINAPI CM_Open_Device_Interface_KeyW(_In_ LPCWSTR pszDeviceInterface, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDeviceInterface, _In_ ULONG ulFlags)
_Null_terminated_ WCHAR * DEVINSTID_W
Definition: cfgmgr32.h:80
CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des_Ex(_Out_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ RESOURCEID ForResource, _Out_opt_ PRESOURCEID pResourceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5203
CMAPI WORD WINAPI CM_Get_Version(VOID)
Definition: cfgmgr.c:5629
CMAPI CONFIGRET WINAPI CM_Create_DevNodeW(_Out_ PDEVINST pdnDevInst, _In_ DEVINSTID_W pDeviceID, _In_ DEVINST dnParent, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1329
CMAPI CONFIGRET WINAPI CM_Add_ID_ExW(_In_ DEVINST dnDevInst, _In_ PWSTR pszID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1038
CMAPI CONFIGRET WINAPI CM_Get_Parent(_Out_ PDEVINST pdnDevInst, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5298
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Flags_ExW(_In_ DEVINSTID_W szDevInstName, _In_ ULONG ulConfig, _In_ ULONG ulValue, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8168
CMAPI CONFIGRET WINAPI CM_Get_Class_Key_Name_ExW(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) LPWSTR pszKeyName, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2715
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size(_Out_ PULONG pulLen, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4074
CMAPI CONFIGRET WINAPI CM_Remove_SubTree(_In_ DEVINST dnAncestor, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7403
CMAPI CONFIGRET WINAPI CM_Get_Next_Res_Des(_Out_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ RESOURCEID ForResource, _Out_opt_ PRESOURCEID pResourceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5183
CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_Count(_In_ CONFLICT_LIST clConflictList, _Out_ PULONG pulCount)
Definition: cfgmgr.c:5469
struct BusNumber_Des_s BUSNUMBER_DES
CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority(_In_ LOG_CONF lcLogConf, _Out_ PPRIORITY pPriority, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4992
CMAPI CONFIGRET WINAPI CM_Enumerate_Classes(_In_ ULONG ulClassIndex, _Out_ LPGUID ClassGuid, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1992
CMAPI CONFIGRET WINAPI CM_Get_Child_Ex(_Out_ PDEVINST pdnDevInst, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2547
struct MfCard_Resource_s MFCARD_RESOURCE
struct BusNumber_Des_s * PBUSNUMBER_DES
CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_InfoA(_In_ ULONG ulIndex, _Out_ PHWPROFILEINFO_A pHWProfileInfo, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4864
struct PcCard_Des_s * PPCCARD_DES
CMAPI CONFIGRET WINAPI CM_Get_Depth_Ex(_Out_ PULONG pulDepth, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3072
CMAPI CONFIGRET WINAPI CM_Set_Class_Registry_PropertyA(_In_ LPGUID ClassGuid, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7708
CMAPI CONFIGRET WINAPI CM_Disable_DevNode(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1781
CMAPI CONFIGRET WINAPI CM_Add_ID_ExA(_In_ DEVINST dnDevInst, _In_ PSTR pszID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1010
CMAPI CONFIGRET WINAPI CM_Create_DevNode_ExA(_Out_ PDEVINST pdnDevInst, _In_ DEVINSTID_A pDeviceID, _In_ DEVINST dnParent, _In_ ULONG ulFlags, _In_opt_ HANDLE hMachine)
Definition: cfgmgr.c:1348
struct Mem_Des_s MEM_DES
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExW(_In_ LPCWSTR pszDeviceInterface, _In_ LPGUID AliasInterfaceGuid, _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4207
ULONG RESOURCEID
Definition: cfgmgr32.h:96
CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Size_Ex(_Out_ PULONG pulSize, _In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6828
CMAPI CONFIGRET WINAPI CM_Create_DevNode_ExW(_Out_ PDEVINST pdnDevInst, _In_ DEVINSTID_W pDeviceID, _In_ DEVINST dnParent, _In_ ULONG ulFlags, _In_opt_ HANDLE hMachine)
Definition: cfgmgr.c:1378
struct Mem_Large_Resource_s * PMEM_LARGE_RESOURCE
CMAPI CONFIGRET WINAPI CM_Add_Res_Des(_Out_opt_ PRES_DES prdResDes, _In_ LOG_CONF lcLogConf, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1169
CMAPI CONFIGRET WINAPI CM_Free_Resource_Conflict_Handle(_In_ CONFLICT_LIST clConflictList)
Definition: cfgmgr.c:2504
CMAPI CONFIGRET WINAPI CM_Get_Class_NameW(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) PWCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2770
CMAPI CONFIGRET WINAPI CM_Register_Device_InterfaceW(_In_ DEVINST dnDevInst, _In_ LPGUID InterfaceClassGuid, _In_opt_ LPCWSTR pszReference, _Out_writes_(*pulLength) LPWSTR pszDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7226
PHWPROFILEINFO_A PHWPROFILEINFO
Definition: cfgmgr32.h:570
CMAPI CONFIGRET WINAPI CM_Unregister_Device_Interface_ExA(_In_ LPCSTR pszDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8429
CMAPI CONFIGRET WINAPI CM_Enable_DevNode_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1927
CMAPI CONFIGRET WINAPI CM_Move_DevNode(_In_ DEVINST dnFromDevInst, _In_ DEVINST dnToDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6061
CMAPI CONFIGRET WINAPI CM_Get_Class_Key_NameA(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) LPSTR pszKeyName, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2629
LOG_CONF * PLOG_CONF
Definition: cfgmgr32.h:91
CMAPI CONFIGRET WINAPI CM_Query_Remove_SubTree(_In_ DEVINST dnAncestor, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6897
IRQ_RESOURCE_32 IRQ_RESOURCE
Definition: cfgmgr32.h:392
HMACHINE * PHMACHINE
Definition: cfgmgr32.h:109
CMAPI CONFIGRET WINAPI CM_Free_Log_Conf_Handle(_In_ LOG_CONF lcLogConf)
Definition: cfgmgr.c:2385
struct CS_Resource_s * PCS_RESOURCE
CMAPI CONFIGRET WINAPI CM_Move_DevNode_Ex(_In_ DEVINST dnFromDevInst, _In_ DEVINST dnToDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6078
PIRQ_RESOURCE_32 PIRQ_RESOURCE
Definition: cfgmgr32.h:393
CMAPI CONFIGRET WINAPI CM_Request_Eject_PC_Ex(_In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7607
CMAPI CONFIGRET WINAPI CM_Disable_DevNode_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1797
CMAPI WORD WINAPI CM_Get_Version_Ex(_In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5642
struct BusNumber_Resource_s BUSNUMBER_RESOURCE
struct Mem_Des_s * PMEM_DES
CONFLICT_LIST * PCONFLICT_LIST
Definition: cfgmgr32.h:112
CONFIGRET CM_Set_ActiveScheme(_In_ CONST GUID *SchemeGuid, _Out_ PDWORD Error)
CMAPI CONFIGRET WINAPI CM_Delete_DevNode_Key(_In_ DEVNODE dnDevNode, _In_ ULONG ulHardwareProfile, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1577
CMAPI CONFIGRET WINAPI CM_Register_Device_Interface_ExA(_In_ DEVINST dnDevInst, _In_ LPGUID InterfaceClassGuid, _In_opt_ LPCSTR pszReference, _Out_writes_(*pulLength) LPSTR pszDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7249
CMAPI CONFIGRET WINAPI CM_Get_Class_Key_Name_ExA(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) LPSTR pszKeyName, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2667
DWORD DEVINST
Definition: cfgmgr32.h:76
CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW(_In_ ULONG ulEnumIndex, _Out_writes_(*pulLength) PWCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2165
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExW(_In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_W pDeviceID, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4378
CMAPI CONFIGRET WINAPI CM_Register_Device_Driver_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7143
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListW(_In_opt_ PCWSTR pszFilter, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
struct MfCard_Resource_s * PMFCARD_RESOURCE
CMAPI CONFIGRET WINAPI CM_Reenumerate_DevNode_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7065
struct DevPrivate_Range_s DEVPRIVATE_RANGE
CMAPI CONFIGRET WINAPI CM_Get_Log_Conf_Priority_Ex(_In_ LOG_CONF lcLogConf, _Out_ PPRIORITY pPriority, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5009
RES_DES * PRES_DES
Definition: cfgmgr32.h:94
CMAPI CONFIGRET WINAPI CM_Next_Range(_Inout_ PRANGE_ELEMENT preElement, _Out_ PDWORDLONG pullStart, _Out_ PDWORDLONG pullEnd, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6149
struct HWProfileInfo_sW * PHWPROFILEINFO_W
CMAPI CONFIGRET WINAPI CM_Get_Class_Name_ExW(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) PWCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2837
CMAPI CONFIGRET WINAPI CM_Set_Class_Registry_PropertyW(_In_ LPGUID ClassGuid, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7728
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExW(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7955
struct _CONFLICT_DETAILS_A CONFLICT_DETAILS_A
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyW(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7848
struct BusNumber_Resource_s * PBUSNUMBER_RESOURCE
CMAPI CONFIGRET WINAPI CM_Invert_Range_List(_In_ RANGE_LIST rlhOld, _In_ RANGE_LIST rlhNew, _In_ DWORDLONG ullMaxValue, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5703
CONST VOID * PCVOID
Definition: cfgmgr32.h:44
CMAPI CONFIGRET WINAPI CM_Register_Device_Interface_ExW(_In_ DEVINST dnDevInst, _In_ LPGUID InterfaceClassGuid, _In_opt_ LPCWSTR pszReference, _Out_writes_(*pulLength) LPWSTR pszDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7323
CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeA(_In_ DEVINST dnAncestor, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6562
CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Data_Ex(_Out_writes_bytes_(DataLen) PVOID pData, _In_ ULONG DataLen, _In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6740
CMAPI CONFIGRET WINAPI CM_Enumerate_Classes_Ex(_In_ ULONG ulClassIndex, _Out_ LPGUID ClassGuid, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2009
struct IRQ_Resource_32_s IRQ_RESOURCE_32
DWORD DEVNODE
Definition: cfgmgr32.h:76
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExW(_In_ DEVINST dnDevInst, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3738
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status_Ex(_Out_ PULONG pulStatus, _Out_ PULONG pulProblemNumber, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3592
struct DMA_Range_s DMA_RANGE
struct DMA_Range_s * PDMA_RANGE
struct IRQ_Range_s IRQ_RANGE
_Null_terminated_ WCHAR * DEVNODEID_W
Definition: cfgmgr32.h:80
struct IRQ_Des_32_s IRQ_DES_32
CMAPI CONFIGRET WINAPI CM_Disconnect_Machine(_In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:1863
struct IO_Des_s IO_DES
CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf(_Out_opt_ PLOG_CONF plcLogConf, _In_ LOG_CONF lcLogConf, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5078
CMAPI CONFIGRET WINAPI CM_Enumerate_Enumerators_ExA(_In_ ULONG ulEnumIndex, _Out_writes_(*pulLength) PCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:2114
CMAPI CONFIGRET WINAPI CM_Get_Device_IDW(_In_ DEVINST dnDevInst, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3677
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_Size_Ex(_Out_ PULONG pulLen, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4091
CMAPI CONFIGRET WINAPI CM_Open_Device_Interface_Key_ExW(_In_ LPCWSTR pszDeviceInterface, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ListA(_In_opt_ PCSTR pszFilter, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
CMAPI CONFIGRET WINAPI CM_Get_Sibling(_Out_ PDEVINST pdnDevInst, _In_ DEVINST DevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5530
CMAPI CONFIGRET WINAPI CM_First_Range(_In_ RANGE_LIST rlh, _Out_ PDWORDLONG pullStart, _Out_ PDWORDLONG pullEnd, _Out_ PRANGE_ELEMENT preElement, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2244
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_ExA(_In_ DEVINST dnDevInst, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3695
CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data(_In_ RES_DES rdResDes, _Out_writes_bytes_(BufferLen) PVOID Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5397
_Null_terminated_ CHAR * DEVNODEID_A
Definition: cfgmgr32.h:79
PCONFLICT_DETAILS_A PCONFLICT_DETAILS
Definition: cfgmgr32.h:137
CMAPI CONFIGRET WINAPI CM_Get_Class_NameA(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) PCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2751
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_PropertyA(_In_ DEVINST dnDevInst, _In_ PCSTR pszCustomPropertyName, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3137
PRIORITY * PPRIORITY
Definition: cfgmgr32.h:100
struct DevPrivate_Des_s * PDEVPRIVATE_DES
CMAPI CONFIGRET WINAPI CM_Request_Device_EjectA(_In_ DEVINST dnDevInst, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7438
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeA(_Out_ PULONG pulLen, _In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_A pDeviceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4440
CMAPI CONFIGRET WINAPI CM_Setup_DevNode_Ex(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8237
CMAPI CONFIGRET WINAPI CM_Get_Class_Key_NameW(_In_ LPGUID ClassGuid, _Out_writes_opt_(*pulLength) LPWSTR pszKeyName, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2648
CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf_Ex(_Out_ PLOG_CONF plcLogConf, _In_ DEVINST dnDevInst, _In_ PRIORITY Priority, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:884
ULONG PRIORITY
Definition: cfgmgr32.h:99
struct DevPrivate_Resource_s * PDEVPRIVATE_RESOURCE
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_SizeW(_Out_ PULONG pulLen, _In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_W pDeviceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4459
struct Mem_Large_Resource_s MEM_LARGE_RESOURCE
CMAPI CONFIGRET WINAPI CM_Locate_DevNodeW(_Out_ PDEVINST pdnDevInst, _In_opt_ DEVINSTID_W pDeviceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5863
struct DevPrivate_Des_s DEVPRIVATE_DES
CMAPI CONFIGRET WINAPI CM_Get_Child(_Out_ PDEVINST pdnDevInst, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2530
CMAPI CONFIGRET WINAPI CM_Get_Resource_Conflict_DetailsW(_In_ CONFLICT_LIST clConflictList, _In_ ULONG ulIndex, _Inout_ PCONFLICT_DETAILS_W pConflictDetails)
Definition: cfgmgr.c:5513
CMAPI CONFIGRET WINAPI CM_Get_Parent_Ex(_Out_ PDEVINST pdnDevInst, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5315
CONFIGRET CM_Apply_PowerScheme(VOID)
CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_InfoW(_In_ ULONG ulIndex, _Out_ PHWPROFILEINFO_W pHWProfileInfo, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4882
CMAPI CONFIGRET WINAPI CM_Delete_Device_Interface_Key_ExA(_In_ LPCSTR pszDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExW(_Out_ PULONG pulLen, _In_opt_ PCWSTR pszFilter, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4020
HANDLE HMACHINE
Definition: cfgmgr32.h:108
CMAPI CONFIGRET WINAPI CM_Test_Range_Available(_In_ DWORDLONG ullStartValue, _In_ DWORDLONG ullEndValue, _In_ RANGE_LIST rlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8302
CMAPI CONFIGRET WINAPI CM_Unregister_Device_Interface_ExW(_In_ LPCWSTR pszDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8461
CMAPI CONFIGRET WINAPI CM_Dup_Range_List(_In_ RANGE_LIST rlhOld, _In_ RANGE_LIST rlhNew, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1894
CMAPI CONFIGRET WINAPI CM_Connect_MachineW(_In_opt_ PCWSTR UNCServerName, _Out_ PHMACHINE phMachine)
Definition: cfgmgr.c:1241
CMAPI CONFIGRET WINAPI CM_Uninstall_DevNode(_In_ DEVINST dnPhantom, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8319
CMAPI CONFIGRET WINAPI CM_Get_Class_Registry_PropertyA(_In_ LPGUID ClassGuid, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
struct Mem_Resource_s * PMEM_RESOURCE
struct PcCard_Resource_s * PPCCARD_RESOURCE
ULONG REGDISPOSITION
Definition: cfgmgr32.h:152
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeW(_Out_ PULONG pulLen, _In_opt_ PCWSTR pszFilter, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3962
CMAPI CONFIGRET WINAPI CM_Open_Device_Interface_KeyA(_In_ LPCSTR pszDeviceInterface, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDeviceInterface, _In_ ULONG ulFlags)
CMAPI CONFIGRET WINAPI CM_Modify_Res_Des(_Out_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6017
struct DMA_Resource_s * PDMA_RESOURCE
CMAPI CONFIGRET WINAPI CM_Delete_Class_Key(_In_ LPGUID ClassGuid, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1507
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_Ex(_In_ ULONG ulHardwareProfile, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:8048
struct _CONFLICT_DETAILS_A * PCONFLICT_DETAILS_A
CMAPI CONFIGRET WINAPI CM_Set_HW_Prof_FlagsW(_In_ DEVINSTID_W szDevInstName, _In_ ULONG ulConfig, _In_ ULONG ulValue, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8115
CONFLICT_DETAILS_A CONFLICT_DETAILS
Definition: cfgmgr32.h:136
PIRQ_DES_32 PIRQ_DES
Definition: cfgmgr32.h:375
CONFIGRET CM_Delete_PowerScheme(_In_ CONST GUID *SchemeGuid, _Out_ PDWORD Error)
struct CS_Resource_s CS_RESOURCE
CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExW(_In_ DEVINSTID_W szDevInstName, _In_ ULONG ulHardwareProfile, _Out_ PULONG pulValue, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4811
CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_Info_ExA(_In_ ULONG ulIndex, _Out_ PHWPROFILEINFO_A pHWProfileInfo, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4900
CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Ex(_In_ RES_DES rdResDes, _Out_writes_bytes_(BufferLen) PVOID Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5415
DEVINSTID_A DEVINSTID
Definition: cfgmgr32.h:87
DWORD_PTR RANGE_ELEMENT
Definition: cfgmgr32.h:105
CMAPI CONFIGRET WINAPI CM_Delete_Device_Interface_Key_ExW(_In_ LPCWSTR pszDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_Flags_ExA(_In_ DEVINSTID_A szDevInstName, _In_ ULONG ulHardwareProfile, _Out_ PULONG pulValue, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4777
CMAPI CONFIGRET WINAPI CM_Open_Device_Interface_Key_ExA(_In_ LPCSTR pszDeviceInterface, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkDeviceInterface, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Get_Depth(_Out_ PULONG pulDepth, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3055
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_PropertyA(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7827
CMAPI CONFIGRET WINAPI CM_Get_Next_Log_Conf_Ex(_Out_opt_ PLOG_CONF plcLogConf, _In_ LOG_CONF lcLogConf, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5095
struct _CONFLICT_DETAILS_W * PCONFLICT_DETAILS_W
CMAPI CONFIGRET WINAPI CM_Query_Resource_Conflict_List(_Out_ PCONFLICT_LIST pclConflictList, _In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Add_IDW(_In_ DEVINST dnDevInst, _In_ PWSTR pszID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:993
CMAPI CONFIGRET WINAPI CM_Unregister_Device_InterfaceW(_In_ LPCWSTR pszDeviceInterface, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8412
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_Alias_ExA(_In_ LPCSTR pszDeviceInterface, _In_ LPGUID AliasInterfaceGuid, _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4186
CMAPI CONFIGRET WINAPI CM_Get_HW_Prof_FlagsW(_In_ DEVINSTID_W szDevInstName, _In_ ULONG ulHardwareProfile, _Out_ PULONG pulValue, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4758
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_ExA(_In_opt_ PCSTR pszFilter, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
CMAPI CONFIGRET WINAPI CM_Enumerate_EnumeratorsW(_In_ ULONG ulEnumIndex, _Out_writes_(*pulLength) PWCHAR Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2095
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListW(_In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_W pDeviceID, _Out_writes_(BufferLen) PWCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4292
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyA(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3356
struct BusNumber_Range_s * PBUSNUMBER_RANGE
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_SizeA(_Out_ PULONG pulLen, _In_opt_ PCSTR pszFilter, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3945
CMAPI CONFIGRET WINAPI CM_Delete_Range(_In_ DWORDLONG ullStartValue, _In_ DWORDLONG ullEndValue, _In_ RANGE_LIST rlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1714
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_ExA(_In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_A pDeviceID, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4313
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_PropertyW(_In_ DEVINST dnDevInst, _In_ PCWSTR pszCustomPropertyName, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3160
struct DMA_Des_s DMA_DES
IRQ_DES_32 IRQ_DES
Definition: cfgmgr32.h:374
struct IRQ_Resource_64_s IRQ_RESOURCE_64
struct Mem_Large_Range_s * PMEM_LARGE_RANGE
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_AliasW(_In_ LPCWSTR pszDeviceInterface, _In_ LPGUID AliasInterfaceGuid, _Out_writes_(*pulLength) LPWSTR pszAliasDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4164
CMAPI CONFIGRET WINAPI CM_Set_DevNode_Registry_Property_ExA(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _In_reads_bytes_opt_(ulLength) PCVOID Buffer, _In_ ULONG ulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7869
CONFIGRET CM_Restore_DefaultPowerScheme(_In_ CONST GUID *SchemeGuid, _Out_ PDWORD Error)
RANGE_LIST * PRANGE_LIST
Definition: cfgmgr32.h:103
CMAPI CONFIGRET WINAPI CM_Register_Device_InterfaceA(_In_ DEVINST dnDevInst, _In_ LPGUID InterfaceClassGuid, _In_opt_ LPCSTR pszReference, _Out_writes_(*pulLength) LPSTR pszDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:7203
CMAPI BOOL WINAPI CM_Is_Version_Available(_In_ WORD wVersion)
Definition: cfgmgr.c:5783
RETURN_TYPE CONFIGRET
Definition: cfgmgr32.h:74
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Status(_Out_ PULONG pulStatus, _Out_ PULONG pulProblemNumber, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3573
CMAPI CONFIGRET WINAPI CM_Add_Range(_In_ DWORDLONG ullStartValue, _In_ DWORDLONG ullEndValue, _In_ RANGE_LIST rlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1106
struct Mem_Large_Range_s MEM_LARGE_RANGE
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_ListA(_In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_A pDeviceID, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4271
CMAPI CONFIGRET WINAPI CM_Run_Detection(_In_ ULONG ulFlags)
Definition: cfgmgr.c:7646
struct Mem_Large_Des_s MEM_LARGE_DES
struct IO_Range_s IO_RANGE
CMAPI CONFIGRET WINAPI CM_Get_Device_ID_List_Size_ExA(_Out_ PULONG pulLen, _In_opt_ PCSTR pszFilter, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3979
struct IRQ_Des_64_s IRQ_DES_64
CMAPI CONFIGRET WINAPI CM_Get_Device_IDA(_In_ DEVINST dnDevInst, _Out_writes_(BufferLen) PCHAR Buffer, _In_ ULONG BufferLen, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3659
CMAPI CONFIGRET WINAPI CM_Find_Range(_Out_ PDWORDLONG pullStart, _In_ DWORDLONG ullStart, _In_ ULONG ulLength, _In_ DWORDLONG ullAlignment, _In_ DWORDLONG ullEnd, _In_ RANGE_LIST rlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:2223
CMAPI CONFIGRET WINAPI CM_Open_Class_KeyW(_In_opt_ LPGUID ClassGuid, _In_opt_ LPCWSTR pszClassName, _In_ REGSAM samDesired, _In_ REGDISPOSITION Disposition, _Out_ PHKEY phkClass, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6230
struct Mem_Large_Des_s * PMEM_LARGE_DES
CMAPI CONFIGRET WINAPI CM_Connect_MachineA(_In_opt_ PCSTR UNCServerName, _Out_ PHMACHINE phMachine)
Definition: cfgmgr.c:1212
struct MfCard_Des_s MFCARD_DES
CMAPI CONFIGRET WINAPI CM_Free_Res_Des(_Out_opt_ PRES_DES prdResDes, _In_ RES_DES rdResDes, _In_ ULONG ulFlags)
CMAPI CONFIGRET WINAPI CM_Get_Res_Des_Data_Size(_Out_ PULONG pulSize, _In_ RES_DES rdResDes, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5434
CMAPI CONFIGRET WINAPI CM_Query_Remove_SubTree_Ex(_In_ DEVINST dnAncestor, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6915
RESOURCEID * PRESOURCEID
Definition: cfgmgr32.h:97
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_Property_ExA(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3400
CONFIGRET CM_Write_UserPowerKey(_In_opt_ CONST GUID *SchemeGuid, _In_opt_ CONST GUID *SubGroupOfPowerSettingsGuid, _In_opt_ CONST GUID *PowerSettingGuid, _In_ ULONG AccessFlags, _In_ ULONG Type, _In_reads_bytes_(BufferSize) UCHAR *Buffer, _In_ DWORD BufferSize, _Out_ PDWORD Error)
CMAPI CONFIGRET WINAPI CM_Free_Res_Des_Handle(_In_ RES_DES rdResDes)
Definition: cfgmgr.c:2490
CMAPI CONFIGRET WINAPI CM_Locate_DevNode_ExA(_Out_ PDEVINST pdnDevInst, _In_opt_ DEVINSTID_A pDeviceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5880
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_AliasA(_In_ LPCSTR pszDeviceInterface, _In_ LPGUID AliasInterfaceGuid, _Out_writes_(*pulLength) LPSTR pszAliasDeviceInterface, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4142
CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTreeW(_In_ DEVINST dnAncestor, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6582
CMAPI CONFIGRET WINAPI CM_Request_Eject_PC(VOID)
Definition: cfgmgr.c:7594
CONFIGRET CM_Duplicate_PowerScheme(_In_ CONST GUID *SourceSchemeGuid, _Inout_ GUID **DestinationSchemeGuid, _Out_ PDWORD Error)
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExA(_Out_ PULONG pulLen, _In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_A pDeviceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4478
CMAPI CONFIGRET WINAPI CM_Get_Hardware_Profile_Info_ExW(_In_ ULONG ulIndex, _Out_ PHWPROFILEINFO_W pHWProfileInfo, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4942
CMAPI CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(_Out_ PULONG pulLen, _In_ LPGUID InterfaceClassGuid, _In_opt_ DEVINSTID_W pDeviceID, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:4517
struct MfCard_Des_s * PMFCARD_DES
CMAPI CONFIGRET WINAPI CM_Query_And_Remove_SubTree_ExA(_In_ DEVINST dnAncestor, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:6602
CMAPI CONFIGRET WINAPI CM_Add_Empty_Log_Conf(_Out_ PLOG_CONF plcLogConf, _In_ DEVINST dnDevInst, _In_ PRIORITY Priority, _In_ ULONG ulFlags)
Definition: cfgmgr.c:865
CMAPI CONFIGRET WINAPI CM_Remove_SubTree_Ex(_In_ DEVINST dnAncestor, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7421
DEVNODE * PDEVNODE
Definition: cfgmgr32.h:77
struct Mem_Resource_s MEM_RESOURCE
struct IRQ_Resource_32_s * PIRQ_RESOURCE_32
CMAPI DWORD WINAPI CMP_WaitNoPendingInstallEvents(_In_ DWORD dwTimeout)
Definition: cfgmgr.c:802
struct DevPrivate_Range_s * PDEVPRIVATE_RANGE
CMAPI BOOL WINAPI CM_Is_Version_Available_Ex(_In_ WORD wVersion, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:5798
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Registry_PropertyW(_In_ DEVINST dnDevInst, _In_ ULONG ulProperty, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags)
Definition: cfgmgr.c:3378
CMAPI CONFIGRET WINAPI CM_Merge_Range_List(_In_ RANGE_LIST rlhOld1, _In_ RANGE_LIST rlhOld2, _In_ RANGE_LIST rlhNew, _In_ ULONG ulFlags)
Definition: cfgmgr.c:5999
CMAPI CONFIGRET WINAPI CM_Delete_Device_Interface_KeyW(_In_ LPCWSTR pszDeviceInterface, _In_ ULONG ulFlags)
CMAPI CONFIGRET WINAPI CM_Get_DevNode_Custom_Property_ExW(_In_ DEVINST dnDevInst, _In_ PCWSTR pszCustomPropertyName, _Out_opt_ PULONG pulRegDataType, _Out_writes_bytes_opt_(*pulLength) PVOID Buffer, _Inout_ PULONG pulLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:3271
CMAPI CONFIGRET WINAPI CM_Unregister_Device_InterfaceA(_In_ LPCSTR pszDeviceInterface, _In_ ULONG ulFlags)
Definition: cfgmgr.c:8395
CMAPI CONFIGRET WINAPI CM_Enable_DevNode(_In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1911
CMAPI CONFIGRET WINAPI CM_Query_Arbitrator_Free_Size(_Out_ PULONG pulSize, _In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_ ULONG ulFlags)
Definition: cfgmgr.c:6809
CMAPI CONFIGRET WINAPI CM_Request_Device_Eject_ExA(_In_ DEVINST dnDevInst, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
Definition: cfgmgr.c:7478
CMAPI CONFIGRET WINAPI CM_Detect_Resource_Conflict(_In_ DEVINST dnDevInst, _In_ RESOURCEID ResourceID, _In_reads_bytes_(ResourceLen) PCVOID ResourceData, _In_ ULONG ResourceLen, _Out_ PBOOL pbConflictDetected, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1732
CMAPI CONFIGRET WINAPI CM_Create_Range_List(_Out_ PRANGE_LIST prlh, _In_ ULONG ulFlags)
Definition: cfgmgr.c:1463
CMAPI CONFIGRET WINAPI CM_Get_First_Log_Conf(_Out_opt_ PLOG_CONF plcLogConf, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags)
Definition: cfgmgr.c:4573
Definition: bufpool.h:45
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long long DWORDLONG
Definition: intsafe.h:93
unsigned __int64 ULONG64
Definition: imports.h:198
ULONGLONG * PDWORDLONG
Definition: ms-dtyp.idl:93
#define _Out_opt_
Definition: ms_sal.h:346
#define _In_reads_bytes_(size)
Definition: ms_sal.h:321
#define _Inout_
Definition: ms_sal.h:378
#define _Out_writes_bytes_(size)
Definition: ms_sal.h:350
#define _Out_writes_(size)
Definition: ms_sal.h:348
#define _Out_writes_opt_(size)
Definition: ms_sal.h:349
#define _Null_terminated_
Definition: ms_sal.h:640
#define _Return_type_success_(expr)
Definition: ms_sal.h:263
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_reads_bytes_opt_(size)
Definition: ms_sal.h:322
#define _In_opt_
Definition: ms_sal.h:309
#define _Out_writes_bytes_opt_(size)
Definition: ms_sal.h:351
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING _In_ ULONG _Out_opt_ PULONG Disposition
Definition: cmfuncs.h:56
#define CONST
Definition: pedump.c:81
DWORD * PDWORD
Definition: pedump.c:68
unsigned short USHORT
Definition: pedump.c:61
ULONG BUSD_Alloc_Base
Definition: cfgmgr32.h:531
DWORD BUSD_Type
Definition: cfgmgr32.h:529
DWORD BUSD_Flags
Definition: cfgmgr32.h:530
ULONG BUSD_Alloc_End
Definition: cfgmgr32.h:532
DWORD BUSD_Count
Definition: cfgmgr32.h:528
ULONG BUSR_nBusNumbers
Definition: cfgmgr32.h:538
BUSNUMBER_DES BusNumber_Header
Definition: cfgmgr32.h:545
BUSNUMBER_RANGE BusNumber_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:546
DWORD CSD_Flags
Definition: cfgmgr32.h:431
GUID CSD_ClassGuid
Definition: cfgmgr32.h:432
DWORD CSD_LegacyDataSize
Definition: cfgmgr32.h:430
BYTE CSD_Signature[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:433
DWORD CSD_LegacyDataOffset
Definition: cfgmgr32.h:429
DWORD CSD_SignatureLength
Definition: cfgmgr32.h:428
CS_DES CS_Header
Definition: cfgmgr32.h:437
DWORD DD_Count
Definition: cfgmgr32.h:302
DWORD DD_Flags
Definition: cfgmgr32.h:304
DWORD DD_Type
Definition: cfgmgr32.h:303
ULONG DD_Alloc_Chan
Definition: cfgmgr32.h:305
ULONG DR_Flags
Definition: cfgmgr32.h:311
ULONG DR_Max
Definition: cfgmgr32.h:310
ULONG DR_Min
Definition: cfgmgr32.h:309
DMA_RANGE DMA_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:318
DMA_DES DMA_Header
Definition: cfgmgr32.h:317
DEVPRIVATE_RANGE PRV_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:424
DEVPRIVATE_DES PRV_Header
Definition: cfgmgr32.h:423
ULONG HWPI_ulHWProfile
Definition: cfgmgr32.h:554
CHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]
Definition: cfgmgr32.h:555
DWORD HWPI_dwFlags
Definition: cfgmgr32.h:556
ULONG HWPI_ulHWProfile
Definition: cfgmgr32.h:560
DWORD HWPI_dwFlags
Definition: cfgmgr32.h:562
WCHAR HWPI_szFriendlyName[MAX_PROFILE_LEN]
Definition: cfgmgr32.h:561
DWORD IOD_DesFlags
Definition: cfgmgr32.h:272
DWORDLONG IOD_Alloc_End
Definition: cfgmgr32.h:271
DWORD IOD_Count
Definition: cfgmgr32.h:268
DWORDLONG IOD_Alloc_Base
Definition: cfgmgr32.h:270
DWORD IOD_Type
Definition: cfgmgr32.h:269
DWORD IOR_nPorts
Definition: cfgmgr32.h:260
DWORDLONG IOR_Max
Definition: cfgmgr32.h:262
DWORD IOR_RangeFlags
Definition: cfgmgr32.h:263
DWORDLONG IOR_Align
Definition: cfgmgr32.h:259
DWORDLONG IOR_Alias
Definition: cfgmgr32.h:264
DWORDLONG IOR_Min
Definition: cfgmgr32.h:261
IO_RANGE IO_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:277
IO_DES IO_Header
Definition: cfgmgr32.h:276
ULONG32 IRQD_Affinity
Definition: cfgmgr32.h:354
ULONG IRQD_Alloc_Num
Definition: cfgmgr32.h:353
DWORD IRQD_Flags
Definition: cfgmgr32.h:351
DWORD IRQD_Type
Definition: cfgmgr32.h:346
DWORD IRQD_Count
Definition: cfgmgr32.h:345
DWORD IRQD_Count
Definition: cfgmgr32.h:358
DWORD IRQD_Type
Definition: cfgmgr32.h:359
ULONG64 IRQD_Affinity
Definition: cfgmgr32.h:367
DWORD IRQD_Flags
Definition: cfgmgr32.h:364
ULONG IRQD_Alloc_Num
Definition: cfgmgr32.h:366
ULONG IRQR_Max
Definition: cfgmgr32.h:335
ULONG IRQR_Flags
Definition: cfgmgr32.h:340
ULONG IRQR_Min
Definition: cfgmgr32.h:334
IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:380
IRQ_DES_32 IRQ_Header
Definition: cfgmgr32.h:379
IRQ_DES_64 IRQ_Header
Definition: cfgmgr32.h:384
IRQ_RANGE IRQ_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:385
DWORDLONG MD_Alloc_End
Definition: cfgmgr32.h:202
DWORD MD_Flags
Definition: cfgmgr32.h:203
DWORD MD_Count
Definition: cfgmgr32.h:199
DWORD MD_Type
Definition: cfgmgr32.h:200
DWORD MD_Reserved
Definition: cfgmgr32.h:204
DWORDLONG MD_Alloc_Base
Definition: cfgmgr32.h:201
DWORD MLD_Type
Definition: cfgmgr32.h:225
DWORDLONG MLD_Alloc_End
Definition: cfgmgr32.h:227
DWORD MLD_Flags
Definition: cfgmgr32.h:228
DWORDLONG MLD_Alloc_Base
Definition: cfgmgr32.h:226
DWORD MLD_Count
Definition: cfgmgr32.h:224
DWORD MLD_Reserved
Definition: cfgmgr32.h:229
DWORDLONG MLR_Max
Definition: cfgmgr32.h:218
DWORD MLR_Reserved
Definition: cfgmgr32.h:220
ULONGLONG MLR_nBytes
Definition: cfgmgr32.h:216
DWORDLONG MLR_Min
Definition: cfgmgr32.h:217
DWORDLONG MLR_Align
Definition: cfgmgr32.h:215
MEM_LARGE_DES MEM_LARGE_Header
Definition: cfgmgr32.h:233
MEM_LARGE_RANGE MEM_LARGE_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:234
DWORDLONG MR_Align
Definition: cfgmgr32.h:190
ULONG MR_nBytes
Definition: cfgmgr32.h:191
DWORDLONG MR_Min
Definition: cfgmgr32.h:192
DWORD MR_Reserved
Definition: cfgmgr32.h:195
DWORD MR_Flags
Definition: cfgmgr32.h:194
DWORDLONG MR_Max
Definition: cfgmgr32.h:193
MEM_RANGE MEM_Data[ANYSIZE_ARRAY]
Definition: cfgmgr32.h:209
MEM_DES MEM_Header
Definition: cfgmgr32.h:208
DWORD PMF_Type
Definition: cfgmgr32.h:515
DWORD PMF_ConfigRegisterBase
Definition: cfgmgr32.h:520
DWORD PMF_Flags
Definition: cfgmgr32.h:516
BYTE PMF_ConfigOptions
Definition: cfgmgr32.h:517
DWORD PMF_Count
Definition: cfgmgr32.h:514
BYTE PMF_Reserved[2]
Definition: cfgmgr32.h:519
BYTE PMF_IoResourceIndex
Definition: cfgmgr32.h:518
MFCARD_DES MfCard_Header
Definition: cfgmgr32.h:524
BYTE PCD_Reserved[3]
Definition: cfgmgr32.h:495
DWORD PCD_MemoryCardBase1
Definition: cfgmgr32.h:496
DWORD PCD_Flags
Definition: cfgmgr32.h:493
BYTE PCD_ConfigIndex
Definition: cfgmgr32.h:494
DWORD PCD_MemoryCardBase[PCD_MAX_MEMORY]
Definition: cfgmgr32.h:499
DWORD PCD_Type
Definition: cfgmgr32.h:492
DWORD PCD_Count
Definition: cfgmgr32.h:491
BYTE PCD_IoFlags[PCD_MAX_IO]
Definition: cfgmgr32.h:501
WORD PCD_MemoryFlags[PCD_MAX_MEMORY]
Definition: cfgmgr32.h:500
DWORD PCD_MemoryCardBase2
Definition: cfgmgr32.h:497
PCCARD_DES PcCard_Header
Definition: cfgmgr32.h:506
CHAR CD_szDescription[MAX_PATH]
Definition: cfgmgr32.h:120
RES_DES CD_rdResDes
Definition: cfgmgr32.h:118
DEVINST CD_dnDevInst
Definition: cfgmgr32.h:117
RES_DES CD_rdResDes
Definition: cfgmgr32.h:127
DEVINST CD_dnDevInst
Definition: cfgmgr32.h:126
WCHAR CD_szDescription[MAX_PATH]
Definition: cfgmgr32.h:129
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1830
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
char * PSTR
Definition: typedefs.h:51
const uint16_t * PCWSTR
Definition: typedefs.h:57
uint32_t DWORD_PTR
Definition: typedefs.h:65
#define ANYSIZE_ARRAY
Definition: typedefs.h:46
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
char * PCHAR
Definition: typedefs.h:51
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:655
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6081
_Check_return_ _Out_ PULONG pulSize
Definition: winddi.h:2120
BOOL * PBOOL
Definition: windef.h:161
#define WINAPI
Definition: msvc.h:6
ACCESS_MASK REGSAM
Definition: winreg.h:69
_In_ CONST GUID * InterfaceClassGuid
Definition: iofuncs.h:1136
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
char CHAR
Definition: xmlstorage.h:175
unsigned char BYTE
Definition: xxhash.c:193