ReactOS 0.4.16-dev-338-g34e76ad
lmshare.h
Go to the documentation of this file.
1#ifndef _LMSHARE_H
2#define _LMSHARE_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7#include <lmcons.h>
8#define SHARE_NETNAME_PARMNUM 1
9#define SHARE_TYPE_PARMNUM 3
10#define SHARE_REMARK_PARMNUM 4
11#define SHARE_PERMISSIONS_PARMNUM 5
12#define SHARE_MAX_USES_PARMNUM 6
13#define SHARE_CURRENT_USES_PARMNUM 7
14#define SHARE_PATH_PARMNUM 8
15#define SHARE_PASSWD_PARMNUM 9
16#define SHARE_FILE_SD_PARMNUM 501
17#define SHARE_REMARK_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_REMARK_PARMNUM)
18#define SHARE_MAX_USES_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_MAX_USES_PARMNUM)
19#define SHARE_FILE_SD_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_FILE_SD_PARMNUM)
20#define SHI1_NUM_ELEMENTS 4
21#define SHI2_NUM_ELEMENTS 10
22#define STYPE_DISKTREE 0
23#define STYPE_PRINTQ 1
24#define STYPE_DEVICE 2
25#define STYPE_IPC 3
26#define STYPE_DFS 100
27#define STYPE_SPECIAL 0x80000000
28#define SHI_USES_UNLIMITED (DWORD)(-1)
29#define SESS_GUEST 1
30#define SESS_NOENCRYPTION 2
31#define SESI1_NUM_ELEMENTS 8
32#define SESI2_NUM_ELEMENTS 9
33#define PERM_FILE_READ 1
34#define PERM_FILE_WRITE 2
35#define PERM_FILE_CREATE 4
37typedef struct _FILE_INFO_3 {
45typedef struct _SHARE_INFO_1 {
50typedef struct _SHARE_INFO_2 {
60typedef struct _SHARE_INFO_502 {
72typedef struct _SHARE_INFO_1004 {
75typedef struct _SHARE_INFO_1006 {
78typedef struct _SHARE_INFO_1501 {
83typedef struct _SESSION_INFO_1 {
91typedef struct _SESSION_INFO_2 {
100typedef struct _SESSION_INFO_10 {
106typedef struct _SESSION_INFO_502 {
117typedef struct _CONNECTION_INFO_1 {
126
136
140
145#ifdef __cplusplus
146}
147#endif
148#endif
ULONG_PTR * PDWORD_PTR
Definition: basetsd.h:182
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _SHARE_INFO_1 SHARE_INFO_1
NET_API_STATUS WINAPI NetShareDel(LMSTR, LMSTR, DWORD)
NET_API_STATUS WINAPI NetShareSetInfo(LMSTR, LMSTR, DWORD, LPBYTE, LPDWORD)
struct _CONNECTION_INFO_1 * PCONNECTION_INFO_1
struct _FILE_INFO_3 FILE_INFO_3
struct _SHARE_INFO_1004 * LPSHARE_INFO_1004
struct _FILE_INFO_2 * LPFILE_INFO_2
NET_API_STATUS WINAPI NetSessionDel(LMSTR, LMSTR, LMSTR)
struct _FILE_INFO_3 * PFILE_INFO_3
struct _SHARE_INFO_1004 * PSHARE_INFO_1004
struct _SESSION_INFO_1 SESSION_INFO_1
struct _SHARE_INFO_1 * PSHARE_INFO_1
struct _SESSION_INFO_1 * PSESSION_INFO_1
struct _SHARE_INFO_1 * LPSHARE_INFO_1
struct _SESSION_INFO_2 SESSION_INFO_2
struct _CONNECTION_INFO_0 CONNECTION_INFO_0
struct _SHARE_INFO_2 SHARE_INFO_2
struct _SESSION_INFO_1 * LPSESSION_INFO_1
struct _CONNECTION_INFO_0 * LPCONNECTION_INFO_0
NET_API_STATUS WINAPI NetFileClose(LPWSTR, DWORD)
NET_API_STATUS WINAPI NetFileEnum(LMSTR, LMSTR, LMSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD_PTR)
NET_API_STATUS WINAPI NetSessionEnum(LMSTR, LMSTR, LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
struct _SHARE_INFO_502 * LPSHARE_INFO_502
struct _SHARE_INFO_1501 * LPSHARE_INFO_1501
struct _SHARE_INFO_1004 SHARE_INFO_1004
struct _SESSION_INFO_502 * PSESSION_INFO_502
NET_API_STATUS WINAPI NetConnectionEnum(LPWSTR, LPWSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD)
NET_API_STATUS WINAPI NetSessionGetInfo(LMSTR, LMSTR, LMSTR, DWORD, LPBYTE *)
struct _SHARE_INFO_2 * PSHARE_INFO_2
struct _SHARE_INFO_0 * PSHARE_INFO_0
NET_API_STATUS WINAPI NetShareEnumSticky(LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
NET_API_STATUS WINAPI NetShareEnum(LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
NET_API_STATUS WINAPI NetShareDelSticky(LMSTR, LMSTR, DWORD)
struct _SHARE_INFO_502 * PSHARE_INFO_502
NET_API_STATUS WINAPI NetFileGetInfo(LPWSTR, DWORD, DWORD, PBYTE *)
struct _SESSION_INFO_502 SESSION_INFO_502
struct _SHARE_INFO_1006 * PSHARE_INFO_1006
struct _SHARE_INFO_2 * LPSHARE_INFO_2
struct _SESSION_INFO_0 * LPSESSION_INFO_0
struct _SHARE_INFO_0 SHARE_INFO_0
struct _SESSION_INFO_10 * PSESSION_INFO_10
struct _SHARE_INFO_1501 * PSHARE_INFO_1501
struct _SESSION_INFO_502 * LPSESSION_INFO_502
NET_API_STATUS WINAPI NetShareCheck(LMSTR, LMSTR, LPDWORD)
struct _SESSION_INFO_0 SESSION_INFO_0
struct _FILE_INFO_2 * PFILE_INFO_2
struct _SHARE_INFO_0 * LPSHARE_INFO_0
struct _SHARE_INFO_1006 SHARE_INFO_1006
struct _SESSION_INFO_2 * LPSESSION_INFO_2
struct _SESSION_INFO_2 * PSESSION_INFO_2
struct _SHARE_INFO_1006 * LPSHARE_INFO_1006
struct _SHARE_INFO_502 SHARE_INFO_502
struct _SHARE_INFO_1501 SHARE_INFO_1501
struct _SESSION_INFO_0 * PSESSION_INFO_0
NET_API_STATUS WINAPI NetShareGetInfo(LMSTR, LMSTR, DWORD, LPBYTE *)
struct _CONNECTION_INFO_1 * LPCONNECTION_INFO_1
struct _SESSION_INFO_10 SESSION_INFO_10
struct _SESSION_INFO_10 * LPSESSION_INFO_10
struct _FILE_INFO_2 FILE_INFO_2
struct _CONNECTION_INFO_1 CONNECTION_INFO_1
struct _FILE_INFO_3 * LPFILE_INFO_3
struct _CONNECTION_INFO_0 * PCONNECTION_INFO_0
NET_API_STATUS WINAPI NetShareDelEx(LMSTR, DWORD, LPBYTE)
NET_API_STATUS WINAPI NetShareAdd(LMSTR, DWORD, LPBYTE, LPDWORD)
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
WCHAR * LMSTR
Definition: ms-dtyp.idl:119
BYTE * PBYTE
Definition: pedump.c:66
DWORD * PDWORD
Definition: pedump.c:68
LPWSTR coni1_username
Definition: lmshare.h:123
LPWSTR coni1_netname
Definition: lmshare.h:124
DWORD coni1_num_opens
Definition: lmshare.h:120
DWORD coni1_num_users
Definition: lmshare.h:121
DWORD fi2_id
Definition: lmshare.h:36
DWORD fi3_id
Definition: lmshare.h:38
DWORD fi3_num_locks
Definition: lmshare.h:40
LPTSTR fi3_username
Definition: lmshare.h:42
DWORD fi3_permissions
Definition: lmshare.h:39
LPTSTR fi3_pathname
Definition: lmshare.h:41
LPWSTR sesi0_cname
Definition: lmshare.h:82
DWORD sesi10_idle_time
Definition: lmshare.h:104
DWORD sesi10_time
Definition: lmshare.h:103
LPWSTR sesi10_username
Definition: lmshare.h:102
LPWSTR sesi10_cname
Definition: lmshare.h:101
LPTSTR sesi1_username
Definition: lmshare.h:85
DWORD sesi1_user_flags
Definition: lmshare.h:89
DWORD sesi1_time
Definition: lmshare.h:87
LPTSTR sesi1_cname
Definition: lmshare.h:84
DWORD sesi1_idle_time
Definition: lmshare.h:88
DWORD sesi1_num_opens
Definition: lmshare.h:86
LPWSTR sesi2_cltype_name
Definition: lmshare.h:98
LPTSTR sesi2_cname
Definition: lmshare.h:92
LPTSTR sesi2_username
Definition: lmshare.h:93
DWORD sesi2_idle_time
Definition: lmshare.h:96
DWORD sesi2_num_opens
Definition: lmshare.h:94
DWORD sesi2_time
Definition: lmshare.h:95
DWORD sesi2_user_flags
Definition: lmshare.h:97
LPWSTR sesi502_transport
Definition: lmshare.h:114
DWORD sesi502_idle_time
Definition: lmshare.h:111
LPWSTR sesi502_cltype_name
Definition: lmshare.h:113
LPWSTR sesi502_cname
Definition: lmshare.h:107
DWORD sesi502_user_flags
Definition: lmshare.h:112
DWORD sesi502_time
Definition: lmshare.h:110
LPWSTR sesi502_username
Definition: lmshare.h:108
DWORD sesi502_num_opens
Definition: lmshare.h:109
LPTSTR shi0_netname
Definition: lmshare.h:44
LPTSTR shi1004_remark
Definition: lmshare.h:73
DWORD shi1006_max_uses
Definition: lmshare.h:76
DWORD shi1501_reserved
Definition: lmshare.h:79
PSECURITY_DESCRIPTOR shi1501_security_descriptor
Definition: lmshare.h:80
DWORD shi1_type
Definition: lmshare.h:47
LPTSTR shi1_remark
Definition: lmshare.h:48
LPTSTR shi1_netname
Definition: lmshare.h:46
LPTSTR shi2_passwd
Definition: lmshare.h:58
DWORD shi2_permissions
Definition: lmshare.h:54
LPTSTR shi2_remark
Definition: lmshare.h:53
LPTSTR shi2_path
Definition: lmshare.h:57
LPTSTR shi2_netname
Definition: lmshare.h:51
DWORD shi2_current_uses
Definition: lmshare.h:56
DWORD shi2_type
Definition: lmshare.h:52
DWORD shi2_max_uses
Definition: lmshare.h:55
LPTSTR shi502_path
Definition: lmshare.h:67
DWORD shi502_reserved
Definition: lmshare.h:69
LPTSTR shi502_remark
Definition: lmshare.h:63
DWORD shi502_max_uses
Definition: lmshare.h:65
DWORD shi502_type
Definition: lmshare.h:62
PSECURITY_DESCRIPTOR shi502_security_descriptor
Definition: lmshare.h:70
DWORD shi502_permissions
Definition: lmshare.h:64
LPTSTR shi502_passwd
Definition: lmshare.h:68
LPTSTR shi502_netname
Definition: lmshare.h:61
DWORD shi502_current_uses
Definition: lmshare.h:66
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
CHAR * LPTSTR
Definition: xmlstorage.h:192