ReactOS  0.4.15-dev-1384-g878186b
lmshare.h
Go to the documentation of this file.
1 #ifndef _LMSHARE_H
2 #define _LMSHARE_H
3 
4 #ifdef __cplusplus
5 extern "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
37 typedef struct _FILE_INFO_3 {
45 typedef struct _SHARE_INFO_1 {
50 typedef struct _SHARE_INFO_2 {
60 typedef struct _SHARE_INFO_502 {
72 typedef struct _SHARE_INFO_1004 {
75 typedef struct _SHARE_INFO_1006 {
78 typedef struct _SHARE_INFO_1501 {
83 typedef struct _SESSION_INFO_1 {
91 typedef struct _SESSION_INFO_2 {
100 typedef struct _SESSION_INFO_10 {
106 typedef struct _SESSION_INFO_502 {
117 typedef struct _CONNECTION_INFO_1 {
126 
136 
140 
145 #ifdef __cplusplus
146 }
147 #endif
148 #endif
struct _SHARE_INFO_1501 * LPSHARE_INFO_1501
NET_API_STATUS WINAPI NetShareEnumSticky(LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
struct _SESSION_INFO_1 * LPSESSION_INFO_1
struct _SESSION_INFO_502 * PSESSION_INFO_502
LPTSTR shi1004_remark
Definition: lmshare.h:73
struct _CONNECTION_INFO_1 * LPCONNECTION_INFO_1
WCHAR * LMSTR
Definition: ms-dtyp.idl:119
DWORD sesi502_idle_time
Definition: lmshare.h:111
DWORD shi2_type
Definition: lmshare.h:52
DWORD sesi1_idle_time
Definition: lmshare.h:88
struct _SESSION_INFO_10 * LPSESSION_INFO_10
DWORD fi3_id
Definition: lmshare.h:38
struct _CONNECTION_INFO_1 * PCONNECTION_INFO_1
DWORD sesi2_user_flags
Definition: lmshare.h:97
LPWSTR sesi502_transport
Definition: lmshare.h:114
LPTSTR shi502_passwd
Definition: lmshare.h:68
DWORD fi2_id
Definition: lmshare.h:36
LPTSTR shi2_netname
Definition: lmshare.h:51
DWORD coni1_num_opens
Definition: lmshare.h:120
LPTSTR shi2_path
Definition: lmshare.h:57
LPWSTR sesi10_cname
Definition: lmshare.h:101
DWORD sesi502_user_flags
Definition: lmshare.h:112
DWORD shi2_current_uses
Definition: lmshare.h:56
struct _CONNECTION_INFO_0 CONNECTION_INFO_0
struct _SHARE_INFO_1004 SHARE_INFO_1004
struct _FILE_INFO_3 FILE_INFO_3
DWORD sesi2_num_opens
Definition: lmshare.h:94
struct _SHARE_INFO_1501 * PSHARE_INFO_1501
struct _SHARE_INFO_2 * LPSHARE_INFO_2
struct _SESSION_INFO_0 * PSESSION_INFO_0
DWORD shi502_permissions
Definition: lmshare.h:64
LPWSTR coni1_username
Definition: lmshare.h:123
struct _SESSION_INFO_502 * LPSESSION_INFO_502
struct _SHARE_INFO_0 * LPSHARE_INFO_0
NET_API_STATUS WINAPI NetShareDelEx(LMSTR, DWORD, LPBYTE)
PSECURITY_DESCRIPTOR shi502_security_descriptor
Definition: lmshare.h:70
NET_API_STATUS WINAPI NetFileGetInfo(LPWSTR, DWORD, DWORD, PBYTE *)
NET_API_STATUS WINAPI NetFileClose(LPWSTR, DWORD)
struct _SHARE_INFO_1 SHARE_INFO_1
struct _SHARE_INFO_0 SHARE_INFO_0
LPTSTR fi3_username
Definition: lmshare.h:42
struct _SESSION_INFO_0 SESSION_INFO_0
LPTSTR fi3_pathname
Definition: lmshare.h:41
CHAR * LPTSTR
Definition: xmlstorage.h:192
DWORD sesi10_time
Definition: lmshare.h:103
struct _SHARE_INFO_1 * LPSHARE_INFO_1
LPWSTR sesi10_username
Definition: lmshare.h:102
struct _SHARE_INFO_502 SHARE_INFO_502
NET_API_STATUS WINAPI NetConnectionEnum(LPWSTR, LPWSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD)
unsigned char * LPBYTE
Definition: typedefs.h:53
LPTSTR sesi2_cname
Definition: lmshare.h:92
struct _SESSION_INFO_2 SESSION_INFO_2
struct _SHARE_INFO_1006 SHARE_INFO_1006
LPTSTR sesi1_cname
Definition: lmshare.h:84
LPTSTR shi2_remark
Definition: lmshare.h:53
LPWSTR sesi0_cname
Definition: lmshare.h:82
LPWSTR coni1_netname
Definition: lmshare.h:124
PSECURITY_DESCRIPTOR shi1501_security_descriptor
Definition: lmshare.h:80
DWORD shi502_current_uses
Definition: lmshare.h:66
DWORD fi3_num_locks
Definition: lmshare.h:40
struct _SESSION_INFO_1 * PSESSION_INFO_1
struct _SHARE_INFO_0 * PSHARE_INFO_0
struct _SESSION_INFO_10 * PSESSION_INFO_10
NET_API_STATUS WINAPI NetSessionEnum(LMSTR, LMSTR, LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
LPWSTR sesi2_cltype_name
Definition: lmshare.h:98
LPTSTR shi0_netname
Definition: lmshare.h:44
struct _SHARE_INFO_1006 * PSHARE_INFO_1006
struct _CONNECTION_INFO_0 * LPCONNECTION_INFO_0
struct _FILE_INFO_3 * LPFILE_INFO_3
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
DWORD shi2_permissions
Definition: lmshare.h:54
DWORD sesi1_num_opens
Definition: lmshare.h:86
struct _FILE_INFO_3 * PFILE_INFO_3
struct _SESSION_INFO_2 * PSESSION_INFO_2
DWORD shi502_reserved
Definition: lmshare.h:69
struct _FILE_INFO_2 * LPFILE_INFO_2
DWORD sesi502_num_opens
Definition: lmshare.h:109
struct _SHARE_INFO_1 * PSHARE_INFO_1
LPTSTR shi502_path
Definition: lmshare.h:67
struct _SHARE_INFO_1004 * PSHARE_INFO_1004
struct _SESSION_INFO_1 SESSION_INFO_1
#define WINAPI
Definition: msvc.h:6
struct _SHARE_INFO_1501 SHARE_INFO_1501
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG_PTR * PDWORD_PTR
Definition: basetsd.h:184
struct _CONNECTION_INFO_0 * PCONNECTION_INFO_0
NET_API_STATUS WINAPI NetShareDel(LMSTR, LMSTR, DWORD)
NET_API_STATUS WINAPI NetFileEnum(LMSTR, LMSTR, LMSTR, DWORD, PBYTE *, DWORD, PDWORD, PDWORD, PDWORD_PTR)
NET_API_STATUS WINAPI NetShareAdd(LMSTR, DWORD, LPBYTE, LPDWORD)
DWORD coni1_num_users
Definition: lmshare.h:121
DWORD sesi2_idle_time
Definition: lmshare.h:96
LPTSTR shi1_remark
Definition: lmshare.h:48
struct _FILE_INFO_2 * PFILE_INFO_2
LPWSTR sesi502_username
Definition: lmshare.h:108
struct _SHARE_INFO_1006 * LPSHARE_INFO_1006
NET_API_STATUS WINAPI NetShareDelSticky(LMSTR, LMSTR, DWORD)
struct _SESSION_INFO_10 SESSION_INFO_10
DWORD sesi10_idle_time
Definition: lmshare.h:104
NET_API_STATUS WINAPI NetSessionDel(LMSTR, LMSTR, LMSTR)
struct _SHARE_INFO_502 * PSHARE_INFO_502
struct _SHARE_INFO_2 * PSHARE_INFO_2
DWORD sesi502_time
Definition: lmshare.h:110
DWORD shi502_max_uses
Definition: lmshare.h:65
struct _SHARE_INFO_2 SHARE_INFO_2
DWORD shi1006_max_uses
Definition: lmshare.h:76
NET_API_STATUS WINAPI NetSessionGetInfo(LMSTR, LMSTR, LMSTR, DWORD, LPBYTE *)
DWORD shi1_type
Definition: lmshare.h:47
LPWSTR sesi502_cname
Definition: lmshare.h:107
LPTSTR shi1_netname
Definition: lmshare.h:46
DWORD * PDWORD
Definition: pedump.c:68
LPTSTR sesi2_username
Definition: lmshare.h:93
DWORD sesi1_time
Definition: lmshare.h:87
DWORD sesi2_time
Definition: lmshare.h:95
struct _SHARE_INFO_502 * LPSHARE_INFO_502
NET_API_STATUS WINAPI NetShareSetInfo(LMSTR, LMSTR, DWORD, LPBYTE, LPDWORD)
struct _CONNECTION_INFO_1 CONNECTION_INFO_1
DWORD fi3_permissions
Definition: lmshare.h:39
uint32_t * LPDWORD
Definition: typedefs.h:59
LPWSTR sesi502_cltype_name
Definition: lmshare.h:113
NET_API_STATUS WINAPI NetShareCheck(LMSTR, LMSTR, LPDWORD)
LPTSTR shi502_netname
Definition: lmshare.h:61
NET_API_STATUS WINAPI NetShareGetInfo(LMSTR, LMSTR, DWORD, LPBYTE *)
struct _SHARE_INFO_1004 * LPSHARE_INFO_1004
LPTSTR sesi1_username
Definition: lmshare.h:85
DWORD shi2_max_uses
Definition: lmshare.h:55
WCHAR * LPWSTR
Definition: xmlstorage.h:184
struct _SESSION_INFO_0 * LPSESSION_INFO_0
NET_API_STATUS WINAPI NetShareEnum(LMSTR, DWORD, LPBYTE *, DWORD, LPDWORD, LPDWORD, LPDWORD)
DWORD sesi1_user_flags
Definition: lmshare.h:89
LPTSTR shi502_remark
Definition: lmshare.h:63
LPTSTR shi2_passwd
Definition: lmshare.h:58
BYTE * PBYTE
Definition: pedump.c:66
struct _FILE_INFO_2 FILE_INFO_2
struct _SESSION_INFO_2 * LPSESSION_INFO_2
DWORD shi502_type
Definition: lmshare.h:62
DWORD shi1501_reserved
Definition: lmshare.h:79
struct _SESSION_INFO_502 SESSION_INFO_502