Fixed a couple of bugs in RtlDosSearchPath_U and RtlGetFullPathName_U.
[wine/wine64.git] / dlls / ntdll / ntdll_misc.h
blobfc2611688292960202dd691ead0e44f584a39a72
1 /*
2 * Copyright 2000 Juergen Schmied
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_NTDLL_MISC_H
20 #define __WINE_NTDLL_MISC_H
22 #include <stdarg.h>
24 #include "windef.h"
25 #include "winbase.h"
26 #include "winnt.h"
27 #include "winreg.h"
28 #include "ntstatus.h"
29 #include "winternl.h"
30 #include "module.h"
31 #include "thread.h"
32 #include "wine/server.h"
34 /* debug helper */
35 extern LPCSTR debugstr_us( const UNICODE_STRING *str );
36 extern void dump_ObjectAttributes (const OBJECT_ATTRIBUTES *ObjectAttributes);
38 extern void NTDLL_get_server_timeout( abs_time_t *when, const LARGE_INTEGER *timeout );
39 extern NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UINT flags,
40 const LARGE_INTEGER *timeout );
42 /* module handling */
43 extern FARPROC RELAY_GetProcAddress( HMODULE module, IMAGE_EXPORT_DIRECTORY *exports,
44 DWORD exp_size, FARPROC proc, const WCHAR *user );
45 extern FARPROC SNOOP_GetProcAddress( HMODULE hmod, IMAGE_EXPORT_DIRECTORY *exports, DWORD exp_size,
46 FARPROC origfun, DWORD ordinal );
47 extern void RELAY_SetupDLL( HMODULE hmod );
48 extern void SNOOP_SetupDLL( HMODULE hmod );
50 static inline HANDLE ntdll_get_process_heap(void)
52 return NtCurrentTeb()->Peb->ProcessHeap;
54 #define GetProcessHeap() ntdll_get_process_heap()
56 static inline RTL_USER_PROCESS_PARAMETERS* ntdll_get_process_pmts(void)
58 return NtCurrentTeb()->Peb->ProcessParameters;
61 /* Device IO */
62 /* ntdll/cdrom.c.c */
63 extern NTSTATUS CDROM_DeviceIoControl(DWORD clientID, HANDLE hDevice,
64 HANDLE hEvent, PIO_APC_ROUTINE UserApcRoutine,
65 PVOID UserApcContext,
66 PIO_STATUS_BLOCK piosb,
67 ULONG IoControlCode,
68 LPVOID lpInBuffer, DWORD nInBufferSize,
69 LPVOID lpOutBuffer, DWORD nOutBufferSize);
71 #endif