51{
56
57
58
59
60
62 {
66 &WasEnabled);
68 }
69
70
71
72
74 ValueBuffer,
77
79 {
81 WasEnabled,
83 &WasEnabled);
84 }
85
86
87
88
90 "NtQuerySystemEnvironmentValue(%lu) failed : returned 0x%08lx, expected 0x%08lx\n",
91 TestNumber,
94
95 ok( ((
TestCase->MinimalExpectedReturnedLength <=
ReturnedLength) && (ReturnedLength <= TestCase->MaximalExpectedReturnedLength)),
96 "NtQuerySystemEnvironmentValue(%lu) failed : returned length %lu, expected between %lu and %lu\n",
97 TestNumber,
99 TestCase->MinimalExpectedReturnedLength,
100 TestCase->MaximalExpectedReturnedLength);
101}
#define MAX_BUFFER_LENGTH
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
#define NT_SUCCESS(StatCode)
#define SE_SYSTEM_ENVIRONMENT_PRIVILEGE
NTSYSAPI NTSTATUS NTAPI RtlAdjustPrivilege(_In_ ULONG Privilege, _In_ BOOLEAN NewValue, _In_ BOOLEAN ForThread, _Out_ PBOOLEAN OldValue)
NTSTATUS NTAPI NtQuerySystemEnvironmentValue(IN PUNICODE_STRING VariableName, OUT PWSTR ValueBuffer, IN ULONG ValueBufferLength, IN OUT PULONG ReturnLength OPTIONAL)