7 DEFAULT_DEBUG_CHANNEL(ntdll
)
9 /**************************************************************************
10 * NtOpenFile [NTDLL.127]
11 * FUNCTION: Opens a file
13 * FileHandle Variable that receives the file handle on return
14 * DesiredAccess Access desired by the caller to the file
15 * ObjectAttributes Structue describing the file to be opened
16 * IoStatusBlock Receives details about the result of the operation
17 * ShareAccess Type of shared access the caller requires
18 * OpenOptions Options for the file open
20 NTSTATUS WINAPI
NtOpenFile(
21 OUT PHANDLE FileHandle
,
22 ACCESS_MASK DesiredAccess
,
23 POBJECT_ATTRIBUTES ObjectAttributes
,
24 OUT PIO_STATUS_BLOCK IoStatusBlock
,
28 FIXME(ntdll
,"(%p,0x%08lx,%p(%s),%p,0x%08lx,0x%08lx) stub\n",
29 FileHandle
, DesiredAccess
, ObjectAttributes
,
30 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
,
31 IoStatusBlock
, ShareAccess
, OpenOptions
);
35 /**************************************************************************
36 * NtCreateFile [NTDLL.73]
37 * FUNCTION: Either causes a new file or directory to be created, or it opens
38 * an existing file, device, directory or volume, giving the caller a handle
39 * for the file object. This handle can be used by subsequent calls to
40 * manipulate data within the file or the file object's state of attributes.
42 * FileHandle Points to a variable which receives the file handle on return
43 * DesiredAccess Desired access to the file
44 * ObjectAttributes Structure describing the file
45 * IoStatusBlock Receives information about the operation on return
46 * AllocationSize Initial size of the file in bytes
47 * FileAttributes Attributes to create the file with
48 * ShareAccess Type of shared access the caller would like to the file
49 * CreateDisposition Specifies what to do, depending on whether the file already exists
50 * CreateOptions Options for creating a new file
51 * EaBuffer Undocumented
52 * EaLength Undocumented
54 NTSTATUS WINAPI
NtCreateFile(
55 OUT PHANDLE FileHandle
,
56 ACCESS_MASK DesiredAccess
,
57 POBJECT_ATTRIBUTES ObjectAttributes
,
58 OUT PIO_STATUS_BLOCK IoStatusBlock
,
59 PLARGE_INTEGER AllocateSize
,
62 ULONG CreateDisposition
,
67 FIXME(ntdll
,"(%p,0x%08lx,%p(%s),%p,%p,0x%08lx,0x%08lx,0x%08lx,0x%08lx,%p,0x%08lx) stub\n",
68 FileHandle
,DesiredAccess
,ObjectAttributes
,
69 ObjectAttributes
? debugstr_w(ObjectAttributes
->ObjectName
->Buffer
) : NULL
,
70 IoStatusBlock
,AllocateSize
,FileAttributes
,
71 ShareAccess
,CreateDisposition
,CreateOptions
,EaBuffer
,EaLength
);
75 /******************************************************************************
81 * HANDLE32 Event OPTIONAL
82 * PIO_APC_ROUTINE ApcRoutine OPTIONAL
83 * PVOID ApcContext OPTIONAL
84 * PIO_STATUS_BLOCK IoStatusBlock
87 * PLARGE_INTEGER ByteOffset OPTIONAL
90 NTSTATUS WINAPI
NtReadFile (
93 PIO_APC_ROUTINE ApcRoutine
,
95 PIO_STATUS_BLOCK IoStatusBlock
,
98 PLARGE_INTEGER ByteOffset
,
101 FIXME(ntdll
,"(0x%08x,0x%08x,%p,%p,%p,%p,0x%08lx,%p,%p),stub!\n",
102 FileHandle
,EventHandle
,ApcRoutine
,ApcContext
,IoStatusBlock
,Buffer
,Length
,ByteOffset
,Key
);
106 /**************************************************************************
107 * NtDeviceIoControlFile [NTDLL.94]
109 NTSTATUS WINAPI
NtDeviceIoControlFile(
110 IN HANDLE DeviceHandle
,
111 IN HANDLE Event OPTIONAL
,
112 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL
,
113 IN PVOID UserApcContext OPTIONAL
,
114 OUT PIO_STATUS_BLOCK IoStatusBlock
,
115 IN ULONG IoControlCode
,
116 IN PVOID InputBuffer
,
117 IN ULONG InputBufferSize
,
118 OUT PVOID OutputBuffer
,
119 IN ULONG OutputBufferSize
)
121 FIXME(ntdll
,"(0x%08x,0x%08x,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): empty stub\n",
122 DeviceHandle
, Event
, UserApcRoutine
, UserApcContext
,
123 IoStatusBlock
, IoControlCode
, InputBuffer
, InputBufferSize
, OutputBuffer
, OutputBufferSize
);
127 /******************************************************************************
128 * NtFsControlFile [NTDLL.108]
130 NTSTATUS WINAPI
NtFsControlFile(
131 IN HANDLE DeviceHandle
,
132 IN HANDLE Event OPTIONAL
,
133 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL
,
134 IN PVOID ApcContext OPTIONAL
,
135 OUT PIO_STATUS_BLOCK IoStatusBlock
,
136 IN ULONG IoControlCode
,
137 IN PVOID InputBuffer
,
138 IN ULONG InputBufferSize
,
139 OUT PVOID OutputBuffer
,
140 IN ULONG OutputBufferSize
)
142 FIXME(ntdll
,"(0x%08x,0x%08x,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): stub\n",
143 DeviceHandle
,Event
,ApcRoutine
,ApcContext
,IoStatusBlock
,IoControlCode
,
144 InputBuffer
,InputBufferSize
,OutputBuffer
,OutputBufferSize
);
148 /******************************************************************************
149 * NtSetVolumeInformationFile [NTDLL]
151 NTSTATUS WINAPI
NtSetVolumeInformationFile(
152 IN HANDLE FileHandle
,
153 IN PVOID VolumeInformationClass
,
154 PVOID VolumeInformation
,
157 FIXME(ntdll
,"(0x%08x,%p,%p,0x%08lx) stub\n",
158 FileHandle
,VolumeInformationClass
,VolumeInformation
,Length
);
162 /******************************************************************************
163 * NtQueryInformationFile [NTDLL]
165 NTSTATUS WINAPI
NtQueryInformationFile(
167 PIO_STATUS_BLOCK IoStatusBlock
,
168 PVOID FileInformation
,
170 FILE_INFORMATION_CLASS FileInformationClass
)
172 FIXME(ntdll
,"(0x%08x,%p,%p,0x%08lx,0x%08x),stub!\n",
173 FileHandle
,IoStatusBlock
,FileInformation
,Length
,FileInformationClass
);
177 /******************************************************************************
178 * NtSetInformationFile [NTDLL]
180 NTSTATUS WINAPI
NtSetInformationFile(
182 PIO_STATUS_BLOCK IoStatusBlock
,
183 PVOID FileInformation
,
185 FILE_INFORMATION_CLASS FileInformationClass
)
187 FIXME(ntdll
,"(0x%08x,%p,%p,0x%08lx,0x%08x)\n",
188 FileHandle
,IoStatusBlock
,FileInformation
,Length
,FileInformationClass
);
192 /******************************************************************************
193 * NtQueryDirectoryFile [NTDLL]
194 * ZwQueryDirectoryFile
196 NTSTATUS WINAPI
NtQueryDirectoryFile(
197 IN HANDLE FileHandle
,
198 IN HANDLE Event OPTIONAL
,
199 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL
,
200 IN PVOID ApcContext OPTIONAL
,
201 OUT PIO_STATUS_BLOCK IoStatusBlock
,
202 OUT PVOID FileInformation
,
204 IN FILE_INFORMATION_CLASS FileInformationClass
,
205 IN BOOLEAN ReturnSingleEntry
,
206 IN PUNICODE_STRING FileName OPTIONAL
,
207 IN BOOLEAN RestartScan
)
209 FIXME (ntdll
,"(0x%08x 0x%08x %p %p %p %p 0x%08lx 0x%08x 0x%08x %p 0x%08x\n",
210 FileHandle
, Event
, ApcRoutine
, ApcContext
, IoStatusBlock
, FileInformation
,
211 Length
, FileInformationClass
, ReturnSingleEntry
,
212 debugstr_w(FileName
->Buffer
),RestartScan
);