summaryrefslogtreecommitdiffstats
path: root/private/net/svcdlls/wkssvc/client/wsclient.h
blob: 68230af1b7f3708240ff93e9d10a2ec6a919be93 (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
77
78
79
80
81
/*++

Copyright (c) 1991 Microsoft Corporation

Module Name:

    wsclient.h

Abstract:

    Private header file for the client end of the Workstation service
    modules.

Author:

    Rita Wong (ritaw) 10-May-1991

Revision History:

--*/

#include <nt.h>                  // DbgPrint prototype
#include <ntrtl.h>                  // DbgPrint
#include <nturtl.h>                 // Needed by winbase.h

#include <windef.h>                 // DWORD
#include <winbase.h>                // LocalFree

#include <rpc.h>                    // DataTypes and runtime APIs
#include <rpcutil.h>                // GENERIC_ENUM_STRUCT

#include <lmcons.h>                 // NET_API_STATUS
#include <lmerr.h>                  // NetError codes
#include <lmremutl.h>               // SUPPORTS_RPC

#include <netlibnt.h>               // NetpNtStatusToApiStatus
#include <netdebug.h>               // NetpDbgPrint

#include <wkssvc.h>                 // generated by the MIDL complier
#include <wsnames.h>                // Service and interface names

//
// Debug trace level bits for turning on/off trace statements in the client
// end of the Workstation service
//

//
// Client stub trace output
//
#define WKSTA_DEBUG_CLIENTSTUBS    0x00000001

//
// Client RPC binding trace output
//
#define WKSTA_DEBUG_RPCBIND        0x00000002

//
// All debug flags on
//
#define WKSTA_DEBUG_ALL            0xFFFFFFFF


#if DBG

#define STATIC

extern DWORD WorkstationClientTrace;

#define DEBUG if (TRUE)

#define IF_DEBUG(Function) if (WorkstationClientTrace & WKSTA_DEBUG_ ## Function)

#else

#define STATIC static

#define DEBUG if (FALSE)

#define IF_DEBUG(Function) if (FALSE)

#endif // DBG