Export (0) Print
Expand All
Expand Minimize

FsRtlIsAnsiCharacterLegal function

The FsRtlIsAnsiCharacterLegal macro determines whether a character is a legal ANSI character.

Syntax


BOOLEAN FsRtlIsAnsiCharacterLegal(
  SCHAR Character,
  UCHAR Flags
);

Parameters

Character

The character to be tested.

Flags

Combination of one or more of the following flag values:

FlagMeaning

FSRTL_FAT_LEGAL

Valid characters for FAT file names are legal.

FSRTL_HPFS_LEGAL

Valid characters for high-performance file system (HPFS) file names are legal.

FSRTL_NTFS_LEGAL

Valid characters for NTFS file names are legal.

FSRTL_WILD_CHARACTER

Wildcard characters are legal.

FSRTL_OLE_LEGAL

Valid characters for NTFS stream names are legal.

FSRTL_NTFS_STREAM_LEGAL

FSRTL_NTFS_LEGAL | FSRTL_OLE_LEGAL

 

Return value

FsRtlIsAnsiCharacterLegal returns TRUE if the character is a legal ANSI character, FALSE otherwise.

Remarks

To be a legal ANSI character, a character must be present in the ANSI legal character array and must satisfy the input flag settings.

For information about other string-handling routines, see Strings.

Requirements

Header

Ntifs.h (include Ntifs.h)

IRQL

Any level

See also

FsRtlIsAnsiCharacterLegalFat
FsRtlIsAnsiCharacterLegalHpfs
FsRtlIsAnsiCharacterLegalNtfs

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft