[This function may be changed or removed from Windows without further notice.]
Retrieves basic attributes for the specified file object.
NTSTATUS NtQueryAttributesFile( _In_ POBJECT_ATTRIBUTES ObjectAttributes, _Out_ PFILE_BASIC_INFORMATION FileInformation );
A pointer to an OBJECT_ATTRIBUTES structure that supplies the attributes to be used for the file object.
A pointer to a FILE_BASIC_INFORMATION structure to receive the returned file attribute information.
Returns an NTSTATUS or error code.
The forms and significance of NTSTATUS error codes are listed in the Ntstatus.h header file available in the WDK, and are described in the WDK documentation.
This function has no associated header file. The associated import library, Ntdll.lib, is available in the WDK. You can also use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.