source: Daodan/MinGW/include/rtutils.h@ 1159

Last change on this file since 1159 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 3.1 KB
Line 
1/*
2 * rtutils.h - Routing and Remote Access Services
3 *
4 * THIS SOFTWARE IS NOT COPYRIGHTED
5 *
6 * This source code is offered for use in the public domain. You may use,
7 * modify or distribute it freely.
8 *
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.
13 *
14 */
15#ifndef _RTUTILS_H
16#define _RTUTILS_H
17#if __GNUC__ >= 3
18#pragma GCC system_header
19#endif
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*--- Tracing Reference */
26#if (_WIN32_WINNT >= 0x0500)
27DWORD WINAPI TraceDeregisterA(DWORD);
28DWORD WINAPI TraceDeregisterW(DWORD);
29DWORD WINAPI TraceDeregisterExA(DWORD,DWORD);
30DWORD 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))
34DWORD WINAPI TraceDumpExA(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCSTR);
35DWORD WINAPI TraceDumpExW(DWORD,DWORD,LPBYTE,DWORD,DWORD,BOOL,LPCWSTR);
36DWORD WINAPI TracePrintfA(DWORD,LPCSTR,...);
37DWORD WINAPI TracePrintfW(DWORD,LPCWSTR,...);
38DWORD WINAPI TracePrintfExA(DWORD,DWORD,LPCSTR,...);
39DWORD WINAPI TracePrintfExW(DWORD,DWORD,LPCWSTR,...);
40#define TracePutsA(a,b) TracePutsExA((a),0,(b))
41#define TracePutsW(a,b) TracePutsExW((a),0,(b))
42DWORD WINAPI TracePutsExA(DWORD,DWORD,LPCSTR);
43DWORD WINAPI TracePutsExW(DWORD,DWORD,LPCWSTR);
44#define TraceRegisterA(a) TraceRegisterExA((a),0)
45#define TraceRegisterW(a) TraceRegisterExW((a),0)
46DWORD WINAPI TraceRegisterExA(LPCSTR,DWORD);
47DWORD 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))
53DWORD WINAPI TraceVprintfExA(DWORD,DWORD,LPCSTR,va_list);
54DWORD 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) */
86
87#ifdef __cplusplus
88}
89#endif
90#endif
Note: See TracBrowser for help on using the repository browser.