2 * Object management functions
7 #include "debugtools.h"
11 DEFAULT_DEBUG_CHANNEL(ntdll
)
13 /* move to somewhere */
14 typedef void * POBJDIR_INFORMATION
;
17 * Generic object functions
20 /******************************************************************************
21 * NtQueryObject [NTDLL.161]
23 NTSTATUS WINAPI
NtQueryObject(
24 IN HANDLE ObjectHandle
,
25 IN OBJECT_INFORMATION_CLASS ObjectInformationClass
,
26 OUT PVOID ObjectInformation
,
28 OUT PULONG ResultLength
)
30 FIXME("(0x%08x,0x%08x,%p,0x%08lx,%p): stub\n",
31 ObjectHandle
, ObjectInformationClass
, ObjectInformation
, Length
, ResultLength
);
35 /******************************************************************************
36 * NtQuerySecurityObject [NTDLL]
38 NTSTATUS WINAPI
NtQuerySecurityObject(DWORD x1
,DWORD x2
,DWORD x3
,DWORD x4
,DWORD x5
)
40 FIXME("(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx) stub!\n",x1
,x2
,x3
,x4
,x5
);
43 /******************************************************************************
44 * NtDuplicateObject [NTDLL]
46 NTSTATUS WINAPI
NtDuplicateObject(
47 IN HANDLE SourceProcessHandle
,
48 IN PHANDLE SourceHandle
,
49 IN HANDLE TargetProcessHandle
,
50 OUT PHANDLE TargetHandle
,
51 IN ACCESS_MASK DesiredAccess
,
52 IN BOOLEAN InheritHandle
,
55 FIXME("(0x%08x,%p,0x%08x,%p,0x%08lx,0x%08x,0x%08lx) stub!\n",
56 SourceProcessHandle
,SourceHandle
,TargetProcessHandle
,TargetHandle
,
57 DesiredAccess
,InheritHandle
,Options
);
62 /**************************************************************************
64 * FUNCTION: Closes a handle reference to an object
66 * Handle handle to close
68 NTSTATUS WINAPI
NtClose(
71 FIXME("(0x%08x),stub!\n",Handle
);
75 /******************************************************************************
76 * NtWaitForSingleObject [NTDLL]
78 NTSTATUS WINAPI
NtWaitForSingleObject(
81 IN PLARGE_INTEGER Time
)
83 FIXME("(%p,0x%08x,%p),stub!\n",Object
,Alertable
,Time
);
91 /**************************************************************************
92 * NtOpenDirectoryObject [NTDLL.124]
93 * FUNCTION: Opens a namespace directory object
95 * DirectoryHandle Variable which receives the directory handle
96 * DesiredAccess Desired access to the directory
97 * ObjectAttributes Structure describing the directory
100 NTSTATUS WINAPI
NtOpenDirectoryObject(
101 PHANDLE DirectoryHandle
,
102 ACCESS_MASK DesiredAccess
,
103 POBJECT_ATTRIBUTES ObjectAttributes
)
105 FIXME("(%p,0x%08lx,%p(%s)): stub\n",
106 DirectoryHandle
, DesiredAccess
, ObjectAttributes
,
107 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
111 /******************************************************************************
112 * NtCreateDirectoryObject [NTDLL]
114 NTSTATUS WINAPI
NtCreateDirectoryObject(
115 PHANDLE DirectoryHandle
,
116 ACCESS_MASK DesiredAccess
,
117 POBJECT_ATTRIBUTES ObjectAttributes
)
119 FIXME("(%p,0x%08lx,%p(%s)),stub!\n",
120 DirectoryHandle
,DesiredAccess
,ObjectAttributes
,
121 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
125 /******************************************************************************
126 * NtQueryDirectoryObject [NTDLL.149]
127 * FUNCTION: Reads information from a namespace directory
129 * DirObjInformation Buffer to hold the data read
130 * BufferLength Size of the buffer in bytes
131 * GetNextIndex If TRUE then set ObjectIndex to the index of the next object
132 * If FALSE then set ObjectIndex to the number of objects in the directory
133 * IgnoreInputIndex If TRUE start reading at index 0
134 * If FALSE start reading at the index specified by object index
135 * ObjectIndex Zero based index into the directory, interpretation depends on IgnoreInputIndex and GetNextIndex
136 * DataWritten Caller supplied storage for the number of bytes written (or NULL)
138 NTSTATUS WINAPI
NtQueryDirectoryObject(
139 IN HANDLE DirObjHandle
,
140 OUT POBJDIR_INFORMATION DirObjInformation
,
141 IN ULONG BufferLength
,
142 IN BOOLEAN GetNextIndex
,
143 IN BOOLEAN IgnoreInputIndex
,
144 IN OUT PULONG ObjectIndex
,
145 OUT PULONG DataWritten OPTIONAL
)
147 FIXME("(0x%08x,%p,0x%08lx,0x%08x,0x%08x,%p,%p) stub\n",
148 DirObjHandle
, DirObjInformation
, BufferLength
, GetNextIndex
,
149 IgnoreInputIndex
, ObjectIndex
, DataWritten
);
150 return 0xc0000000; /* We don't have any. Whatever. (Yet.) */
157 /******************************************************************************
158 * NtOpenSymbolicLinkObject [NTDLL]
160 NTSTATUS WINAPI
NtOpenSymbolicLinkObject(
161 OUT PHANDLE LinkHandle
,
162 IN ACCESS_MASK DesiredAccess
,
163 IN POBJECT_ATTRIBUTES ObjectAttributes
)
165 FIXME("(%p,0x%08lx,%p(%s)) stub\n",
166 LinkHandle
, DesiredAccess
, ObjectAttributes
,
167 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
171 /******************************************************************************
172 * NtCreateSymbolicLinkObject [NTDLL]
174 NTSTATUS WINAPI
NtCreateSymbolicLinkObject(
175 OUT PHANDLE SymbolicLinkHandle
,
176 IN ACCESS_MASK DesiredAccess
,
177 IN POBJECT_ATTRIBUTES ObjectAttributes
,
178 IN PUNICODE_STRING Name
)
180 FIXME("(%p,0x%08lx,%p(%s), %p) stub\n",
181 SymbolicLinkHandle
, DesiredAccess
, ObjectAttributes
,
182 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
,
183 debugstr_w(Name
->Buffer
));
187 /******************************************************************************
188 * NtQuerySymbolicLinkObject [NTDLL]
190 NTSTATUS WINAPI
NtQuerySymbolicLinkObject(
191 IN HANDLE LinkHandle
,
192 IN OUT PUNICODE_STRING LinkTarget
,
193 OUT PULONG ReturnedLength OPTIONAL
)
195 FIXME("(0x%08x,%p,%p) stub\n",
196 LinkHandle
, debugstr_w(LinkTarget
->Buffer
), ReturnedLength
);