/src/rt/release.sh: avoid requiring another MSys install
[msysgit.git] / include / lmshare.h
blob326ad8575a883168e29ccfd1c62269a5033e6728
1 #ifndef _LMSHARE_H
2 #define _LMSHARE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 #include <lmcons.h>
7 #define SHARE_NETNAME_PARMNUM 1
8 #define SHARE_TYPE_PARMNUM 3
9 #define SHARE_REMARK_PARMNUM 4
10 #define SHARE_PERMISSIONS_PARMNUM 5
11 #define SHARE_MAX_USES_PARMNUM 6
12 #define SHARE_CURRENT_USES_PARMNUM 7
13 #define SHARE_PATH_PARMNUM 8
14 #define SHARE_PASSWD_PARMNUM 9
15 #define SHARE_FILE_SD_PARMNUM 501
16 #define SHARE_REMARK_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_REMARK_PARMNUM)
17 #define SHARE_MAX_USES_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_MAX_USES_PARMNUM)
18 #define SHARE_FILE_SD_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+SHARE_FILE_SD_PARMNUM)
19 #define SHI1_NUM_ELEMENTS 4
20 #define SHI2_NUM_ELEMENTS 10
21 #define STYPE_DISKTREE 0
22 #define STYPE_PRINTQ 1
23 #define STYPE_DEVICE 2
24 #define STYPE_IPC 3
25 #define STYPE_DFS 100
26 #define STYPE_SPECIAL 0x80000000
27 #define SHI_USES_UNLIMITED (DWORD)(-1)
28 #define SESS_GUEST 1
29 #define SESS_NOENCRYPTION 2
30 #define SESI1_NUM_ELEMENTS 8
31 #define SESI2_NUM_ELEMENTS 9
32 #define PERM_FILE_READ 1
33 #define PERM_FILE_WRITE 2
34 #define PERM_FILE_CREATE 4
35 typedef struct _FILE_INFO_2 { DWORD fi2_id;} FILE_INFO_2,*PFILE_INFO_2,*LPFILE_INFO_2;
36 typedef struct _FILE_INFO_3 {
37 DWORD fi3_id;
38 DWORD fi3_permissions;
39 DWORD fi3_num_locks;
40 LPTSTR fi3_pathname;
41 LPTSTR fi3_username;
42 } FILE_INFO_3,*PFILE_INFO_3,*LPFILE_INFO_3;
43 typedef struct _SHARE_INFO_0 { LPTSTR shi0_netname; } SHARE_INFO_0,*PSHARE_INFO_0,*LPSHARE_INFO_0;
44 typedef struct _SHARE_INFO_1 {
45 LPTSTR shi1_netname;
46 DWORD shi1_type;
47 LPTSTR shi1_remark;
48 } SHARE_INFO_1,*PSHARE_INFO_1,*LPSHARE_INFO_1;
49 typedef struct _SHARE_INFO_2 {
50 LPTSTR shi2_netname;
51 DWORD shi2_type;
52 LPTSTR shi2_remark;
53 DWORD shi2_permissions;
54 DWORD shi2_max_uses;
55 DWORD shi2_current_uses;
56 LPTSTR shi2_path;
57 LPTSTR shi2_passwd;
58 } SHARE_INFO_2,*PSHARE_INFO_2,*LPSHARE_INFO_2;
59 typedef struct _SHARE_INFO_502 {
60 LPTSTR shi502_netname;
61 DWORD shi502_type;
62 LPTSTR shi502_remark;
63 DWORD shi502_permissions;
64 DWORD shi502_max_uses;
65 DWORD shi502_current_uses;
66 LPTSTR shi502_path;
67 LPTSTR shi502_passwd;
68 DWORD shi502_reserved;
69 PSECURITY_DESCRIPTOR shi502_security_descriptor;
70 } SHARE_INFO_502,*PSHARE_INFO_502,*LPSHARE_INFO_502;
71 typedef struct _SHARE_INFO_1004 {
72 LPTSTR shi1004_remark;
73 } SHARE_INFO_1004,*PSHARE_INFO_1004,*LPSHARE_INFO_1004;
74 typedef struct _SHARE_INFO_1006 {
75 DWORD shi1006_max_uses;
76 } SHARE_INFO_1006,*PSHARE_INFO_1006,*LPSHARE_INFO_1006;
77 typedef struct _SHARE_INFO_1501 {
78 DWORD shi1501_reserved;
79 PSECURITY_DESCRIPTOR shi1501_security_descriptor;
80 } SHARE_INFO_1501,*PSHARE_INFO_1501,*LPSHARE_INFO_1501;
81 typedef struct _SESSION_INFO_0 { LPWSTR sesi0_cname; } SESSION_INFO_0,*PSESSION_INFO_0,*LPSESSION_INFO_0;
82 typedef struct _SESSION_INFO_1 {
83 LPTSTR sesi1_cname;
84 LPTSTR sesi1_username;
85 DWORD sesi1_num_opens;
86 DWORD sesi1_time;
87 DWORD sesi1_idle_time;
88 DWORD sesi1_user_flags;
89 } SESSION_INFO_1,*PSESSION_INFO_1,*LPSESSION_INFO_1;
90 typedef struct _SESSION_INFO_2 {
91 LPTSTR sesi2_cname;
92 LPTSTR sesi2_username;
93 DWORD sesi2_num_opens;
94 DWORD sesi2_time;
95 DWORD sesi2_idle_time;
96 DWORD sesi2_user_flags;
97 LPWSTR sesi2_cltype_name;
98 } SESSION_INFO_2,*PSESSION_INFO_2,*LPSESSION_INFO_2;
99 typedef struct _SESSION_INFO_10 {
100 LPWSTR sesi10_cname;
101 LPWSTR sesi10_username;
102 DWORD sesi10_time;
103 DWORD sesi10_idle_time;
104 } SESSION_INFO_10,*PSESSION_INFO_10,*LPSESSION_INFO_10;
105 typedef struct _SESSION_INFO_502 {
106 LPWSTR sesi502_cname;
107 LPWSTR sesi502_username;
108 DWORD sesi502_num_opens;
109 DWORD sesi502_time;
110 DWORD sesi502_idle_time;
111 DWORD sesi502_user_flags;
112 LPWSTR sesi502_cltype_name;
113 LPWSTR sesi502_transport;
114 } SESSION_INFO_502,*PSESSION_INFO_502,*LPSESSION_INFO_502;
115 typedef struct _CONNECTION_INFO_0 { DWORD coni0_id; } CONNECTION_INFO_0,*PCONNECTION_INFO_0,*LPCONNECTION_INFO_0;
116 typedef struct _CONNECTION_INFO_1 {
117 DWORD coni1_id;
118 DWORD coni1_type;
119 DWORD coni1_num_opens;
120 DWORD coni1_num_users;
121 DWORD coni1_time;
122 LPWSTR coni1_username;
123 LPWSTR coni1_netname;
124 } CONNECTION_INFO_1,*PCONNECTION_INFO_1,*LPCONNECTION_INFO_1;
125 NET_API_STATUS WINAPI NetShareAdd(LPWSTR,DWORD,PBYTE,PDWORD);
126 NET_API_STATUS WINAPI NetShareEnum(LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
127 NET_API_STATUS WINAPI NetShareEnumSticky(LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD resume_handle);
128 NET_API_STATUS WINAPI NetShareGetInfo(LPWSTR,LPWSTR,DWORD,PBYTE*);
129 NET_API_STATUS WINAPI NetShareSetInfo(LPWSTR,LPWSTR,DWORD,PBYTE,PDWORD);
130 NET_API_STATUS WINAPI NetShareDel(LPWSTR,LPWSTR,DWORD);
131 NET_API_STATUS WINAPI NetShareDelSticky(LPWSTR,LPWSTR,DWORD);
132 NET_API_STATUS WINAPI NetShareCheck(LPWSTR,LPWSTR,PDWORD);
133 NET_API_STATUS WINAPI NetSessionEnum(LPWSTR,LPWSTR,LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
134 NET_API_STATUS WINAPI NetSessionDel(LPWSTR,LPWSTR,LPWSTR);
135 NET_API_STATUS WINAPI NetSessionGetInfo(LPWSTR,LPWSTR,LPWSTR,DWORD,PBYTE*);
136 NET_API_STATUS WINAPI NetConnectionEnum(LPWSTR,LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
137 NET_API_STATUS WINAPI NetFileClose(LPWSTR,DWORD);
138 NET_API_STATUS WINAPI NetFileEnum(LPWSTR,LPWSTR,LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
139 NET_API_STATUS WINAPI NetFileGetInfo(LPWSTR,DWORD,DWORD,PBYTE*);
140 #ifdef __cplusplus
142 #endif
143 #endif