* ntdll.h (NtNotifyChangeDirectoryFile): Declare.
(NtQueryAttributesFile): Move to maintain alphabetical order of declarations. Add comment to note that timestamp information returned by NtQueryAttributesFile is unreliable. * path.h (etc::changed_h): Move here. (etc::fn): Change type to OBJECT_ATTRIBUTES. (etc::last_modified): Change type to LARGE_INTEGER. (etc::init): Take PUNICODE_STRING as second argument. * path.cc: Accomodate above changes. (etc::test_file_change): Use NT native functions. (etc::dir_changed): Ditto. * uinfo.cc (pwdgrp::load): Call etc::init with NT native path.
This commit is contained in:
@ -336,11 +336,12 @@ class etc
|
||||
{
|
||||
friend class dtable;
|
||||
static int curr_ix;
|
||||
static HANDLE changed_h;
|
||||
static bool change_possible[MAX_ETC_FILES + 1];
|
||||
static const char *fn[MAX_ETC_FILES + 1];
|
||||
static FILETIME last_modified[MAX_ETC_FILES + 1];
|
||||
static OBJECT_ATTRIBUTES fn[MAX_ETC_FILES + 1];
|
||||
static LARGE_INTEGER last_modified[MAX_ETC_FILES + 1];
|
||||
static bool dir_changed (int);
|
||||
static int init (int, const char *);
|
||||
static int init (int, PUNICODE_STRING);
|
||||
static bool file_changed (int);
|
||||
static bool test_file_change (int);
|
||||
friend class pwdgrp;
|
||||
|
Reference in New Issue
Block a user