ReactOS 0.4.15-dev-7953-g1f49173
RtlUpcaseUnicodeStringToCountedOemString.c File Reference
#include "precomp.h"
Include dependency graph for RtlUpcaseUnicodeStringToCountedOemString.c:

Go to the source code of this file.

Functions

 START_TEST (RtlUpcaseUnicodeStringToCountedOemString)
 

Function Documentation

◆ START_TEST()

Definition at line 10 of file RtlUpcaseUnicodeStringToCountedOemString.c.

11{
14 CHAR OemNameBuffer[13];
16
17 RtlInitUnicodeString(&Name, L"\x00ae");
18 RtlFillMemory(OemNameBuffer, sizeof(OemNameBuffer), 0x55);
19 OemName.Buffer = OemNameBuffer;
20 OemName.Length = 0;
21 OemName.MaximumLength = sizeof(OemNameBuffer);
23 ok(Status == STATUS_SUCCESS, "Status = 0x%lx\n", Status);
24 ok(OemName.Length == 1, "OemName.Length = %u\n", OemName.Length);
25 ok(OemNameBuffer[0] == 'R', "OemNameBuffer[0] = 0x%x\n", OemNameBuffer[0]);
26 ok(OemNameBuffer[1] == 0x55, "OemNameBuffer[1] = 0x%x\n", OemNameBuffer[1]);
27 ok(OemNameBuffer[2] == 0x55, "OemNameBuffer[2] = 0x%x\n", OemNameBuffer[2]);
28}
struct NameRec_ * Name
Definition: cdprocs.h:460
#define ok(value,...)
Definition: atltest.h:57
LONG NTSTATUS
Definition: precomp.h:26
#define FALSE
Definition: types.h:117
IN PDCB IN POEM_STRING OemName
Definition: fatprocs.h:1304
Status
Definition: gdiplustypes.h:25
#define RtlFillMemory(Dest, Length, Fill)
Definition: winternl.h:599
NTSYSAPI NTSTATUS WINAPI RtlUpcaseUnicodeStringToCountedOemString(STRING *, const UNICODE_STRING *, BOOLEAN)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define L(x)
Definition: ntvdm.h:50
#define STATUS_SUCCESS
Definition: shellext.h:65
STRING OEM_STRING
Definition: umtypes.h:203
char CHAR
Definition: xmlstorage.h:175