ReactOS  0.4.14-dev-358-gbef841c
ntobjfs.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004 Martin Fuchs
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 
20  //
21  // Explorer clone
22  //
23  // ntobjfs.h
24  //
25  // Martin Fuchs, 31.01.2004
26  //
27 
28 
36 
38 };
39 
40 struct RtlAnsiString {
44 };
45 
50 };
51 
52 struct NtObjectInfo {
56 };
57 
58 struct OpenStruct {
65 };
66 
67 struct NtObject {
81 };
82 
83 
85 struct NtObjEntry : public Entry
86 {
88 
90 
91 protected:
93 
94  virtual bool get_path(PTSTR path, size_t path_count) const;
95  virtual BOOL launch_entry(HWND hwnd, UINT nCmdShow);
96 };
97 
98 
100 struct NtObjDirectory : public NtObjEntry, public Directory
101 {
104  {
105  _path = _tcsdup(root_path);
106  }
107 
110  {
111  _path = _tcsdup(path);
112  }
113 
115  {
116  free(_path);
117  _path = NULL;
118  }
119 
120  virtual void read_directory(int scan_flags=0);
121  virtual Entry* find_entry(const void*);
122 };
BYTE padding[16]
Definition: ntobjfs.h:55
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
WORD string_len
Definition: ntobjfs.h:41
RtlUnicodeString name
Definition: ntobjfs.h:53
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
DWORD handle_count
Definition: ntobjfs.h:70
NtObj file system directory-entry.
Definition: ntobjfs.h:100
DWORD _7
Definition: ntobjfs.h:75
#define free
Definition: debug_ros.c:5
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
virtual bool get_path(PTSTR path, size_t path_count) const
Definition: ntobjfs.cpp:386
#define _tcsdup
Definition: tchar.h:625
DWORD _5
Definition: ntobjfs.h:73
char * LPSTR
Definition: xmlstorage.h:182
FILETIME creation_time
Definition: ntobjfs.h:80
NtObjDirectory(LPCTSTR root_path)
Definition: ntobjfs.h:102
DWORD _3
Definition: ntobjfs.h:62
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
WORD alloc_len
Definition: ntobjfs.h:48
NtObjEntry(OBJECT_TYPE type)
Definition: ntobjfs.h:92
CHAR * PTSTR
Definition: xmlstorage.h:191
OBJECT_TYPE
Definition: ntobjenum.h:23
RtlUnicodeString type
Definition: ntobjfs.h:54
DWORD _0
Definition: ntobjfs.h:68
DWORD _8
Definition: ntobjfs.h:76
NtObjEntry(Entry *parent, OBJECT_TYPE type)
Definition: ntobjfs.h:87
LPWSTR string_ptr
Definition: ntobjfs.h:49
r parent
Definition: btrfs.c:2869
NtObjDirectory(Entry *parent, LPCTSTR path)
Definition: ntobjfs.h:108
DWORD _6
Definition: ntobjfs.h:74
virtual BOOL launch_entry(HWND hwnd, UINT nCmdShow)
Definition: ntobjfs.cpp:391
LPSTR string_ptr
Definition: ntobjfs.h:43
DWORD _4
Definition: ntobjfs.h:63
OBJECT_TYPE _type
Definition: ntobjfs.h:89
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
RtlUnicodeString * string
Definition: ntobjfs.h:61
WORD string_len
Definition: ntobjfs.h:47
unsigned char BYTE
Definition: mem.h:68
WORD alloc_len
Definition: ntobjfs.h:42
DWORD _1
Definition: ntobjfs.h:60
void * _path
Definition: entries.h:143
Definition: services.c:325
unsigned int UINT
Definition: ndis.h:50
virtual void read_directory(int scan_flags=0)
Definition: ntobjfs.cpp:173
DWORD _5
Definition: ntobjfs.h:64
DWORD size
Definition: ntobjfs.h:59
base for all directory entries
Definition: entries.h:138
DWORD _9
Definition: ntobjfs.h:77
DWORD _B
Definition: ntobjfs.h:79
WCHAR * LPWSTR
Definition: xmlstorage.h:184
virtual Entry * find_entry(const void *)
Definition: ntobjfs.cpp:359
DWORD _A
Definition: ntobjfs.h:78
base of all file and directory entries
Definition: entries.h:82
DWORD _1
Definition: ntobjfs.h:69
DWORD _4
Definition: ntobjfs.h:72
DWORD reference_count
Definition: ntobjfs.h:71
NtObj file system file-entry.
Definition: ntobjfs.h:85