12#define ok_hex2(expression, result) \
14 int _value = (expression); \
15 winetest_ok(_value == (result), "Wrong value for '%s', expected: " #result " (0x%x), got: 0x%x\n", \
16 #expression, (int)(result), _value); \
20#define ok_ptr2(expression, result) \
22 void *_value = (expression); \
23 winetest_ok(_value == (result), "Wrong value for '%s', expected: " #result " (%p), got: %p\n", \
24 #expression, (void*)(result), _value); \
27#define ok_wstr2(x, y) \
28 winetest_ok(wcscmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
244 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
255 RtlFreeBuffer(&
Buffer.ByteBuffer);
259 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
272 RtlFreeBuffer(&
Buffer.ByteBuffer);
277 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
290 RtlFreeBuffer(&
Buffer.ByteBuffer);
295 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
308 RtlFreeBuffer(&
Buffer.ByteBuffer);
366 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
386 "Expected Buffer to point inside StaticBuffer\n");
399 RtlFreeBuffer(&
Buffer.ByteBuffer);
410 pRtlNtPathNameToDosPathName = (
void *)
GetProcAddress(ntdll,
"RtlNtPathNameToDosPathName");
412 if (!pRtlNtPathNameToDosPathName)
414 skip(
"RtlNtPathNameToDosPathName not found?\n");
PRTL_UNICODE_STRING_BUFFER PULONG PULONG Unknown4
static void test_table(struct test_entry *Entry)
#define ok_hex2(expression, result)
static void test_specialhandling()
PRTL_UNICODE_STRING_BUFFER PULONG Type
#define ok_ptr2(expression, result)
PRTL_UNICODE_STRING_BUFFER Path
#define ok_hex(expression, result)
#define ok_ntstatus(status, expected)
#define ok_int(expression, result)
#define ok_ptr(expression, result)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define GetProcAddress(x, y)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define memcpy(s1, s2, n)
#define RTL_UNCHANGED_DOS_PATH
#define RTL_CONVERTED_NT_PATH
#define RTL_CONVERTED_UNC_PATH
#define RTL_SKIP_BUFFER_COPY
#define RTL_UNCHANGED_UNK_PATH
NTSYSAPI NTSTATUS NTAPI RtlNtPathNameToDosPathName(_In_ ULONG Flags, _Inout_ PRTL_UNICODE_STRING_BUFFER Path, _Out_opt_ PULONG PathType, _Out_opt_ PULONG Unknown)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
void winetest_set_location(const char *file, int line)
void __winetest_cdecl winetest_ok(int condition, const char *msg,...)
base of all file and directory entries
EH_STD::basic_string< char, EH_STD::char_traits< char >, eh_allocator(char) > TestString
#define STATUS_INVALID_PARAMETER
_Must_inspect_result_ _In_ ULONG Flags