AreFileApisANSI

The AreFileApisANSI function determines whether a set of Win32 file functions is using the ANSI or OEM character set code page. This function is useful for 8-bit console input and output operations.

BOOL AreFileApisANSI(VOID)
 

Parameters

This function has no parameters.

Return Values

If the set of Win32 file functions is using the ANSI code page, the return value is nonzero.

If the set of Win32 file functions is using the OEM code page, the return value is zero.

Remarks

The SetFileApisToOEM function causes a set of Win32 file functions to use the OEM code page. The SetFileApisToANSI function causes the same set of Win32 file functions to use the ANSI code page. Use the AreFileApisANSI function to determine which code page the set of file functions is currently using. For a discussion of these functions' usage, please refer to the Remarks sections of SetFileApisToOEM and SetFileApisToANSI.

The Win32 file functions whose code page is ascertained by AreFileApisANSI are those functions exported by KERNEL32.DLL which accept or return a file name.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.
  Import Library: Use kernel32.lib.

See Also

File I/O Overview, File Functions, SetFileApisToANSI, SetFileApisToOEM