Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
159e0dc2
Commit
159e0dc2
authored
Mar 01, 2004
by
Juan Lang
Committed by
Alexandre Julliard
Mar 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Declare a few more Net apis and constants.
parent
1af344a9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
154 additions
and
0 deletions
+154
-0
Makefile.in
include/Makefile.in
+2
-0
lmcons.h
include/lmcons.h
+26
-0
lmserver.h
include/lmserver.h
+77
-0
lmshare.h
include/lmshare.h
+49
-0
No files found.
include/Makefile.in
View file @
159e0dc2
...
...
@@ -103,6 +103,8 @@ WINDOWS_INCLUDES = \
lmbrowsr.h
\
lmcons.h
\
lmerr.h
\
lmserver.h
\
lmshare.h
\
lmstats.h
\
lmwksta.h
\
lzexpand.h
\
...
...
include/lmcons.h
View file @
159e0dc2
...
...
@@ -28,9 +28,31 @@
/* Lan manager API defines */
#define UNLEN 256
/* Maximum user name length */
#define LM20_UNLEN 20
#define GNLEN UNLEN
/* Maximum group name length */
#define LM20_GNLEN LM20_UNLEN
#define PWLEN 256
/* Maximum password length */
#define LM20_PWLEN 14
#define CNLEN 15
/* Computer name length */
#define LM20_CNLEN CNLEN
#define DNLEN CNLEN
/* Maximum domain name length */
#define LM20_DNLEN DNLEN
#define UNCLEN (CNLEN+2)
/* UNC computer name length */
#define LM20_UNCLEN (LM20_CNLEN+2)
#define NNLEN 80
/* max share name length */
#define LM20_NNLEN 12
/* max LM 2.0 share name length */
#define RMLEN (UNCLEN+1+NNLEN)
#define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
#define SNLEN 80
/* max service name length */
#define LM20_SNLEN 15
#define STXTLEN 256
/* service text length */
#define LM20_STXTLEN 63
#define PATHLEN 256
#define LM20_PATHLEN 256
#define DEVLEN 80
/* max device name length */
#define LM20_DEVLEN 8
#define EVLEN 16
/* max event name length */
#define CLTYPE_LEN 12
/* max client type length */
/* platform IDs */
#define PLATFORM_ID_DOS 300
...
...
@@ -38,4 +60,8 @@
#define PLATFORM_ID_NT 500
#define PLATFORM_ID_OSF 600
#define PLATFORM_ID_VMS 700
#define LMSTR LPWSTR
#define LMCSTR LPCWSTR
#endif
include/lmserver.h
0 → 100644
View file @
159e0dc2
/*
* Copyright (C) 2003 Juan Lang
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _LMSERVER_
#define _LMSERVER_
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
_SERVER_INFO_100
{
DWORD
sv100_platform_id
;
LMSTR
sv100_name
;
}
SERVER_INFO_100
,
*
PSERVER_INFO_100
,
*
LPSERVER_INFO_100
;
typedef
struct
_SERVER_INFO_101
{
DWORD
sv101_platform_id
;
LMSTR
sv101_name
;
DWORD
sv101_version_major
;
DWORD
sv101_version_minor
;
DWORD
sv101_type
;
LMSTR
sv101_comment
;
}
SERVER_INFO_101
,
*
PSERVER_INFO_101
,
*
LPSERVER_INFO_101
;
NET_API_STATUS
WINAPI
NetServerEnum
(
LMCSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
DWORD
servertype
,
LMCSTR
domain
,
LPDWORD
resume_handle
);
#define SV_TYPE_WORKSTATION 0x00000001
#define SV_TYPE_SERVER 0x00000002
#define SV_TYPE_SQLSERVER 0x00000004
#define SV_TYPE_DOMAIN_CTRL 0x00000008
#define SV_TYPE_DOMAIN_BAKCTRL 0x00000010
#define SV_TYPE_TIME_SOURCE 0x00000020
#define SV_TYPE_AFP 0x00000040
#define SV_TYPE_NOVELL 0x00000080
#define SV_TYPE_DOMAIN_MEMBER 0x00000100
#define SV_TYPE_PRINTQ_SERVER 0x00000200
#define SV_TYPE_DIALIN_SERVER 0x00000400
#define SV_TYPE_XENIX_SERVER 0x00000800
#define SV_TYPE_SERVER_UNIX SV_TYPE_XENIX_SERVER
#define SV_TYPE_NT 0x00001000
#define SV_TYPE_WFW 0x00002000
#define SV_TYPE_SERVER_MFPN 0x00004000
#define SV_TYPE_SERVER_NT 0x00008000
#define SV_TYPE_POTENTIAL_BROWSER 0x00010000
#define SV_TYPE_BACKUP_BROWSER 0x00020000
#define SV_TYPE_MASTER_BROWSER 0x00040000
#define SV_TYPE_DOMAIN_MASTER 0x00080000
#define SV_TYPE_SERVER_OSF 0x00100000
#define SV_TYPE_SERVER_VMS 0x00200000
#define SV_TYPE_WINDOWS 0x00400000
#define SV_TYPE_DFS 0x00800000
#define SV_TYPE_ALTERNATE_XPORT 0x20000000
#define SV_TYPE_LOCAL_LIST_ONLY 0x40000000
#define SV_TYPE_DOMAIN_ENUM 0x80000000
#define SV_TYPE_ALL 0xFFFFFFFF
#ifdef __cplusplus
}
#endif
#endif
/* ndef _LMSERVER_ */
include/lmshare.h
0 → 100644
View file @
159e0dc2
/*
* Copyright (C) 2003 Juan Lang
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _LMSHARE_H
#define _LMSHARE_H
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
_SHARE_INFO_0
{
LMSTR
shi0_netname
;
}
SHARE_INFO_0
,
*
PSHARE_INFO_0
,
*
LPSHARE_INFO_0
;
typedef
struct
_SHARE_INFO_1
{
LMSTR
shi1_netname
;
DWORD
shi1_type
;
LMSTR
shi1_remark
;
}
SHARE_INFO_1
,
*
PSHARE_INFO_1
,
*
LPSHARE_INFO_1
;
NET_API_STATUS
WINAPI
NetShareEnum
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
);
#define STYPE_DISKTREE 0
#define STYPE_PRINTQ 1
#define STYPE_DEVICE 2
#define STYPE_IPC 3
#define STYPE_SPECIAL 0x80000000
#ifdef __cplusplus
}
#endif
#endif
/* ndef _LMSHARE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment