ReactOS 0.4.15-dev-7788-g1ad9096
RtlxUnicodeStringToOemSize.c File Reference
#include "precomp.h"
Include dependency graph for RtlxUnicodeStringToOemSize.c:

Go to the source code of this file.

Functions

 START_TEST (RtlxUnicodeStringToOemSize)
 

Variables

struct {
   ULONG   AnsiCp
 
   ULONG   OemCp
 
   PCWSTR   Str
 
   ULONG   OemLength
 
TestData []
 

Function Documentation

◆ START_TEST()

START_TEST ( RtlxUnicodeStringToOemSize  )

Definition at line 22 of file RtlxUnicodeStringToOemSize.c.

23{
24 for (int i = 0; i < _countof(TestData); i++)
25 {
27 UNICODE_STRING Ustr;
30 ok(Length == TestData[i].OemLength, "Wrong OEM length for test %u, expected %u, got %u\n",
32 }
33}
void SetupLocale(ULONG AnsiCode, ULONG OemCode, ULONG Unicode)
Definition: IsTextUnicode.c:39
ULONG OemLength
#define ok(value,...)
Definition: atltest.h:57
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
unsigned int UINT
Definition: ndis.h:50
NTSYSAPI ULONG NTAPI RtlxUnicodeStringToOemSize(IN PCUNICODE_STRING UnicodeString)
Definition: unicode.c:1091
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define _countof(array)
Definition: sndvol32.h:68
uint32_t ULONG
Definition: typedefs.h:59

Variable Documentation

◆ AnsiCp

ULONG AnsiCp

Definition at line 12 of file RtlxUnicodeStringToOemSize.c.

Referenced by START_TEST().

◆ OemCp

ULONG OemCp

Definition at line 13 of file RtlxUnicodeStringToOemSize.c.

Referenced by START_TEST().

◆ OemLength

ULONG OemLength

Definition at line 15 of file RtlxUnicodeStringToOemSize.c.

Referenced by START_TEST().

◆ Str

PCWSTR Str

Definition at line 14 of file RtlxUnicodeStringToOemSize.c.

Referenced by START_TEST().

◆ 

const struct { ... } TestData[]
Initial value:
=
{
{ 1252, 932, L"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7", 7 },
{ 932, 1252, L"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7", 13 },
}
#define L(x)
Definition: ntvdm.h:50