OSDN Git Service

* NEWS: Add and adjust release notes for 4.0.
[mingw/mingw-org-wsl.git] / include / lmcons.h
1 /**
2  * @file lmcons.h
3  * Copyright 2012, 2013 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _LMCONS_H
25 #define _LMCONS_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #define MESSAGE_FILENAME TEXT("NETMSG")
30 #define OS2MSG_FILENAME TEXT("BASE")
31 #define HELP_MSG_FILENAME TEXT("NETH")
32 #define NET_API_FUNCTION __stdcall
33 #define NET_API_STATUS DWORD
34 #define API_RET_TYPE NET_API_STATUS
35 #define MIN_LANMAN_MESSAGE_ID NERR_BASE
36 #define MAX_LANMAN_MESSAGE_ID 5799
37 #ifndef CNLEN /* also in nddeapi.h */
38 #define CNLEN 15
39 #define UNCLEN (CNLEN + 2)
40 #endif
41 #define DNLEN 15
42 #define LM20_CNLEN 15
43 #define LM20_DNLEN 15
44 #define LM20_SNLEN 15
45 #define LM20_STXTLEN 63
46 #define LM20_UNCLEN (LM20_CNLEN+2)
47 #define LM20_NNLEN 12
48 #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
49 #define NNLEN 80
50 #define RMLEN (UNCLEN+1+NNLEN)
51 #define SNLEN 80
52 #define STXTLEN 256
53 #define PATHLEN 256
54 #define LM20_PATHLEN 256
55 #define DEVLEN 80
56 #define LM20_DEVLEN 8
57 #define EVLEN 16
58 #define UNLEN 256
59 #define LM20_UNLEN 20
60 #define GNLEN UNLEN
61 #define LM20_GNLEN LM20_UNLEN
62 #define PWLEN 256
63 #define LM20_PWLEN 14
64 #define SHPWLEN 8
65 #define CLTYPE_LEN 12
66 #define MAXCOMMENTSZ 256
67 #define LM20_MAXCOMMENTSZ 48
68 #define QNLEN NNLEN
69 #define LM20_QNLEN LM20_NNLEN
70 #define ALERTSZ 128
71 #define MAXDEVENTRIES (sizeof(int)*8)
72 #define NETBIOS_NAME_LEN 16
73 #define MAX_PREFERRED_LENGTH ((DWORD)-1)
74 #define CRYPT_KEY_LEN 7
75 #define CRYPT_TXT_LEN 8
76 #define ENCRYPTED_PWLEN 16
77 #define SESSION_PWLEN 24
78 #define SESSION_CRYPT_KLEN 21
79 #define PARMNUM_ALL             0
80 #define PARM_ERROR_UNKNOWN ((DWORD)-1)
81 #define PARM_ERROR_NONE 0
82 #define PARMNUM_BASE_INFOLEVEL 1000
83 #define PLATFORM_ID_DOS 300
84 #define PLATFORM_ID_OS2 400
85 #define PLATFORM_ID_NT 500
86 #define PLATFORM_ID_OSF 600
87 #define PLATFORM_ID_VMS 700
88 /* new typedef in W2K */
89 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) || defined(FORCE_UNICODE)
90 #define LMSTR   LPWSTR
91 #define LMCSTR  LPCWSTR
92 #else
93 #define LMSTR   LPSTR
94 #define LMCSTR  LPCSTR
95 #endif
96
97 #endif