16 IN PVOID UnicodeStringOrUnicodeStringBuffer,
56 WCHAR StaticBuffer[10] = { 0 };
68 for (
n = 0;
n < 32; ++
n)
107 RtlInitBuffer(&
Buffer.ByteBuffer, (
PUCHAR)StaticBuffer,
sizeof(StaticBuffer));
110 Buffer.String.MaximumLength =
Buffer.ByteBuffer.StaticSize;
112 wcscpy(StaticBuffer,
L"123456789");
115 for (
n = 0;
n < 32; ++
n)
120 ok_wstr(StaticBuffer,
L"123456789");
127 ok_wstr(StaticBuffer,
L"123456789");
136 wcscpy(StaticBuffer,
L"123456789");
NTSTATUS NTAPI LengthFunctionOk(ULONG Unknown, PUNICODE_STRING String, PULONG Length)
NTSTATUS NTAPI LengthFunctionCopyLen(ULONG Unknown, PUNICODE_STRING String, PULONG Length)
NTSTATUS NTAPI LengthFunctionReturn1(ULONG Unknown, PUNICODE_STRING String, PULONG Length)
NTSTATUS NTAPI LengthFunctionFail(ULONG Unknown, PUNICODE_STRING String, PULONG Length)
NTSTATUS NTAPI RtlpApplyLengthFunction(IN ULONG Flags, IN ULONG Type, IN PVOID UnicodeStringOrUnicodeStringBuffer, IN NTSTATUS(NTAPI *LengthFunction)(ULONG, PUNICODE_STRING, PULONG))
#define ok_hex(expression, result)
#define ok_int(expression, result)
#define UNICODE_STRING_MAX_CHARS
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_INVALID_ACCOUNT_NAME
#define STATUS_NAME_TOO_LONG
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define STATUS_INVALID_PARAMETER
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_Must_inspect_result_ _In_ ULONG Flags