3 * Copyright 2012, 2013 MinGW.org project
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:
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
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.
26 #pragma GCC system_header
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 */
39 #define UNCLEN (CNLEN + 2)
45 #define LM20_STXTLEN 63
46 #define LM20_UNCLEN (LM20_CNLEN+2)
48 #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
50 #define RMLEN (UNCLEN+1+NNLEN)
54 #define LM20_PATHLEN 256
61 #define LM20_GNLEN LM20_UNLEN
66 #define MAXCOMMENTSZ 256
67 #define LM20_MAXCOMMENTSZ 48
69 #define LM20_QNLEN LM20_NNLEN
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
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)
91 #define LMCSTR LPCWSTR