ReactOS  0.4.15-dev-341-g17c5fb8
nls.c File Reference
#include "basesrv.h"
#include <ndk/mmfuncs.h>
#include <debug.h>
Include dependency graph for nls.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI BaseSrvDelayLoadKernel32 (VOID)
 
VOID NTAPI BaseSrvNLSInit (IN PBASE_STATIC_SERVER_DATA StaticData)
 
NTSTATUS NTAPI BaseSrvNlsConnect (IN PCSR_PROCESS CsrProcess, IN OUT PVOID ConnectionInfo, IN OUT PULONG ConnectionInfoLength)
 
 CSR_API (BaseSrvNlsSetUserInfo)
 
 CSR_API (BaseSrvNlsSetMultipleUserInfo)
 
 CSR_API (BaseSrvNlsCreateSection)
 
 CSR_API (BaseSrvNlsUpdateCacheCount)
 
 CSR_API (BaseSrvNlsGetUserInfo)
 
NTSTATUS NTAPI BaseSrvNlsLogon (DWORD Unknown)
 
NTSTATUS NTAPI BaseSrvNlsUpdateRegistryCache (DWORD Unknown1, DWORD Unknown2)
 

Variables

RTL_CRITICAL_SECTION NlsCacheCriticalSection
 
PNLS_USER_INFO pNlsRegUserInfo
 
BOOLEAN BaseSrvKernel32DelayLoadComplete
 
HANDLE BaseSrvKernel32DllHandle
 
UNICODE_STRING BaseSrvKernel32DllPath
 
POPEN_DATA_FILE pOpenDataFile
 
PVOID pGetDefaultSortkeySize
 
PVOID pGetLinguistLangSize
 
PVOID pNlsConvertIntegerToString
 
PVOID pValidateLCType
 
PVALIDATE_LOCALE pValidateLocale
 
PGET_NLS_SECTION_NAME pGetNlsSectionName
 
PVOID pGetUserDefaultLangID
 
PGET_CP_FILE_NAME_FROM_REGISTRY pGetCPFileNameFromRegistry
 
PCREATE_NLS_SECURTY_DESCRIPTOR pCreateNlsSecurityDescriptor
 
BASESRV_KERNEL_IMPORTS BaseSrvKernel32Imports [10]
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 15 of file nls.c.

Function Documentation

◆ BaseSrvDelayLoadKernel32()

NTSTATUS NTAPI BaseSrvDelayLoadKernel32 ( VOID  )

Definition at line 56 of file nls.c.

57 {
59  ULONG i;
60  ANSI_STRING ProcedureName;
61 
62  /* Only do this once */
64 
65  /* Loop all imports */
66  for (i = 0; i < RTL_NUMBER_OF(BaseSrvKernel32Imports); i++)
67  {
68  /* Only look them up once */
69  if (!*BaseSrvKernel32Imports[i].FunctionPointer)
70  {
71  /* If we haven't loaded the DLL yet, do it now */
73  {
74  Status = LdrLoadDll(0,
75  0,
78  if (!NT_SUCCESS(Status))
79  {
80  DPRINT1("Failed to load %wZ\n", &BaseSrvKernel32DllPath);
81  return Status;
82  }
83  }
84 
85  /* Get the address of the routine being looked up*/
88  &ProcedureName,
89  0,
90  BaseSrvKernel32Imports[i].FunctionPointer);
91  DPRINT1("NLS: Found %Z at 0x%p\n",
92  &ProcedureName,
93  BaseSrvKernel32Imports[i].FunctionPointer);
94  if (!NT_SUCCESS(Status)) break;
95  }
96  }
97 
98  /* Did we find them all? */
100  {
101  /* Excellent */
103  return STATUS_SUCCESS;
104  }
105 
106  /* Nope, fail */
107  return Status;
108 }
#define TRUE
Definition: types.h:120
UNICODE_STRING BaseSrvKernel32DllPath
Definition: nls.c:25
LONG NTSTATUS
Definition: precomp.h:26
BASESRV_KERNEL_IMPORTS BaseSrvKernel32Imports[10]
Definition: nls.c:38
HANDLE BaseSrvKernel32DllHandle
Definition: nls.c:24
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
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
NTSTATUS NTAPI LdrGetProcedureAddress(IN PVOID BaseAddress, IN PANSI_STRING Name, IN ULONG Ordinal, OUT PVOID *ProcedureAddress)
Definition: ldrapi.c:823
BOOLEAN BaseSrvKernel32DelayLoadComplete
Definition: nls.c:23
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS NTAPI DECLSPEC_HOTPATCH LdrLoadDll(IN PWSTR SearchPath OPTIONAL, IN PULONG DllCharacteristics OPTIONAL, IN PUNICODE_STRING DllName, OUT PVOID *BaseAddress)
Definition: ldrapi.c:310
Status
Definition: gdiplustypes.h:24
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define DPRINT1
Definition: precomp.h:8
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
Definition: acpixf.h:1274
unsigned int ULONG
Definition: retypes.h:1
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by CSR_API().

◆ BaseSrvNlsConnect()

NTSTATUS NTAPI BaseSrvNlsConnect ( IN PCSR_PROCESS  CsrProcess,
IN OUT PVOID  ConnectionInfo,
IN OUT PULONG  ConnectionInfoLength 
)

Definition at line 135 of file nls.c.

138 {
139  /* Does nothing */
140  return STATUS_SUCCESS;
141 }
return STATUS_SUCCESS
Definition: btrfs.c:3014

Referenced by BaseClientConnectRoutine().

◆ BaseSrvNLSInit()

VOID NTAPI BaseSrvNLSInit ( IN PBASE_STATIC_SERVER_DATA  StaticData)

Definition at line 112 of file nls.c.

113 {
114  /* Initialize the lock */
116 
117  /* Initialize the data with all F's */
118  pNlsRegUserInfo = &StaticData->NlsUserInfo;
119  RtlFillMemory(&StaticData->NlsUserInfo, sizeof(StaticData->NlsUserInfo), 0xFF);
120 
121  /* Set empty LCID */
123 
124  /* Reset the cache update counter */
128 
129  /* Get the LCID */
131 }
ULONG ulCacheUpdateCount
Definition: base.h:69
NTSYSAPI NTSTATUS NTAPI RtlEnterCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSYSAPI NTSTATUS NTAPI RtlLeaveCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
RTL_CRITICAL_SECTION NlsCacheCriticalSection
Definition: nls.c:20
LCID UserLocaleId
Definition: base.h:67
NTSYSAPI NTSTATUS NTAPI RtlInitializeCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
#define RtlFillMemory(Dest, Length, Fill)
Definition: winternl.h:593
PNLS_USER_INFO pNlsRegUserInfo
Definition: nls.c:21
NTSTATUS NTAPI NtQueryDefaultLocale(IN BOOLEAN UserProfile, OUT PLCID DefaultLocaleId)
Definition: locale.c:162

Referenced by BaseInitializeStaticServerData().

◆ BaseSrvNlsLogon()

NTSTATUS NTAPI BaseSrvNlsLogon ( DWORD  Unknown)

Definition at line 369 of file nls.c.

370 {
371  DPRINT1("%s(%lu) not yet implemented\n", __FUNCTION__, Unknown);
372  return STATUS_NOT_IMPLEMENTED;
373 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define DPRINT1
Definition: precomp.h:8
#define __FUNCTION__
Definition: types.h:112

◆ BaseSrvNlsUpdateRegistryCache()

NTSTATUS NTAPI BaseSrvNlsUpdateRegistryCache ( DWORD  Unknown1,
DWORD  Unknown2 
)

Definition at line 377 of file nls.c.

379 {
380  DPRINT1("%s(%lu, %lu) not yet implemented\n", __FUNCTION__, Unknown1, Unknown2);
381  return STATUS_NOT_IMPLEMENTED;
382 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define DPRINT1
Definition: precomp.h:8
#define __FUNCTION__
Definition: types.h:112

◆ CSR_API() [1/5]

CSR_API ( BaseSrvNlsSetUserInfo  )

Definition at line 145 of file nls.c.

146 {
147  DPRINT1("%s not yet implemented\n", __FUNCTION__);
148  return STATUS_NOT_IMPLEMENTED;
149 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define DPRINT1
Definition: precomp.h:8
#define __FUNCTION__
Definition: types.h:112

◆ CSR_API() [2/5]

CSR_API ( BaseSrvNlsSetMultipleUserInfo  )

Definition at line 151 of file nls.c.

152 {
153  DPRINT1("%s not yet implemented\n", __FUNCTION__);
154  return STATUS_NOT_IMPLEMENTED;
155 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define DPRINT1
Definition: precomp.h:8
#define __FUNCTION__
Definition: types.h:112

◆ CSR_API() [3/5]

CSR_API ( BaseSrvNlsCreateSection  )

Definition at line 157 of file nls.c.

158 {
160  HANDLE SectionHandle, ProcessHandle, FileHandle;
161  ULONG LocaleId;
162  UNICODE_STRING NlsSectionName;
163  PWCHAR NlsFileName;
166  WCHAR FileNameBuffer[32];
167  WCHAR NlsSectionNameBuffer[32];
168  PBASE_NLS_CREATE_SECTION NlsMsg = &((PBASE_API_MESSAGE)ApiMessage)->Data.NlsCreateSection;
169 
170  /* Load kernel32 first and import the NLS routines */
172  if (!NT_SUCCESS(Status)) return Status;
173 
174  /* Assume failure */
175  NlsMsg->SectionHandle = NULL;
176 
177  /* Check and validate the locale ID, if one is present */
178  LocaleId = NlsMsg->LocaleId;
179  DPRINT1("NLS: Create Section with LCID: %lx for Type: %d\n", LocaleId, NlsMsg->Type);
180  if (LocaleId)
181  {
182  if (!pValidateLocale(LocaleId)) return STATUS_INVALID_PARAMETER;
183  }
184 
185  /* Check which NLS section is being created */
186  switch (NlsMsg->Type)
187  {
188  /* For each one, set the correct filename and object name */
189  case 1:
190  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionUnicode");
191  NlsFileName = L"unicode.nls";
192  break;
193  case 2:
194  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionLocale");
195  NlsFileName = L"locale.nls";
196  break;
197  case 3:
198  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionCType");
199  NlsFileName = L"ctype.nls";
200  break;
201  case 4:
202  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionSortkey");
203  NlsFileName = L"sortkey.nls";
204  break;
205  case 5:
206  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionSortTbls");
207  NlsFileName = L"sorttbls.nls";
208  break;
209  case 6:
210  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionCP437");
211  NlsFileName = L"c_437.nls";
212  break;
213  case 7:
214  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionCP1252");
215  NlsFileName = L"c_1252.nls";
216  break;
217  case 8:
218  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionLANG_EXCEPT");
219  NlsFileName = L"l_except.nls";
220  break;
221  case 9:
222  DPRINT1("This type not yet supported\n");
223  return STATUS_NOT_IMPLEMENTED;
224  case 10:
225  DPRINT1("This type not yet supported\n");
226  return STATUS_NOT_IMPLEMENTED;
227  case 11:
228  /* Get the filename for this locale */
232  {
233  DPRINT1("File name query failed\n");
235  }
236 
237  /* Get the name of the section for this locale */
238  DPRINT1("File name: %S\n", FileNameBuffer);
240  10,
241  0,
242  L"\\NLS\\NlsSectionCP",
243  NlsSectionNameBuffer,
244  RTL_NUMBER_OF(NlsSectionNameBuffer));
245  if (!NT_SUCCESS(Status))
246  {
247  DPRINT1("Section name query failed: %lx\n", Status);
248  return Status;
249  }
250 
251  /* Setup the name and go open it */
252  NlsFileName = FileNameBuffer;
253  DPRINT1("Section name: %S\n", NlsSectionNameBuffer);
254  RtlInitUnicodeString(&NlsSectionName, NlsSectionNameBuffer);
255  break;
256  case 12:
257  RtlInitUnicodeString(&NlsSectionName, L"\\NLS\\NlsSectionGeo");
258  NlsFileName = L"geo.nls";
259  break;
260  default:
261  DPRINT1("NLS: Invalid NLS type!\n");
263  }
264 
265  /* Open the specified NLS file */
266  Status = pOpenDataFile(&FileHandle, NlsFileName);
267  if (Status != STATUS_SUCCESS)
268  {
269  DPRINT1("NLS: Failed to open file: %lx\n", Status);
270  return Status;
271  }
272 
273  /* Create an SD for the section object */
275  sizeof(SecurityDescriptor),
276  0x80000000);
277  if (!NT_SUCCESS(Status))
278  {
279  DPRINT1("NLS: CreateNlsSecurityDescriptor FAILED!: %lx\n", Status);
281  return Status;
282  }
283 
284  /* Create the section object proper */
286  &NlsSectionName,
288  NULL,
290  Status = NtCreateSection(&SectionHandle,
293  0,
295  SEC_COMMIT,
296  FileHandle);
298  if (!NT_SUCCESS(Status))
299  {
300  DPRINT1("NLS: Failed to create section! %lx\n", Status);
301  return Status;
302  }
303 
304  /* Open a handle to the calling process */
309  &ApiMessage->Header.ClientId);
310  if (!NT_SUCCESS(Status))
311  {
312  DPRINT1("NLS: Failed to open process! %lx\n", Status);
313  NtClose(SectionHandle);
314  return Status;
315  }
316 
317  /* Duplicate the handle to the section object into it */
319  SectionHandle,
321  &NlsMsg->SectionHandle,
322  0,
323  0,
324  3);
326  return Status;
327 }
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
PGET_NLS_SECTION_NAME pGetNlsSectionName
Definition: nls.c:33
NTSTATUS NTAPI NtCreateSection(OUT PHANDLE SectionHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN PLARGE_INTEGER MaximumSize OPTIONAL, IN ULONG SectionPageProtection OPTIONAL, IN ULONG AllocationAttributes, IN HANDLE FileHandle OPTIONAL)
Definition: section.c:3373
#define OBJ_CASE_INSENSITIVE
Definition: winternl.h:228
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
PCREATE_NLS_SECURTY_DESCRIPTOR pCreateNlsSecurityDescriptor
Definition: nls.c:36
uint16_t * PWCHAR
Definition: typedefs.h:55
NTSTATUS NTAPI NtOpenProcess(OUT PHANDLE ProcessHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, IN PCLIENT_ID ClientId)
Definition: process.c:1440
#define OBJ_OPENIF
Definition: winternl.h:229
NTSTATUS NTAPI BaseSrvDelayLoadKernel32(VOID)
Definition: nls.c:56
HANDLE FileHandle
Definition: stats.c:38
#define SEC_COMMIT
Definition: mmtypes.h:99
#define PROCESS_DUP_HANDLE
struct _BASE_API_MESSAGE * PBASE_API_MESSAGE
smooth NULL
Definition: ftsmooth.c:416
#define NtCurrentProcess()
Definition: nt_native.h:1657
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
Definition: obhandle.c:3399
unsigned char UCHAR
Definition: xmlstorage.h:181
static const WCHAR L[]
Definition: oid.c:1250
#define SECTION_MAP_READ
Definition: compat.h:128
#define OBJ_PERMANENT
Definition: winternl.h:226
Status
Definition: gdiplustypes.h:24
#define RTL_NUMBER_OF(x)
Definition: RtlRegistry.c:12
#define PAGE_READONLY
Definition: compat.h:127
POPEN_DATA_FILE pOpenDataFile
Definition: nls.c:27
PVALIDATE_LOCALE pValidateLocale
Definition: nls.c:32
#define DPRINT1
Definition: precomp.h:8
WCHAR FileNameBuffer[_MAX_PATH]
Definition: framewnd.c:240
NTSTATUS NTAPI NtDuplicateObject(IN HANDLE SourceProcessHandle, IN HANDLE SourceHandle, IN HANDLE TargetProcessHandle OPTIONAL, OUT PHANDLE TargetHandle OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG HandleAttributes, IN ULONG Options)
Definition: obhandle.c:3407
PGET_CP_FILE_NAME_FROM_REGISTRY pGetCPFileNameFromRegistry
Definition: nls.c:35
unsigned int ULONG
Definition: retypes.h:1
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
return STATUS_SUCCESS
Definition: btrfs.c:3014

◆ CSR_API() [4/5]

CSR_API ( BaseSrvNlsUpdateCacheCount  )

Definition at line 329 of file nls.c.

330 {
331  DPRINT1("%s not yet implemented\n", __FUNCTION__);
332  return STATUS_NOT_IMPLEMENTED;
333 }
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define DPRINT1
Definition: precomp.h:8
#define __FUNCTION__
Definition: types.h:112

◆ CSR_API() [5/5]

CSR_API ( BaseSrvNlsGetUserInfo  )

Definition at line 335 of file nls.c.

336 {
338  PBASE_NLS_GET_USER_INFO NlsMsg = &((PBASE_API_MESSAGE)ApiMessage)->Data.NlsGetUserInfo;
339 
340  /* Make sure the buffer is valid and of the right size */
341  if ((CsrValidateMessageBuffer(ApiMessage, &NlsMsg->NlsUserInfo, NlsMsg->Size, TRUE)) &&
342  (NlsMsg->Size == sizeof(NLS_USER_INFO)))
343  {
344  /* Acquire the lock to prevent updates while we copy */
346  if (NT_SUCCESS(Status))
347  {
348  /* Do the copy now, then drop the lock */
349  RtlCopyMemory(NlsMsg->NlsUserInfo, pNlsRegUserInfo, NlsMsg->Size);
350  DPRINT1("NLS Data copy complete\n");
352  }
353  }
354  else
355  {
356  /* The data was invalid, bail out */
357  DPRINT1("NLS: Size of info is invalid: %lx vs %lx\n", NlsMsg->Size, sizeof(NLS_USER_INFO));
359  }
360 
361  /* All done */
362  return Status;
363 }
#define TRUE
Definition: types.h:120
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONG NTSTATUS
Definition: precomp.h:26
BOOLEAN NTAPI CsrValidateMessageBuffer(IN PCSR_API_MESSAGE ApiMessage, IN PVOID *Buffer, IN ULONG ElementCount, IN ULONG ElementSize)
Definition: api.c:1426
NTSYSAPI NTSTATUS NTAPI RtlEnterCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSYSAPI NTSTATUS NTAPI RtlLeaveCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
struct _BASE_API_MESSAGE * PBASE_API_MESSAGE
RTL_CRITICAL_SECTION NlsCacheCriticalSection
Definition: nls.c:20
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
PNLS_USER_INFO pNlsRegUserInfo
Definition: nls.c:21
Status
Definition: gdiplustypes.h:24
#define DPRINT1
Definition: precomp.h:8

Variable Documentation

◆ BaseSrvKernel32DelayLoadComplete

BOOLEAN BaseSrvKernel32DelayLoadComplete

Definition at line 23 of file nls.c.

Referenced by BaseSrvDelayLoadKernel32().

◆ BaseSrvKernel32DllHandle

HANDLE BaseSrvKernel32DllHandle

Definition at line 24 of file nls.c.

Referenced by BaseSrvDelayLoadKernel32().

◆ BaseSrvKernel32DllPath

UNICODE_STRING BaseSrvKernel32DllPath

Definition at line 25 of file nls.c.

Referenced by BaseInitializeStaticServerData(), and BaseSrvDelayLoadKernel32().

◆ BaseSrvKernel32Imports

BASESRV_KERNEL_IMPORTS BaseSrvKernel32Imports[10]
Initial value:
=
{
{ "OpenDataFile", (PVOID*) &pOpenDataFile },
{ "GetDefaultSortkeySize", (PVOID*) &pGetDefaultSortkeySize },
{ "GetLinguistLangSize", (PVOID*) &pGetLinguistLangSize },
{ "NlsConvertIntegerToString", (PVOID*) &pNlsConvertIntegerToString },
{ "ValidateLCType", (PVOID*) &pValidateLCType },
{ "ValidateLocale", (PVOID*) &pValidateLocale },
{ "GetNlsSectionName", (PVOID*) &pGetNlsSectionName },
{ "GetUserDefaultLangID", (PVOID*) &pGetUserDefaultLangID },
{ "GetCPFileNameFromRegistry", (PVOID*) &pGetCPFileNameFromRegistry },
{ "CreateNlsSecurityDescriptor", (PVOID*) &pCreateNlsSecurityDescriptor },
}
PGET_NLS_SECTION_NAME pGetNlsSectionName
Definition: nls.c:33
PCREATE_NLS_SECURTY_DESCRIPTOR pCreateNlsSecurityDescriptor
Definition: nls.c:36
PVOID pGetDefaultSortkeySize
Definition: nls.c:28
PVOID pGetLinguistLangSize
Definition: nls.c:29
PVOID pNlsConvertIntegerToString
Definition: nls.c:30
PVOID pValidateLCType
Definition: nls.c:31
PVOID pGetUserDefaultLangID
Definition: nls.c:34
POPEN_DATA_FILE pOpenDataFile
Definition: nls.c:27
PVALIDATE_LOCALE pValidateLocale
Definition: nls.c:32
PGET_CP_FILE_NAME_FROM_REGISTRY pGetCPFileNameFromRegistry
Definition: nls.c:35

Definition at line 38 of file nls.c.

Referenced by BaseSrvDelayLoadKernel32().

◆ NlsCacheCriticalSection

RTL_CRITICAL_SECTION NlsCacheCriticalSection

Definition at line 20 of file nls.c.

Referenced by BaseSrvNLSInit(), and CSR_API().

◆ pCreateNlsSecurityDescriptor

PCREATE_NLS_SECURTY_DESCRIPTOR pCreateNlsSecurityDescriptor

Definition at line 36 of file nls.c.

Referenced by CSR_API().

◆ pGetCPFileNameFromRegistry

PGET_CP_FILE_NAME_FROM_REGISTRY pGetCPFileNameFromRegistry

Definition at line 35 of file nls.c.

Referenced by CSR_API().

◆ pGetDefaultSortkeySize

PVOID pGetDefaultSortkeySize

Definition at line 28 of file nls.c.

◆ pGetLinguistLangSize

PVOID pGetLinguistLangSize

Definition at line 29 of file nls.c.

◆ pGetNlsSectionName

PGET_NLS_SECTION_NAME pGetNlsSectionName

Definition at line 33 of file nls.c.

Referenced by CSR_API().

◆ pGetUserDefaultLangID

PVOID pGetUserDefaultLangID

Definition at line 34 of file nls.c.

◆ pNlsConvertIntegerToString

PVOID pNlsConvertIntegerToString

Definition at line 30 of file nls.c.

◆ pNlsRegUserInfo

PNLS_USER_INFO pNlsRegUserInfo

Definition at line 21 of file nls.c.

Referenced by BaseSrvNLSInit(), and CSR_API().

◆ pOpenDataFile

POPEN_DATA_FILE pOpenDataFile

Definition at line 27 of file nls.c.

Referenced by CSR_API().

◆ pValidateLCType

PVOID pValidateLCType

Definition at line 31 of file nls.c.

◆ pValidateLocale

PVALIDATE_LOCALE pValidateLocale

Definition at line 32 of file nls.c.

Referenced by CSR_API().