10#define OBJ_WINSTA_DIRECTORY_NAME_INFO_SIZE (sizeof(UNICODE_STRING) + sizeof(L"\\Windows"))
11#define OBJ_DIRECTORY_TYPE_INFO_SIZE (sizeof(OBJECT_TYPE_INFORMATION) + sizeof(L"Directory"))
38 ok(
FALSE,
"Failed to open \\Windows directory (Status 0x%lx)\n",
Status);
43 Status = ZwQueryObject(WinStaDirHandle,
51 Status = ZwQueryObject(WinStaDirHandle,
59 ok(BasicInfo.
HandleCount != 0,
"\\Windows is in use but HandleCount is 0!\n");
60 ok(BasicInfo.
PointerCount != 0,
"\\Windows is in use but PointerCount is 0!\n");
#define OBJ_WINSTA_DIRECTORY_NAME_INFO_SIZE
static VOID ObjectBasicInformationTests(VOID)
#define OBJ_DIRECTORY_TYPE_INFO_SIZE
#define ok_eq_hex(value, expected)
#define ok_eq_ulong(value, expected)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI NTSTATUS NTAPI ZwOpenDirectoryObject(_Out_ PHANDLE FileHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
#define DIRECTORY_TRAVERSE
#define RTL_CONSTANT_STRING(s)
#define STATUS_INFO_LENGTH_MISMATCH