GetFileAttributesEx (Windows CE 5.0)

Send Feedback

This function obtains attribute information about a specified file or directory.

This function is similar to the GetFileAttributes function. GetFileAttributes returns a set of FAT-style attribute information. GetFileAttributesEx is designed to obtain other sets of file or directory attribute information. Currently, GetFileAttributeEx obtains a set of standard attributes that is a superset of the FAT-style attribute information.

BOOL GetFileAttributesEx(LPCTSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation );

Parameters

  • lpFileName
    [in] Pointer to a null-terminated string that specifies a file or directory.

    By default, this string is limited to MAX_PATH characters. The limit is related to how the GetFileAttributesEx function parses paths. Windows CE does not support the \\?\ override of the MAX_PATH limit and does not support wildcard characters.

  • fInfoLevelId
    [in] GET_FILEEX_INFO_LEVELS enumeration type that gives the set of attribute information to obtain.

  • lpFileInformation
    [out] Pointer to a WIN32_FILE_ATTRIBUTE_DATA structure that receives the attribute information.

Return Values

If the function succeeds, the return value is a nonzero value.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

GetFileAttributes | GET_FILEEX_INFO_LEVELS | SetFileAttributes | WIN32_FILE_ATTRIBUTE_DATA

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.