From d8b4079264a3139f35d784b873d3490b40ffbeff Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 25 Dec 2016 02:21:53 -0500 Subject: {i}stat{fs} interfaces: remove fluff, require valid handle, simplify logic. --- include/ntapi/nt_istat.h | 9 +++------ include/ntapi/nt_stat.h | 9 +++------ include/ntapi/nt_statfs.h | 9 +++------ 3 files changed, 9 insertions(+), 18 deletions(-) (limited to 'include') diff --git a/include/ntapi/nt_istat.h b/include/ntapi/nt_istat.h index 49e0f24..ade7404 100644 --- a/include/ntapi/nt_istat.h +++ b/include/ntapi/nt_istat.h @@ -11,7 +11,6 @@ #define NT_ISTAT_DEV_NAME_COPY 0x00000002 #define NT_ISTAT_DEV_NAME_ONLY 0x08000000 #define NT_ISTAT_MUP_DEVICE 0x20000000 -#define NT_ISTAT_NEW_HANDLE 0x80000000 typedef struct _nt_istat { void * hfile; @@ -28,13 +27,11 @@ typedef struct _nt_istat { typedef int32_t __stdcall ntapi_tt_istat( - __in void * hfile __optional, - __in void * hroot __optional, - __in nt_unicode_string * path __optional, - __out nt_istat * istat, + __in void * hfile, + __out nt_istat * info, + __in uint32_t infolen, __out uintptr_t * buffer, __in uint32_t buffer_size, - __in uint32_t open_options, __in uint32_t flags); diff --git a/include/ntapi/nt_stat.h b/include/ntapi/nt_stat.h index 755ea2a..8d0fd8b 100644 --- a/include/ntapi/nt_stat.h +++ b/include/ntapi/nt_stat.h @@ -10,7 +10,6 @@ #define NT_STAT_COMMON (0x00000001) #define NT_STAT_DEV_NAME_COPY (0x00000002) #define NT_STAT_MUP_DEVICE (0x20000000) -#define NT_STAT_NEW_HANDLE (0x80000000) typedef struct _nt_stat { nt_fbi fbi; @@ -35,13 +34,11 @@ typedef struct _nt_stat { typedef int32_t __stdcall ntapi_tt_stat( - __in void * hfile __optional, - __in void * hroot __optional, - __in nt_unicode_string * path __optional, - __out nt_stat * stat, + __in void * hfile, + __out nt_stat * info, + __in uint32_t infolen, __out uintptr_t * buffer, __in uint32_t buffer_size, - __in uint32_t open_options, __in uint32_t flags); #endif diff --git a/include/ntapi/nt_statfs.h b/include/ntapi/nt_statfs.h index 659bffe..8ea48ee 100644 --- a/include/ntapi/nt_statfs.h +++ b/include/ntapi/nt_statfs.h @@ -11,7 +11,6 @@ #define NT_STATFS_VOLUME_GUID (0x00000004) #define NT_STATFS_DOS_DRIVE_LETTER NT_STATFS_VOLUME_GUID #define NT_STATFS_MUP_DEVICE (0x20000000) -#define NT_STATFS_NEW_HANDLE (0x80000000) #define NT_FS_TYPE_FAT16_NAME_HASH (0x00000000) @@ -56,13 +55,11 @@ typedef struct _nt_statfs { typedef int32_t __stdcall ntapi_tt_statfs( - __in void * hfile __optional, - __in void * hroot __optional, - __in nt_unicode_string * path __optional, - __out nt_statfs * statfs, + __in void * hfile, + __out nt_statfs * info, + __in uint32_t infolen, __out uintptr_t * buffer, __in uint32_t buffer_size, __in uint32_t flags); - #endif -- cgit v1.2.3