2 * Object management functions
11 /* move to somewhere */
12 typedef void * POBJDIR_INFORMATION
;
15 * Generic object functions
18 /******************************************************************************
19 * NtQueryObject [NTDLL.161]
21 NTSTATUS WINAPI
NtQueryObject(
22 IN HANDLE ObjectHandle
,
23 IN OBJECT_INFORMATION_CLASS ObjectInformationClass
,
24 OUT PVOID ObjectInformation
,
26 OUT PULONG ResultLength
)
28 FIXME(ntdll
,"(0x%08x,0x%08x,%p,0x%08lx,%p): stub\n",
29 ObjectHandle
, ObjectInformationClass
, ObjectInformation
, Length
, ResultLength
);
33 /******************************************************************************
34 * NtQuerySecurityObject [NTDLL]
36 NTSTATUS WINAPI
NtQuerySecurityObject(DWORD x1
,DWORD x2
,DWORD x3
,DWORD x4
,DWORD x5
)
38 FIXME(ntdll
,"(0x%08lx,0x%08lx,0x%08lx,0x%08lx,0x%08lx) stub!\n",x1
,x2
,x3
,x4
,x5
);
41 /******************************************************************************
42 * NtDuplicateObject [NTDLL]
44 NTSTATUS WINAPI
NtDuplicateObject(
45 IN HANDLE SourceProcessHandle
,
46 IN PHANDLE SourceHandle
,
47 IN HANDLE TargetProcessHandle
,
48 OUT PHANDLE TargetHandle
,
49 IN ACCESS_MASK DesiredAccess
,
50 IN BOOLEAN InheritHandle
,
53 FIXME(ntdll
,"(0x%08x,%p,0x%08x,%p,0x%08lx,0x%08x,0x%08lx) stub!\n",
54 SourceProcessHandle
,SourceHandle
,TargetProcessHandle
,TargetHandle
,
55 DesiredAccess
,InheritHandle
,Options
);
60 /**************************************************************************
62 * FUNCTION: Closes a handle reference to an object
64 * Handle handle to close
66 NTSTATUS WINAPI
NtClose(
69 FIXME(ntdll
,"(0x%08x),stub!\n",Handle
);
73 /******************************************************************************
74 * NtWaitForSingleObject [NTDLL]
76 NTSTATUS WINAPI
NtWaitForSingleObject(
79 IN PLARGE_INTEGER Time
)
81 FIXME(ntdll
,"(%p,0x%08x,%p),stub!\n",Object
,Alertable
,Time
);
89 /**************************************************************************
90 * NtOpenDirectoryObject [NTDLL.124]
91 * FUNCTION: Opens a namespace directory object
93 * DirectoryHandle Variable which receives the directory handle
94 * DesiredAccess Desired access to the directory
95 * ObjectAttributes Structure describing the directory
98 NTSTATUS WINAPI
NtOpenDirectoryObject(
99 PHANDLE DirectoryHandle
,
100 ACCESS_MASK DesiredAccess
,
101 POBJECT_ATTRIBUTES ObjectAttributes
)
103 FIXME(ntdll
,"(%p,0x%08lx,%p(%s)): stub\n",
104 DirectoryHandle
, DesiredAccess
, ObjectAttributes
,
105 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
109 /******************************************************************************
110 * NtCreateDirectoryObject [NTDLL]
112 NTSTATUS WINAPI
NtCreateDirectoryObject(
113 PHANDLE DirectoryHandle
,
114 ACCESS_MASK DesiredAccess
,
115 POBJECT_ATTRIBUTES ObjectAttributes
)
117 FIXME(ntdll
,"(%p,0x%08lx,%p(%s)),stub!\n",
118 DirectoryHandle
,DesiredAccess
,ObjectAttributes
,
119 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
123 /******************************************************************************
124 * NtQueryDirectoryObject [NTDLL.149]
125 * FUNCTION: Reads information from a namespace directory
127 * DirObjInformation Buffer to hold the data read
128 * BufferLength Size of the buffer in bytes
129 * GetNextIndex If TRUE then set ObjectIndex to the index of the next object
130 * If FALSE then set ObjectIndex to the number of objects in the directory
131 * IgnoreInputIndex If TRUE start reading at index 0
132 * If FALSE start reading at the index specified by object index
133 * ObjectIndex Zero based index into the directory, interpretation depends on IgnoreInputIndex and GetNextIndex
134 * DataWritten Caller supplied storage for the number of bytes written (or NULL)
136 NTSTATUS WINAPI
NtQueryDirectoryObject(
137 IN HANDLE DirObjHandle
,
138 OUT POBJDIR_INFORMATION DirObjInformation
,
139 IN ULONG BufferLength
,
140 IN BOOLEAN GetNextIndex
,
141 IN BOOLEAN IgnoreInputIndex
,
142 IN OUT PULONG ObjectIndex
,
143 OUT PULONG DataWritten OPTIONAL
)
145 FIXME(ntdll
,"(0x%08x,%p,0x%08lx,0x%08x,0x%08x,%p,%p) stub\n",
146 DirObjHandle
, DirObjInformation
, BufferLength
, GetNextIndex
,
147 IgnoreInputIndex
, ObjectIndex
, DataWritten
);
148 return 0xc0000000; /* We don't have any. Whatever. (Yet.) */
155 /******************************************************************************
156 * NtOpenSymbolicLinkObject [NTDLL]
158 NTSTATUS WINAPI
NtOpenSymbolicLinkObject(
159 OUT PHANDLE LinkHandle
,
160 IN ACCESS_MASK DesiredAccess
,
161 IN POBJECT_ATTRIBUTES ObjectAttributes
)
163 FIXME(ntdll
,"(%p,0x%08lx,%p(%s)) stub\n",
164 LinkHandle
, DesiredAccess
, ObjectAttributes
,
165 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
);
169 /******************************************************************************
170 * NtCreateSymbolicLinkObject [NTDLL]
172 NTSTATUS WINAPI
NtCreateSymbolicLinkObject(
173 OUT PHANDLE SymbolicLinkHandle
,
174 IN ACCESS_MASK DesiredAccess
,
175 IN POBJECT_ATTRIBUTES ObjectAttributes
,
176 IN PUNICODE_STRING Name
)
178 FIXME(ntdll
,"(%p,0x%08lx,%p(%s), %p) stub\n",
179 SymbolicLinkHandle
, DesiredAccess
, ObjectAttributes
,
180 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
,
181 debugstr_w(Name
->Buffer
));
185 /******************************************************************************
186 * NtQuerySymbolicLinkObject [NTDLL]
188 NTSTATUS WINAPI
NtQuerySymbolicLinkObject(
189 IN HANDLE LinkHandle
,
190 IN OUT PUNICODE_STRING LinkTarget
,
191 OUT PULONG ReturnedLength OPTIONAL
)
193 FIXME(ntdll
,"(0x%08x,%p,%p) stub\n",
194 LinkHandle
, debugstr_w(LinkTarget
->Buffer
), ReturnedLength
);