예제 #1
0
 internal NtHandle(int process_id, ProcessHandleTableEntryInfo entry, bool allow_query)
 {
     ProcessId     = process_id;
     NtType        = NtType.GetTypeByIndex(entry.ObjectTypeIndex);
     Attributes    = entry.HandleAttributes;
     Handle        = entry.HandleValue.ToInt32();
     GrantedAccess = entry.GrantedAccess;
     _allow_query  = allow_query;
 }
 internal NtHandle(int process_id, ProcessHandleTableEntryInfo entry, bool allow_query, bool force_file_query, string process_image_path)
 {
     ProcessId         = process_id;
     NtType            = NtType.GetTypeByIndex(entry.ObjectTypeIndex);
     Attributes        = entry.HandleAttributes;
     Handle            = entry.HandleValue.ToInt32();
     GrantedAccess     = entry.GrantedAccess;
     _allow_query      = allow_query;
     _force_file_query = force_file_query;
     ProcessImagePath  = process_image_path;
 }