Hans Leidekker : include: Add some missing defines.
Alexandre Julliard
julliard at winehq.org
Wed Nov 13 13:34:40 CST 2013
Module: wine
Branch: master
Commit: d75dbbc00553e9024ff7a17bf1e22561631ffb88
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d75dbbc00553e9024ff7a17bf1e22561631ffb88
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Nov 13 15:33:51 2013 +0100
include: Add some missing defines.
---
include/lmaccess.h | 11 +++++++++++
include/lmshare.h | 24 ++++++++++++++++++++++++
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/include/lmaccess.h b/include/lmaccess.h
index 03bd504..5042f04 100644
--- a/include/lmaccess.h
+++ b/include/lmaccess.h
@@ -27,6 +27,17 @@ extern "C" {
#include <lmcons.h>
+#define ACCESS_NONE 0x0000
+#define ACCESS_READ 0x0001
+#define ACCESS_WRITE 0x0002
+#define ACCESS_CREATE 0x0004
+#define ACCESS_EXEC 0x0008
+#define ACCESS_DELETE 0x0010
+#define ACCESS_ATRIB 0x0020
+#define ACCESS_PERM 0x0040
+#define ACCESS_GROUP 0x8000
+#define ACCESS_ALL (ACCESS_READ|ACCESS_WRITE|ACCESS_CREATE|ACCESS_EXEC|ACCESS_DELETE|ACCESS_ATRIB|ACCESS_PERM)
+
#define UF_SCRIPT 0x000001
#define UF_ACCOUNTDISABLE 0x000002
#define UF_HOMEDIR_REQUIRED 0x000008
diff --git a/include/lmshare.h b/include/lmshare.h
index def3f13..442cf5e 100644
--- a/include/lmshare.h
+++ b/include/lmshare.h
@@ -34,6 +34,30 @@ typedef struct _SHARE_INFO_1 {
LMSTR shi1_remark;
} SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;
+typedef struct _SHARE_INFO_2 {
+ LMSTR shi2_netname;
+ DWORD shi2_type;
+ LMSTR shi2_remark;
+ DWORD shi2_permissions;
+ DWORD shi2_max_uses;
+ DWORD shi2_current_uses;
+ LMSTR shi2_path;
+ LMSTR shi2_passwd;
+} SHARE_INFO_2, *PSHARE_INFO_2, *LPSHARE_INFO_2;
+
+typedef struct _SHARE_INFO_502 {
+ LMSTR shi502_netname;
+ DWORD shi502_type;
+ LMSTR shi502_remark;
+ DWORD shi502_permissions;
+ DWORD shi502_max_uses;
+ DWORD shi502_current_uses;
+ LMSTR shi502_path;
+ LMSTR shi502_passwd;
+ DWORD shi502_reserved;
+ PSECURITY_DESCRIPTOR shi502_security_descriptor;
+} SHARE_INFO_502, *PSHARE_INFO_502, *LPSHARE_INFO_502;
+
NET_API_STATUS WINAPI NetShareAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
NET_API_STATUS WINAPI NetShareCheck(LMSTR,LMSTR,LPDWORD);
NET_API_STATUS WINAPI NetShareDel(LMSTR,LMSTR,DWORD);
More information about the wine-cvs
mailing list