blob: 5c76d3a4a882dd6deab439e3d2b1337fff4f29fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*++
Copyright (c) 1991-92 Microsoft Corporation
Module Name:
DebugFmt.h
Abstract:
This header file declares equates for debug print format strings.
Author:
John Rogers (JohnRo) 11-Mar-1991
Environment:
ifdef'ed for NT, any ANSI C environment, or none of the above (which
implies nondebug). The interface is portable (Win/32).
Requires ANSI C extensions: slash-slash comments, long external names.
Revision History:
11-Mar-1991 JohnRo
Created NetDebug.h.
15-Apr-1992 JohnRo
Extracted format equates into DebugFmt.h.
--*/
#ifndef _DEBUGFMT_
#define _DEBUGFMT_
//
// printf-style format strings for some possibly nonportable stuff...
// These are passed to NetpDbgPrint(); use with other routines at your
// own risk.
//
// Note also that FORMAT_LPVOID is preferable to FORMAT_POINTER, as
// different kinds of pointers can be different sizes. FORMAT_POINTER
// will be deleted eventually.
//
//#define FORMAT_API_STATUS "%lu"
#define FORMAT_CHAR "%c"
//#define FORMAT_LPDEBUG_STRING "%s"
#define FORMAT_DWORD "%lu"
#define FORMAT_HEX_DWORD "0x%08lX"
#define FORMAT_HEX_WORD "0x%04X"
#define FORMAT_HEX_ULONG "0x%08lX"
#define FORMAT_LONG "%ld"
#define FORMAT_LPSTR "%s"
#define FORMAT_LPVOID "0x%08lX"
#define FORMAT_LPWSTR "%ws"
//#define FORMAT_POINTER "0x%08lX"
#define FORMAT_RPC_STATUS "0x%08lX"
#define FORMAT_ULONG "%lu"
#define FORMAT_WCHAR "%wc"
#define FORMAT_WORD_ONLY "%u"
#ifndef UNICODE
#define FORMAT_TCHAR FORMAT_CHAR
#define FORMAT_LPTSTR FORMAT_LPSTR
#else // UNICODE
#define FORMAT_TCHAR FORMAT_WCHAR
#define FORMAT_LPTSTR FORMAT_LPWSTR
#endif // UNICODE
#define FORMAT_NTSTATUS "0x%08lX"
#endif // ndef _DEBUGFMT_
|