Fix the MHz detection code.
[wine/multimedia.git] / dlls / ntdll / ntdll_misc.h
blob2d6a9cd8a6117f23eb50f7bb08afecb1d9196c9f
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 "winnt.h"
23 #include "winternl.h"
24 #include "module.h"
25 #include "thread.h"
26 #include "wine/server.h"
28 /* debug helper */
29 extern LPCSTR debugstr_us( const UNICODE_STRING *str );
30 extern void dump_ObjectAttributes (const OBJECT_ATTRIBUTES *ObjectAttributes);
32 extern void NTDLL_get_server_timeout( abs_time_t *when, const LARGE_INTEGER *timeout );
33 extern NTSTATUS NTDLL_wait_for_multiple_objects( UINT count, const HANDLE *handles, UINT flags,
34 const LARGE_INTEGER *timeout );
36 /* module handling */
37 extern WINE_MODREF *MODULE_AllocModRef( HMODULE hModule, LPCSTR filename );
39 extern FARPROC RELAY_GetProcAddress( HMODULE module, IMAGE_EXPORT_DIRECTORY *exports,
40 DWORD exp_size, FARPROC proc, const char *user );
41 extern FARPROC SNOOP_GetProcAddress( HMODULE hmod, IMAGE_EXPORT_DIRECTORY *exports, DWORD exp_size,
42 FARPROC origfun, DWORD ordinal );
43 extern void RELAY_SetupDLL( const char *module );
45 static inline HANDLE ntdll_get_process_heap(void)
47 return NtCurrentTeb()->Peb->ProcessHeap;
50 static inline RTL_USER_PROCESS_PARAMETERS* ntdll_get_process_pmts(void)
52 return NtCurrentTeb()->Peb->ProcessParameters;
55 /* Device IO */
56 /* ntdll/cdrom.c.c */
57 extern NTSTATUS CDROM_DeviceIoControl(DWORD clientID, HANDLE hDevice,
58 HANDLE hEvent, PIO_APC_ROUTINE UserApcRoutine,
59 PVOID UserApcContext,
60 PIO_STATUS_BLOCK piosb,
61 ULONG IoControlCode,
62 LPVOID lpInBuffer, DWORD nInBufferSize,
63 LPVOID lpOutBuffer, DWORD nOutBufferSize);
65 #endif