7#define ACPI_EVAL_INPUT_BUFFER_SIGNATURE 'BieA'
8#define ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_SIGNATURE 'IieA'
9#define ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_SIGNATURE 'SieA'
10#define ACPI_EVAL_INPUT_BUFFER_COMPLEX_SIGNATURE 'CieA'
11#define ACPI_EVAL_OUTPUT_BUFFER_SIGNATURE 'BoeA'
12#if (NTDDI_VERSION >= NTDDI_VISTA)
13#define ACPI_EVAL_INPUT_BUFFER_SIGNATURE_EX 'AieA'
14#define ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_SIGNATURE_EX 'DieA'
15#define ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_SIGNATURE_EX 'EieA'
16#define ACPI_EVAL_INPUT_BUFFER_COMPLEX_SIGNATURE_EX 'FieA'
17#define ACPI_ENUM_CHILDREN_OUTPUT_BUFFER_SIGNATURE 'GieA'
18#define ACPI_ENUM_CHILDREN_INPUT_BUFFER_SIGNATURE 'HieA'
21#define ACPI_METHOD_ARGUMENT_INTEGER 0x0
22#define ACPI_METHOD_ARGUMENT_STRING 0x1
23#define ACPI_METHOD_ARGUMENT_BUFFER 0x2
24#define ACPI_METHOD_ARGUMENT_PACKAGE 0x3
25#define ACPI_METHOD_ARGUMENT_PACKAGE_EX 0x4
27#define ACPI_ACQUIRE_GLOBAL_LOCK_SIGNATURE 'LgaA'
28#define ACPI_RELEASE_GLOBAL_LOCK_SIGNATURE 'LgrA'
30#define ACPI_OBJECT_HAS_CHILDREN 0x1
32#define ENUM_CHILDREN_IMMEDIATE_ONLY 0x1
33#define ENUM_CHILDREN_MULTILEVEL 0x2
34#define ENUM_CHILDREN_NAME_IS_FILTER 0x4
144#define ACPI_METHOD_ARGUMENT_LENGTH( DataLength ) \
145 (FIELD_OFFSET(ACPI_METHOD_ARGUMENT, Data) + max(sizeof(ULONG), DataLength))
147#define ACPI_METHOD_ARGUMENT_LENGTH_FROM_ARGUMENT( Argument ) \
148 (ACPI_METHOD_ARGUMENT_LENGTH(((PACPI_METHOD_ARGUMENT)Argument)->DataLength))
150#define ACPI_METHOD_NEXT_ARGUMENT( Argument ) \
151 (PACPI_METHOD_ARGUMENT) ( (PUCHAR) Argument + \
152 ACPI_METHOD_ARGUMENT_LENGTH_FROM_ARGUMENT( Argument ) )
155#define ACPI_METHOD_SET_ARGUMENT_INTEGER( MethodArgument, IntData ) \
156 { MethodArgument->Type = ACPI_METHOD_ARGUMENT_INTEGER; \
157 MethodArgument->DataLength = sizeof(ULONG); \
158 MethodArgument->Argument = IntData; }
160#define ACPI_METHOD_SET_ARGUMENT_STRING( Argument, StrData ) \
161 { Argument->Type = ACPI_METHOD_ARGUMENT_STRING; \
162 Argument->DataLength = (USHORT)strlen((PCHAR)StrData) + sizeof(UCHAR); \
163 RtlCopyMemory(&Argument->Data[0],(PUCHAR)StrData,Argument->DataLength); }
165#define ACPI_METHOD_SET_ARGUMENT_BUFFER( Argument, BuffData, BuffLength ) \
166 { Argument->Type = ACPI_METHOD_ARGUMENT_BUFFER; \
167 Argument->DataLength = BuffLength; \
168 RtlCopyMemory(&Argument->Data[0],(PUCHAR)BuffData,Argument->DataLength); }
170#define ACPI_ENUM_CHILD_LENGTH_FROM_CHILD( Child ) \
171 ( (2* sizeof (ULONG)) + Child->NameLength )
173#define ACPI_ENUM_CHILD_NEXT( Child ) \
174 (PACPI_ENUM_CHILD) ( (PUCHAR) Child + \
175 ACPI_ENUM_CHILD_LENGTH_FROM_CHILD( Child ) )
177#define IOCTL_ACPI_ASYNC_EVAL_METHOD CTL_CODE(FILE_DEVICE_ACPI, 0, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
178#define IOCTL_ACPI_EVAL_METHOD CTL_CODE(FILE_DEVICE_ACPI, 1, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
179#define IOCTL_ACPI_ACQUIRE_GLOBAL_LOCK CTL_CODE(FILE_DEVICE_ACPI, 4, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
180#define IOCTL_ACPI_RELEASE_GLOBAL_LOCK CTL_CODE(FILE_DEVICE_ACPI, 5, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
182#if (NTDDI_VERSION >= NTDDI_VISTA)
183#define IOCTL_ACPI_EVAL_METHOD_EX CTL_CODE(FILE_DEVICE_ACPI, 6, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
184#define IOCTL_ACPI_ASYNC_EVAL_METHOD_EX CTL_CODE(FILE_DEVICE_ACPI, 7, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
185#define IOCTL_ACPI_ENUM_CHILDREN CTL_CODE(FILE_DEVICE_ACPI, 8, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_EX * PACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_EX
struct _ACPI_EVAL_INPUT_BUFFER_COMPLEX * PACPI_EVAL_INPUT_BUFFER_COMPLEX
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING
struct _ACPI_MANIPULATE_GLOBAL_LOCK_BUFFER ACPI_MANIPULATE_GLOBAL_LOCK_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER ACPI_EVAL_INPUT_BUFFER
struct _ACPI_ENUM_CHILDREN_OUTPUT_BUFFER ACPI_ENUM_CHILDREN_OUTPUT_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER_COMPLEX_EX ACPI_EVAL_INPUT_BUFFER_COMPLEX_EX
ACPI_METHOD_ARGUMENT UNALIGNED * PACPI_METHOD_ARGUMENT
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_EX ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_EX
struct _ACPI_EVAL_OUTPUT_BUFFER ACPI_EVAL_OUTPUT_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_EX ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_EX
struct _ACPI_ENUM_CHILD ACPI_ENUM_CHILD
struct _ACPI_EVAL_INPUT_BUFFER_COMPLEX_EX * PACPI_EVAL_INPUT_BUFFER_COMPLEX_EX
struct _ACPI_EVAL_INPUT_BUFFER * PACPI_EVAL_INPUT_BUFFER
struct _ACPI_MANIPULATE_GLOBAL_LOCK_BUFFER * PACPI_MANIPULATE_GLOBAL_LOCK_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER_EX * PACPI_EVAL_INPUT_BUFFER_EX
struct _ACPI_EVAL_INPUT_BUFFER_EX ACPI_EVAL_INPUT_BUFFER_EX
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING * PACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING
struct _ACPI_ENUM_CHILDREN_INPUT_BUFFER ACPI_ENUM_CHILDREN_INPUT_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_EX * PACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_EX
struct _ACPI_METHOD_ARGUMENT ACPI_METHOD_ARGUMENT
ACPI_ENUM_CHILDREN_OUTPUT_BUFFER UNALIGNED * PACPI_ENUM_CHILDREN_OUTPUT_BUFFER
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER
ACPI_ENUM_CHILD UNALIGNED * PACPI_ENUM_CHILD
struct _ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER * PACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER
struct _ACPI_EVAL_INPUT_BUFFER_COMPLEX ACPI_EVAL_INPUT_BUFFER_COMPLEX
struct _ACPI_ENUM_CHILDREN_INPUT_BUFFER * PACPI_ENUM_CHILDREN_INPUT_BUFFER
ACPI_EVAL_OUTPUT_BUFFER UNALIGNED * PACPI_EVAL_OUTPUT_BUFFER
#define _Field_size_bytes_(size)
#define _Null_terminated_
_In_ ULONG _In_ ULONG _In_ ULONG Length
ACPI_ENUM_CHILD Children[ANYSIZE_ARRAY]
_Field_size_bytes_(NameLength) _Null_terminated_ CHAR Name[ANYSIZE_ARRAY]
_Field_size_bytes_(Length) ACPI_METHOD_ARGUMENT Argument[ANYSIZE_ARRAY]
_ANONYMOUS_UNION union _ACPI_METHOD_ARGUMENT::@1893 DUMMYUNIONNAME
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String