summaryrefslogtreecommitdiffstats
path: root/private/os2/client/apiworke.h
blob: f5c85d24d3ee2a40783ab0f08c23cb095950d5c8 (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
/********************************************************************/
/**                     Microsoft LAN Manager                      **/
/**               Copyright(c) Microsoft Corp., 1987-1992          **/
/********************************************************************/

/*++

Revision History:

    16-Jan-1992 JohnRo
        The redirector always expects UNICODE for the transact parm name.

--*/

#ifndef _APIWORKE_
#define _APIWORKE_

/*
 * apiworke.h - General defines used by the API worker.
 */

#define REM_MAX_PARMS           360
#define BUF_INC                 200


#define REM_NO_SRV_RESOURCE     55
#define REM_NO_ADMIN_RIGHTS     44

#define REM_API_TIMEOUT         5000            /* 5 second timeout */

/* The REM_API_TXT is the text string that is copied into the parmater
 * packet of the redirector transaction IOCTl following "\\SERVERNAME".
 * The additional \0 is so that the password field is terminated.
 * APIEXTR is the length of this field.
 */
#define REM_APITXT      L"\\PIPE\\LANMAN\0"
#define APIEXTR         (sizeof(REM_APITXT))

/* The pointer identifiers in the descriptor stings are all lower case so
 * thet a quick check can be made for a pointer type. The IS_POINTER macro
 * just checks for > 'Z' for maximum speed.
 */

#define IS_POINTER(x)           ((x) > 'Z')


#define RANGE_F(x,y,z)          (((unsigned long)x >= (unsigned long)y) && \
                                 ((unsigned long)x < ((unsigned long)y + z)))

#endif // ndef _APIWORKE_