diff options
author | midipix <writeonce@midipix.org> | 2016-12-25 02:21:53 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-25 02:21:53 -0500 |
commit | d8b4079264a3139f35d784b873d3490b40ffbeff (patch) | |
tree | 9d9f7e51f06167c950ca41e1c4626a37fd9b9061 /include | |
parent | 1d3e991a03ff78741f801f88a7bd4ec541bdc99e (diff) | |
download | ntapi-d8b4079264a3139f35d784b873d3490b40ffbeff.tar.bz2 ntapi-d8b4079264a3139f35d784b873d3490b40ffbeff.tar.xz |
{i}stat{fs} interfaces: remove fluff, require valid handle, simplify logic.
Diffstat (limited to 'include')
-rw-r--r-- | include/ntapi/nt_istat.h | 9 | ||||
-rw-r--r-- | include/ntapi/nt_stat.h | 9 | ||||
-rw-r--r-- | include/ntapi/nt_statfs.h | 9 |
3 files changed, 9 insertions, 18 deletions
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 |