Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / include / rtutils.h
blob56c7fc1cb5479bde94d25fa0984677263e47ff5e
1 /*
2 * rtutils.h - Routing and Remote Access Services
4 * THIS SOFTWARE IS NOT COPYRIGHTED
6 * This source code is offered for use in the public domain. You may use,
7 * modify or distribute it freely.
9 * This code is distributed in the hope that it will be useful but
10 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
11 * DISCLAIMED. This includes but is not limited to warranties of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 #ifndef _RTUTILS_H
16 #define _RTUTILS_H
17 #if __GNUC__ >= 3
18 #pragma GCC system_header
19 #endif
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 /*--- Tracing Reference */
26 #if (_WIN32_WINNT >= 0x0500)
27 DWORD WINAPI TraceDeregisterA(DWORD);
28 DWORD WINAPI TraceDeregisterW(DWORD);
29 DWORD WINAPI TraceDeregisterExA(DWORD,DWORD);
30 DWORD WINAPI TraceDeregisterExW(DWORD,DWORD);
31 #define TRACE_NO_SYNCH 0x00000004
32 #define TraceDumpA(a,b,c,d,e,f) TraceDumpExA((a),0,(b),(c),(d),(e),(f))
33 #define TraceDumpW(a,b,c,d,e,f) TraceDumpExW((a),0,(b),(c),(d),(e),(f))
34 DWORD WINAPI TraceDumpExA(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCSTR);
35 DWORD WINAPI TraceDumpExW(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCWSTR);
36 DWORD WINAPI TracePrintfA(DWORD,LPCSTR,...);
37 DWORD WINAPI TracePrintfW(DWORD,LPCWSTR,...);
38 DWORD WINAPI TracePrintfExA(DWORD,DWORD,LPCSTR,...);
39 DWORD WINAPI TracePrintfExW(DWORD,DWORD,LPCWSTR,...);
40 #define TracePutsA(a,b) TracePutsExA((a),0,(b))
41 #define TracePutsW(a,b) TracePutsExW((a),0,(b))
42 DWORD WINAPI TracePutsExA(DWORD,DWORD,LPCSTR);
43 DWORD WINAPI TracePutsExW(DWORD,DWORD,LPCWSTR);
44 #define TraceRegisterA(a) TraceRegisterExA((a),0)
45 #define TraceRegisterW(a) TraceRegisterExW((a),0)
46 DWORD WINAPI TraceRegisterExA(LPCSTR,DWORD);
47 DWORD WINAPI TraceRegisterExW(LPCWSTR,DWORD);
48 #define TRACE_USE_FILE 0x00000001
49 #define TRACE_USE_CONSOLE 0x00000002
50 #define INVALID_TRACEID 0xFFFFFFFF
51 #define TraceVprintfA(a,b,c) TraceVprintfExA((a),0,(b),(c))
52 #define TraceVprintfW(a,b,c) TraceVprintfExW((a),0,(b),(c))
53 DWORD WINAPI TraceVprintfExA(DWORD,DWORD,LPCSTR,va_list);
54 DWORD WINAPI TraceVprintfExW(DWORD,DWORD,LPCWSTR,va_list);
55 #define TRACE_NO_STDINFO 0x00000001
56 #define TRACE_USE_MASK 0x00000002
57 #define TRACE_USE_MSEC 0x00000004
58 #ifdef UNICODE
59 #define TraceDeregister TraceDeregisterW
60 #define TraceDeregisterEx TraceDeregisterExW
61 #define TraceDump TraceDumpW
62 #define TraceDumpEx TraceDumpExW
63 #define TracePrintf TracePrintfW
64 #define TracePrintfEx TracePrintfExW
65 #define TracePuts TracePutsW
66 #define TracePutsEx TracePutsExW
67 #define TraceRegister TraceRegisterW
68 #define TraceRegisterEx TraceRegisterExW
69 #define TraceVprintf TraceVprintfW
70 #define TraceVprintfEx TraceVprintfExW
71 #else
72 #define TraceDeregister TraceDeregisterA
73 #define TraceDeregisterEx TraceDeregisterExA
74 #define TraceDump TraceDumpA
75 #define TraceDumpEx TraceDumpExA
76 #define TracePrintf TracePrintfA
77 #define TracePrintfEx TracePrintfExA
78 #define TracePuts TracePutsA
79 #define TracePutsEx TracePutsExA
80 #define TraceRegister TraceRegisterA
81 #define TraceRegisterEx TraceRegisterExA
82 #define TraceVprintf TraceVprintfA
83 #define TraceVprintfEx TraceVprintfExA
84 #endif
85 #endif /* (_WIN32_WINNT >= 0x0500) */
87 #ifdef __cplusplus
89 #endif
90 #endif