Expand Minimize

FsRtlTestAnsiCharacter function

The FsRtlTestAnsiCharacter macro determines whether an ANSI or double-byte character set (DBCS) character meets the specified criteria.

Syntax


BOOLEAN FsRtlTestAnsiCharacter(
  PSCHAR *Character,
  BOOLEAN DefaultReturnValue,
  BOOLEAN WildCardsPermissible,
  UCHAR Flags
);

Parameters

Character

Pointer to the character to be tested.

DefaultReturnValue

Default value to be returned if the value of (SCHAR *)Character is < 0.

WildCardsPermissible

Set to TRUE if wildcard characters are to be considered legal, FALSE otherwise.

Flags

Combination of one or more of the flag values described following.

FlagMeaning

FSRTL_FAT_LEGAL

Valid characters for FAT file names are legal.

FSRTL_HPFS_LEGAL

Valid characters for 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

FsRtlTestAnsiCharacter returns TRUE if the character is legal according to the specified criteria, FALSE otherwise.

Remarks

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

Requirements

Header

Ntifs.h (include Ntifs.h)

IRQL

Any level

See also

FsRtlIsAnsiCharacterLegal
FsRtlIsAnsiCharacterLegalFat
FsRtlIsAnsiCharacterLegalHpfs
FsRtlIsAnsiCharacterLegalNtfs

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft