RtlIsNameLegalDOS8Dot3 function

[RtlIsNameLegalDOS8Dot3 is available for use in Windows XP. It may be altered or unavailable in subsequent versions. Applications that target a minimum of Windows Server 2003 and Windows XP with Service Pack 1 (SP1) and later should use the CheckNameLegalDOS8Dot3 function.]

Determines whether or not a specified name can be used to create a file on the FAT file system.

Syntax

BOOLEAN RtlIsNameLegalDOS8Dot3(
  IN PUNICODE_STRING                 Name,
  IN OUT POEM_STRING OemName         OPTIONAL,
  IN OUT PBOOLEAN NameContainsSpaces OPTIONAL
);

Parameters

Name

The file name, in 8.3 format.

OPTIONAL

TBD

OPTIONAL

TBD

Return Value

If the specified name forms a valid 8.3 FAT file system name in the current OEM code page, the function returns TRUE. Otherwise, the function returns FALSE.

Remarks

This function does not have an associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to NtDll.dll.

Requirements

   
Target Platform Windows
Header winternl.h
DLL NtDll.dll

See Also

CheckNameLegalDOS8Dot3