ReactOS  0.4.15-dev-3173-g40ee59d
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 }
char CHAR
Definition: xmlstorage.h:175
LONG NTSTATUS
Definition: precomp.h:26
STRING OEM_STRING
Definition: umtypes.h:203
#define FALSE
Definition: types.h:117
struct NameRec_ * Name
Definition: cdprocs.h:459
Status
Definition: gdiplustypes.h:24
#define RtlFillMemory(Dest, Length, Fill)
Definition: winternl.h:593
static const WCHAR L[]
Definition: oid.c:1250
NTSYSAPI NTSTATUS WINAPI RtlUpcaseUnicodeStringToCountedOemString(STRING *, const UNICODE_STRING *, BOOLEAN)
#define ok(value,...)
Definition: atltest.h:57
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define STATUS_SUCCESS
Definition: shellext.h:65
IN PDCB IN POEM_STRING OemName
Definition: fatprocs.h:1303