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
9fae03b3
Commit
9fae03b3
authored
Aug 08, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Add some missing prototypes in the lmaccess.h, lmshare.h and lmwksta.h headers.
Replace LPWC?STR with LMC?STR to better match the PSDK.
parent
e50f16e5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
52 deletions
+62
-52
netapi32.c
dlls/netapi32/netapi32.c
+6
-6
share.c
dlls/netapi32/share.c
+3
-3
wksta.c
dlls/netapi32/wksta.c
+14
-14
lmaccess.h
include/lmaccess.h
+2
-1
lmserver.h
include/lmserver.h
+2
-2
lmshare.h
include/lmshare.h
+12
-7
lmwksta.h
include/lmwksta.h
+23
-19
No files found.
dlls/netapi32/netapi32.c
View file @
9fae03b3
...
@@ -53,14 +53,14 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
...
@@ -53,14 +53,14 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
* NetServerEnum (NETAPI32.@)
* NetServerEnum (NETAPI32.@)
*/
*/
NET_API_STATUS
WINAPI
NetServerEnum
(
NET_API_STATUS
WINAPI
NetServerEnum
(
L
PCW
STR
servername
,
L
MC
STR
servername
,
DWORD
level
,
DWORD
level
,
LPBYTE
*
bufptr
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
totalentries
,
DWORD
servertype
,
DWORD
servertype
,
L
PCW
STR
domain
,
L
MC
STR
domain
,
LPDWORD
resume_handle
LPDWORD
resume_handle
)
)
{
{
...
@@ -75,15 +75,15 @@ NET_API_STATUS WINAPI NetServerEnum(
...
@@ -75,15 +75,15 @@ NET_API_STATUS WINAPI NetServerEnum(
* NetServerEnumEx (NETAPI32.@)
* NetServerEnumEx (NETAPI32.@)
*/
*/
NET_API_STATUS
WINAPI
NetServerEnumEx
(
NET_API_STATUS
WINAPI
NetServerEnumEx
(
L
PCW
STR
ServerName
,
L
MC
STR
ServerName
,
DWORD
Level
,
DWORD
Level
,
LPBYTE
*
Bufptr
,
LPBYTE
*
Bufptr
,
DWORD
PrefMaxlen
,
DWORD
PrefMaxlen
,
LPDWORD
EntriesRead
,
LPDWORD
EntriesRead
,
LPDWORD
totalentries
,
LPDWORD
totalentries
,
DWORD
servertype
,
DWORD
servertype
,
L
PCW
STR
domain
,
L
MC
STR
domain
,
L
PCW
STR
FirstNameToReturn
)
L
MC
STR
FirstNameToReturn
)
{
{
FIXME
(
"Stub (%s %d %p %d %p %p %d %s %p)
\n
"
,
debugstr_w
(
ServerName
),
FIXME
(
"Stub (%s %d %p %d %p %p %d %s %p)
\n
"
,
debugstr_w
(
ServerName
),
Level
,
Bufptr
,
PrefMaxlen
,
EntriesRead
,
totalentries
,
servertype
,
Level
,
Bufptr
,
PrefMaxlen
,
EntriesRead
,
totalentries
,
servertype
,
...
@@ -105,7 +105,7 @@ NET_API_STATUS WINAPI NetServerGetInfo(LMSTR servername, DWORD level, LPBYTE* bu
...
@@ -105,7 +105,7 @@ NET_API_STATUS WINAPI NetServerGetInfo(LMSTR servername, DWORD level, LPBYTE* bu
/************************************************************
/************************************************************
* NetStatisticsGet (NETAPI32.@)
* NetStatisticsGet (NETAPI32.@)
*/
*/
NET_API_STATUS
WINAPI
NetStatisticsGet
(
L
PWSTR
server
,
LPW
STR
service
,
NET_API_STATUS
WINAPI
NetStatisticsGet
(
L
MSTR
server
,
LM
STR
service
,
DWORD
level
,
DWORD
options
,
DWORD
level
,
DWORD
options
,
LPBYTE
*
bufptr
)
LPBYTE
*
bufptr
)
{
{
...
...
dlls/netapi32/share.c
View file @
9fae03b3
...
@@ -47,8 +47,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(share);
...
@@ -47,8 +47,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(share);
* NERR_InvalidComputer Invalid computer name
* NERR_InvalidComputer Invalid computer name
* NERR_UserNotFound User name could not be found.
* NERR_UserNotFound User name could not be found.
*/
*/
NET_API_STATUS
WINAPI
NetSessionEnum
(
L
PWSTR
servername
,
LPW
STR
UncClientName
,
NET_API_STATUS
WINAPI
NetSessionEnum
(
L
MSTR
servername
,
LM
STR
UncClientName
,
L
PW
STR
username
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
L
M
STR
username
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
{
FIXME
(
"Stub (%s %s %s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
FIXME
(
"Stub (%s %s %s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
...
@@ -75,7 +75,7 @@ NET_API_STATUS WINAPI NetSessionEnum(LPWSTR servername, LPWSTR UncClientName,
...
@@ -75,7 +75,7 @@ NET_API_STATUS WINAPI NetSessionEnum(LPWSTR servername, LPWSTR UncClientName,
* On failure it returns a system error code (FIXME: find out which)
* On failure it returns a system error code (FIXME: find out which)
*
*
*/
*/
NET_API_STATUS
WINAPI
NetShareEnum
(
L
PW
STR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
NET_API_STATUS
WINAPI
NetShareEnum
(
L
M
STR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
{
FIXME
(
"Stub (%s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
,
FIXME
(
"Stub (%s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
,
...
...
dlls/netapi32/wksta.c
View file @
9fae03b3
...
@@ -46,7 +46,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
...
@@ -46,7 +46,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
*
*
* Checks whether the server name indicates local machine.
* Checks whether the server name indicates local machine.
*/
*/
BOOL
NETAPI_IsLocalComputer
(
L
PCW
STR
ServerName
)
BOOL
NETAPI_IsLocalComputer
(
L
MC
STR
ServerName
)
{
{
if
(
!
ServerName
)
if
(
!
ServerName
)
{
{
...
@@ -189,15 +189,15 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
...
@@ -189,15 +189,15 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
if
(
enumData
->
n_read
<
spaceFor
)
if
(
enumData
->
n_read
<
spaceFor
)
{
{
PWKSTA_TRANSPORT_INFO_0
ti
;
PWKSTA_TRANSPORT_INFO_0
ti
;
L
PW
STR
transport_name
,
transport_addr
;
L
M
STR
transport_name
,
transport_addr
;
MIB_IFROW
ifRow
;
MIB_IFROW
ifRow
;
ti
=
(
PWKSTA_TRANSPORT_INFO_0
)(
*
(
enumData
->
pbuf
)
+
ti
=
(
PWKSTA_TRANSPORT_INFO_0
)(
*
(
enumData
->
pbuf
)
+
enumData
->
n_read
*
sizeof
(
WKSTA_TRANSPORT_INFO_0
));
enumData
->
n_read
*
sizeof
(
WKSTA_TRANSPORT_INFO_0
));
transport_name
=
(
L
PW
STR
)(
*
(
enumData
->
pbuf
)
+
transport_name
=
(
L
M
STR
)(
*
(
enumData
->
pbuf
)
+
totalLANAs
*
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
+
totalLANAs
*
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
+
enumData
->
n_read
*
MAX_TRANSPORT_NAME
*
sizeof
(
WCHAR
));
enumData
->
n_read
*
MAX_TRANSPORT_NAME
*
sizeof
(
WCHAR
));
transport_addr
=
(
L
PW
STR
)(
*
(
enumData
->
pbuf
)
+
transport_addr
=
(
L
M
STR
)(
*
(
enumData
->
pbuf
)
+
totalLANAs
*
(
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
+
totalLANAs
*
(
sizeof
(
WKSTA_TRANSPORT_INFO_0
)
+
MAX_TRANSPORT_NAME
*
sizeof
(
WCHAR
))
+
MAX_TRANSPORT_NAME
*
sizeof
(
WCHAR
))
+
enumData
->
n_read
*
MAX_TRANSPORT_ADDR
*
sizeof
(
WCHAR
));
enumData
->
n_read
*
MAX_TRANSPORT_ADDR
*
sizeof
(
WCHAR
));
...
@@ -247,7 +247,7 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
...
@@ -247,7 +247,7 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
/**********************************************************************/
/**********************************************************************/
NET_API_STATUS
WINAPI
NET_API_STATUS
WINAPI
NetWkstaTransportEnum
(
L
PW
STR
ServerName
,
DWORD
level
,
PBYTE
*
pbuf
,
NetWkstaTransportEnum
(
L
M
STR
ServerName
,
DWORD
level
,
PBYTE
*
pbuf
,
DWORD
prefmaxlen
,
LPDWORD
read_entries
,
DWORD
prefmaxlen
,
LPDWORD
read_entries
,
PDWORD
total_entries
,
PDWORD
hresume
)
PDWORD
total_entries
,
PDWORD
hresume
)
{
{
...
@@ -305,7 +305,7 @@ NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
...
@@ -305,7 +305,7 @@ NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
/************************************************************
/************************************************************
* NetWkstaUserGetInfo (NETAPI32.@)
* NetWkstaUserGetInfo (NETAPI32.@)
*/
*/
NET_API_STATUS
WINAPI
NetWkstaUserGetInfo
(
L
PW
STR
reserved
,
DWORD
level
,
NET_API_STATUS
WINAPI
NetWkstaUserGetInfo
(
L
M
STR
reserved
,
DWORD
level
,
PBYTE
*
bufptr
)
PBYTE
*
bufptr
)
{
{
TRACE
(
"(%s, %d, %p)
\n
"
,
debugstr_w
(
reserved
),
level
,
bufptr
);
TRACE
(
"(%s, %d, %p)
\n
"
,
debugstr_w
(
reserved
),
level
,
bufptr
);
...
@@ -321,7 +321,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
...
@@ -321,7 +321,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
(
LPVOID
*
)
bufptr
);
(
LPVOID
*
)
bufptr
);
ui
=
(
PWKSTA_USER_INFO_0
)
*
bufptr
;
ui
=
(
PWKSTA_USER_INFO_0
)
*
bufptr
;
ui
->
wkui0_username
=
(
L
PW
STR
)
(
*
bufptr
+
sizeof
(
WKSTA_USER_INFO_0
));
ui
->
wkui0_username
=
(
L
M
STR
)
(
*
bufptr
+
sizeof
(
WKSTA_USER_INFO_0
));
/* get data */
/* get data */
if
(
!
GetUserNameW
(
ui
->
wkui0_username
,
&
dwSize
))
if
(
!
GetUserNameW
(
ui
->
wkui0_username
,
&
dwSize
))
...
@@ -381,13 +381,13 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
...
@@ -381,13 +381,13 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
oth_domains_sz
+
logon_server_sz
)
*
sizeof
(
WCHAR
),
oth_domains_sz
+
logon_server_sz
)
*
sizeof
(
WCHAR
),
(
LPVOID
*
)
bufptr
);
(
LPVOID
*
)
bufptr
);
ui
=
(
WKSTA_USER_INFO_1
*
)
*
bufptr
;
ui
=
(
WKSTA_USER_INFO_1
*
)
*
bufptr
;
ui
->
wkui1_username
=
(
L
PW
STR
)
(
*
bufptr
+
sizeof
(
WKSTA_USER_INFO_1
));
ui
->
wkui1_username
=
(
L
M
STR
)
(
*
bufptr
+
sizeof
(
WKSTA_USER_INFO_1
));
ui
->
wkui1_logon_domain
=
(
L
PW
STR
)
(
ui
->
wkui1_logon_domain
=
(
L
M
STR
)
(
((
PBYTE
)
ui
->
wkui1_username
)
+
username_sz
*
sizeof
(
WCHAR
));
((
PBYTE
)
ui
->
wkui1_username
)
+
username_sz
*
sizeof
(
WCHAR
));
ui
->
wkui1_oth_domains
=
(
L
PW
STR
)
(
ui
->
wkui1_oth_domains
=
(
L
M
STR
)
(
((
PBYTE
)
ui
->
wkui1_logon_domain
)
+
((
PBYTE
)
ui
->
wkui1_logon_domain
)
+
logon_domain_sz
*
sizeof
(
WCHAR
));
logon_domain_sz
*
sizeof
(
WCHAR
));
ui
->
wkui1_logon_server
=
(
L
PW
STR
)
(
ui
->
wkui1_logon_server
=
(
L
M
STR
)
(
((
PBYTE
)
ui
->
wkui1_oth_domains
)
+
((
PBYTE
)
ui
->
wkui1_oth_domains
)
+
oth_domains_sz
*
sizeof
(
WCHAR
));
oth_domains_sz
*
sizeof
(
WCHAR
));
...
@@ -418,7 +418,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
...
@@ -418,7 +418,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
(
LPVOID
*
)
bufptr
);
(
LPVOID
*
)
bufptr
);
ui
=
(
PWKSTA_USER_INFO_1101
)
*
bufptr
;
ui
=
(
PWKSTA_USER_INFO_1101
)
*
bufptr
;
ui
->
wkui1101_oth_domains
=
(
L
PW
STR
)(
ui
+
1
);
ui
->
wkui1101_oth_domains
=
(
L
M
STR
)(
ui
+
1
);
/* get data */
/* get data */
ui
->
wkui1101_oth_domains
[
0
]
=
0
;
ui
->
wkui1101_oth_domains
[
0
]
=
0
;
...
@@ -469,7 +469,7 @@ NET_API_STATUS WINAPI I_NetNameValidate(LPVOID p1, LPWSTR wkgrp, LPVOID p3,
...
@@ -469,7 +469,7 @@ NET_API_STATUS WINAPI I_NetNameValidate(LPVOID p1, LPWSTR wkgrp, LPVOID p3,
return
ERROR_INVALID_PARAMETER
;
return
ERROR_INVALID_PARAMETER
;
}
}
NET_API_STATUS
WINAPI
NetWkstaGetInfo
(
L
PW
STR
servername
,
DWORD
level
,
NET_API_STATUS
WINAPI
NetWkstaGetInfo
(
L
M
STR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
)
LPBYTE
*
bufptr
)
{
{
NET_API_STATUS
ret
;
NET_API_STATUS
ret
;
...
@@ -524,7 +524,7 @@ NET_API_STATUS WINAPI NetWkstaGetInfo( LPWSTR servername, DWORD level,
...
@@ -524,7 +524,7 @@ NET_API_STATUS WINAPI NetWkstaGetInfo( LPWSTR servername, DWORD level,
OSVERSIONINFOW
verInfo
;
OSVERSIONINFOW
verInfo
;
info
->
wki102_platform_id
=
PLATFORM_ID_NT
;
info
->
wki102_platform_id
=
PLATFORM_ID_NT
;
info
->
wki102_computername
=
(
L
PW
STR
)(
*
bufptr
+
info
->
wki102_computername
=
(
L
M
STR
)(
*
bufptr
+
sizeof
(
WKSTA_INFO_102
));
sizeof
(
WKSTA_INFO_102
));
memcpy
(
info
->
wki102_computername
,
computerName
,
memcpy
(
info
->
wki102_computername
,
computerName
,
computerNameLen
*
sizeof
(
WCHAR
));
computerNameLen
*
sizeof
(
WCHAR
));
...
...
include/lmaccess.h
View file @
9fae03b3
...
@@ -462,10 +462,11 @@ NET_API_STATUS WINAPI NetLocalGroupSetInfo(LPCWSTR,LPCWSTR,DWORD,LPBYTE,LPDWORD)
...
@@ -462,10 +462,11 @@ NET_API_STATUS WINAPI NetLocalGroupSetInfo(LPCWSTR,LPCWSTR,DWORD,LPBYTE,LPDWORD)
NET_API_STATUS
WINAPI
NetLocalGroupSetMembers
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
,
DWORD
);
NET_API_STATUS
WINAPI
NetLocalGroupSetMembers
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
,
DWORD
);
NET_API_STATUS
WINAPI
NetQueryDisplayInformation
(
LPCWSTR
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
PVOID
*
);
NET_API_STATUS
WINAPI
NetQueryDisplayInformation
(
LPCWSTR
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
PVOID
*
);
NET_API_STATUS
WINAPI
NetUserAdd
(
LPCWSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserAdd
(
LPCWSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserChangePassword
(
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
);
NET_API_STATUS
WINAPI
NetUserDel
(
LPCWSTR
,
LPCWSTR
);
NET_API_STATUS
WINAPI
NetUserDel
(
LPCWSTR
,
LPCWSTR
);
NET_API_STATUS
WINAPI
NetUserGetLocalGroups
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserEnum
(
LPCWSTR
,
DWORD
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserEnum
(
LPCWSTR
,
DWORD
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserGetInfo
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetUserGetInfo
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetUserGetLocalGroups
(
LPCWSTR
,
LPCWSTR
,
DWORD
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetUserModalsGet
(
LPCWSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetUserModalsGet
(
LPCWSTR
,
DWORD
,
LPBYTE
*
);
#ifdef __cplusplus
#ifdef __cplusplus
...
...
include/lmserver.h
View file @
9fae03b3
...
@@ -39,8 +39,8 @@ typedef struct _SERVER_INFO_101 {
...
@@ -39,8 +39,8 @@ typedef struct _SERVER_INFO_101 {
LMSTR
sv101_comment
;
LMSTR
sv101_comment
;
}
SERVER_INFO_101
,
*
PSERVER_INFO_101
,
*
LPSERVER_INFO_101
;
}
SERVER_INFO_101
,
*
PSERVER_INFO_101
,
*
LPSERVER_INFO_101
;
NET_API_STATUS
WINAPI
NetServerEnum
(
L
PCWSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
DWORD
,
LPCW
STR
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetServerEnum
(
L
MCSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
DWORD
,
LMC
STR
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetServerEnumEx
(
L
PCWSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
DWORD
,
LPCWSTR
,
LPCW
STR
);
NET_API_STATUS
WINAPI
NetServerEnumEx
(
L
MCSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
DWORD
,
LMCSTR
,
LMC
STR
);
NET_API_STATUS
WINAPI
NetServerGetInfo
(
LMSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetServerGetInfo
(
LMSTR
,
DWORD
,
LPBYTE
*
);
BOOL
WINAPI
SetServiceBits
(
SERVICE_STATUS_HANDLE
,
DWORD
,
BOOL
,
BOOL
);
BOOL
WINAPI
SetServiceBits
(
SERVICE_STATUS_HANDLE
,
DWORD
,
BOOL
,
BOOL
);
...
...
include/lmshare.h
View file @
9fae03b3
...
@@ -34,10 +34,15 @@ typedef struct _SHARE_INFO_1 {
...
@@ -34,10 +34,15 @@ typedef struct _SHARE_INFO_1 {
LMSTR
shi1_remark
;
LMSTR
shi1_remark
;
}
SHARE_INFO_1
,
*
PSHARE_INFO_1
,
*
LPSHARE_INFO_1
;
}
SHARE_INFO_1
,
*
PSHARE_INFO_1
,
*
LPSHARE_INFO_1
;
NET_API_STATUS
WINAPI
NetShareDel
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
reserved
);
NET_API_STATUS
WINAPI
NetShareAdd
(
LMSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetShareEnum
(
LMSTR
servername
,
DWORD
level
,
NET_API_STATUS
WINAPI
NetShareCheck
(
LMSTR
,
LMSTR
,
LPDWORD
);
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
NET_API_STATUS
WINAPI
NetShareDel
(
LMSTR
,
LMSTR
,
DWORD
);
LPDWORD
resume_handle
);
NET_API_STATUS
WINAPI
NetShareDelEx
(
LMSTR
,
DWORD
,
LPBYTE
);
NET_API_STATUS
WINAPI
NetShareDelSticky
(
LMSTR
,
LMSTR
,
DWORD
);
NET_API_STATUS
WINAPI
NetShareEnum
(
LMSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetShareEnumSticky
(
LMSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetShareGetInfo
(
LMSTR
,
LMSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetShareSetInfo
(
LMSTR
,
LMSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
#define STYPE_DISKTREE 0
#define STYPE_DISKTREE 0
#define STYPE_PRINTQ 1
#define STYPE_PRINTQ 1
...
@@ -45,9 +50,9 @@ NET_API_STATUS WINAPI NetShareEnum(LMSTR servername, DWORD level,
...
@@ -45,9 +50,9 @@ NET_API_STATUS WINAPI NetShareEnum(LMSTR servername, DWORD level,
#define STYPE_IPC 3
#define STYPE_IPC 3
#define STYPE_SPECIAL 0x80000000
#define STYPE_SPECIAL 0x80000000
NET_API_STATUS
NET_API_FUNCTION
NetSessionEnum
(
LMSTR
servername
,
LMSTR
UncClientName
,
NET_API_STATUS
WINAPI
NetSessionDel
(
LMSTR
,
LMSTR
,
LMSTR
);
LMSTR
username
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
NET_API_STATUS
WINAPI
NetSessionEnum
(
LMSTR
,
LMSTR
,
LMSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
LPDWORD
totalentries
,
LPDWORD
resume_handle
);
NET_API_STATUS
WINAPI
NetSessionGetInfo
(
LMSTR
,
LMSTR
,
LMSTR
,
DWORD
,
LPBYTE
*
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
include/lmwksta.h
View file @
9fae03b3
...
@@ -28,57 +28,61 @@ extern "C" {
...
@@ -28,57 +28,61 @@ extern "C" {
typedef
struct
_WKSTA_TRANSPORT_INFO_0
{
typedef
struct
_WKSTA_TRANSPORT_INFO_0
{
DWORD
wkti0_quality_of_service
;
DWORD
wkti0_quality_of_service
;
DWORD
wkti0_number_of_vcs
;
DWORD
wkti0_number_of_vcs
;
L
PW
STR
wkti0_transport_name
;
L
M
STR
wkti0_transport_name
;
L
PW
STR
wkti0_transport_address
;
L
M
STR
wkti0_transport_address
;
BOOL
wkti0_wan_ish
;
BOOL
wkti0_wan_ish
;
}
WKSTA_TRANSPORT_INFO_0
,
*
PWKSTA_TRANSPORT_INFO_0
,
*
LPWKSTA_TRANSPORT_INFO_0
;
}
WKSTA_TRANSPORT_INFO_0
,
*
PWKSTA_TRANSPORT_INFO_0
,
*
LPWKSTA_TRANSPORT_INFO_0
;
typedef
struct
_WKSTA_USER_INFO_0
{
typedef
struct
_WKSTA_USER_INFO_0
{
L
PW
STR
wkui0_username
;
L
M
STR
wkui0_username
;
}
WKSTA_USER_INFO_0
,
*
PWKSTA_USER_INFO_0
,
*
LPWKSTA_USER_INFO_0
;
}
WKSTA_USER_INFO_0
,
*
PWKSTA_USER_INFO_0
,
*
LPWKSTA_USER_INFO_0
;
typedef
struct
_WKSTA_USER_INFO_1
{
typedef
struct
_WKSTA_USER_INFO_1
{
L
PW
STR
wkui1_username
;
L
M
STR
wkui1_username
;
L
PW
STR
wkui1_logon_domain
;
L
M
STR
wkui1_logon_domain
;
L
PW
STR
wkui1_oth_domains
;
L
M
STR
wkui1_oth_domains
;
L
PW
STR
wkui1_logon_server
;
L
M
STR
wkui1_logon_server
;
}
WKSTA_USER_INFO_1
,
*
PWKSTA_USER_INFO_1
,
*
LPWKSTA_USER_INFO_1
;
}
WKSTA_USER_INFO_1
,
*
PWKSTA_USER_INFO_1
,
*
LPWKSTA_USER_INFO_1
;
typedef
struct
_WKSTA_USER_INFO_1101
{
typedef
struct
_WKSTA_USER_INFO_1101
{
L
PW
STR
wkui1101_oth_domains
;
L
M
STR
wkui1101_oth_domains
;
}
WKSTA_USER_INFO_1101
,
*
PWKSTA_USER_INFO_1101
,
*
LPWKSTA_USER_INFO_1101
;
}
WKSTA_USER_INFO_1101
,
*
PWKSTA_USER_INFO_1101
,
*
LPWKSTA_USER_INFO_1101
;
typedef
struct
_WKSTA_INFO_100
{
typedef
struct
_WKSTA_INFO_100
{
DWORD
wki100_platform_id
;
DWORD
wki100_platform_id
;
L
PWSTR
wki100_computername
;
L
MSTR
wki100_computername
;
L
PWSTR
wki100_langroup
;
L
MSTR
wki100_langroup
;
DWORD
wki100_ver_major
;
DWORD
wki100_ver_major
;
DWORD
wki100_ver_minor
;
DWORD
wki100_ver_minor
;
}
WKSTA_INFO_100
,
*
PWKSTA_INFO_100
,
*
LPWKSTA_INFO_100
;
}
WKSTA_INFO_100
,
*
PWKSTA_INFO_100
,
*
LPWKSTA_INFO_100
;
typedef
struct
_WKSTA_INFO_101
{
typedef
struct
_WKSTA_INFO_101
{
DWORD
wki101_platform_id
;
DWORD
wki101_platform_id
;
L
PWSTR
wki101_computername
;
L
MSTR
wki101_computername
;
L
PWSTR
wki101_langroup
;
L
MSTR
wki101_langroup
;
DWORD
wki101_ver_major
;
DWORD
wki101_ver_major
;
DWORD
wki101_ver_minor
;
DWORD
wki101_ver_minor
;
L
PWSTR
wki101_lanroot
;
L
MSTR
wki101_lanroot
;
}
WKSTA_INFO_101
,
*
PWKSTA_INFO_101
,
*
LPWKSTA_INFO_101
;
}
WKSTA_INFO_101
,
*
PWKSTA_INFO_101
,
*
LPWKSTA_INFO_101
;
typedef
struct
_WKSTA_INFO_102
{
typedef
struct
_WKSTA_INFO_102
{
DWORD
wki102_platform_id
;
DWORD
wki102_platform_id
;
L
PWSTR
wki102_computername
;
L
MSTR
wki102_computername
;
L
PWSTR
wki102_langroup
;
L
MSTR
wki102_langroup
;
DWORD
wki102_ver_major
;
DWORD
wki102_ver_major
;
DWORD
wki102_ver_minor
;
DWORD
wki102_ver_minor
;
L
PWSTR
wki102_lanroot
;
L
MSTR
wki102_lanroot
;
DWORD
wki102_logged_on_users
;
DWORD
wki102_logged_on_users
;
}
WKSTA_INFO_102
,
*
PWKSTA_INFO_102
,
*
LPWKSTA_INFO_102
;
}
WKSTA_INFO_102
,
*
PWKSTA_INFO_102
,
*
LPWKSTA_INFO_102
;
/* workstation */
/* workstation */
NET_API_STATUS
WINAPI
NetWkstaGetInfo
(
LPWSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetWkstaGetInfo
(
LMSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
NET_API_FUNCTION
NetWkstaTransportEnum
(
LPWSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetWkstaSetInfo
(
LMSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetWkstaUserGetInfo
(
LPWSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetWkstaTransportAdd
(
LMSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetWkstaTransportDel
(
LMSTR
,
LMSTR
,
DWORD
);
NET_API_STATUS
WINAPI
NetWkstaTransportEnum
(
LMSTR
,
DWORD
,
LPBYTE
*
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
NET_API_STATUS
WINAPI
NetWkstaUserGetInfo
(
LMSTR
,
DWORD
,
LPBYTE
*
);
NET_API_STATUS
WINAPI
NetWkstaUserSetInfo
(
LMSTR
,
DWORD
,
LPBYTE
,
LPDWORD
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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