windows-smb-started-synchronization-20080108
[openafs.git] / src / WINNT / afsd / smb.h
index d1cb06a..f8f8980 100644 (file)
 #define __SMB_H_ENV__ 1
 
 #if _WIN32_WINNT < 0x0501
-#define AFS_WIN32_WINNT _WIN32_WINNT
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501
 #endif
 #include <ntsecapi.h>
-#ifdef AFS_WIN32_WINNT
-#undef _WIN32_WINNT
-#define _WIN32_WINNT AFS_WIN32_WINNT
-#undef AFS_WIN32_WINNT
-#endif
 
 /* Support largefiles by default */
 #define AFS_LARGEFILES
@@ -325,7 +319,7 @@ typedef struct smb_ioctl {
     char *inDatap;                     /* ioctl func's current position
                                         * in input parameter block */
     char *inAllocp;                    /* allocated input parameter block */
-    long inCopied;                     /* # of input bytes copied in so far
+    afs_uint32 inCopied;                       /* # of input bytes copied in so far
                                         * by write calls */
     cm_space_t *prefix;                        /* prefix for subst drives */
     char *tidPathp;                    /* Pathname associated with Tree ID */
@@ -333,11 +327,11 @@ typedef struct smb_ioctl {
     /* output side */
     char *outDatap;                    /* output results assembled so far */
     char *outAllocp;                   /* output results assembled so far */
-    long outCopied;                    /* # of output bytes copied back so far
+    afs_uint32 outCopied;              /* # of output bytes copied back so far
                                          * by read calls */
        
     /* flags */
-    long flags;
+    afs_uint32 flags;
 
     /* fid pointer */
     struct smb_fid *fidp;
@@ -397,6 +391,7 @@ typedef struct smb_fid {
 #define SMB_FID_NTOPEN                 0x100   /* have dscp and pathp */
 #define SMB_FID_SEQUENTIAL             0x200
 #define SMB_FID_RANDOM                 0x400
+#define SMB_FID_EXECUTABLE              0x800
 
 #define SMB_FID_SHARE_READ              0x1000
 #define SMB_FID_SHARE_WRITE             0x2000
@@ -452,6 +447,8 @@ typedef struct smb_dirSearch {
                                         * locked by smb_globalLock */
     unsigned short attribute;          /* search attribute
                                         * (used for extended protocol) */
+    char tidPath[256];                  /* tid path */
+    char relPath[1024];                 /* relative path */        
     char mask[256];                    /* search mask for V3 */
 } smb_dirSearch_t;
 
@@ -516,7 +513,7 @@ typedef struct smb_dispatch {
                                                 * the response was already
                                                 * sent.
                                                  */
-#define SMB_MAX_PATH                    256     /* max path length */
+#define SMB_MAX_PATH                    260     /* max path length */
 
 /* prototypes */
 
@@ -733,9 +730,13 @@ extern DWORD smb_ServerExceptionFilter(void);
 extern void smb_UpdateServerPriority(void);
 extern void smb_SetRequestStartTime(void);
 extern void smb_ResetServerPriority(void);
-extern void smb_RestartListeners(void);
-extern void smb_StopListeners(void);
+extern void smb_RestartListeners(int);
+extern void smb_StopListeners(int);
 extern void smb_StopListener(NCB *ncbp, int lana);
+extern long smb_IsNetworkStarted(void);
+extern void smb_LanAdapterChange(int);
+extern void smb_SetLanAdapterChangeDetected(void);
+
 
 #define SMB_LISTENER_UNINITIALIZED -1
 #define SMB_LISTENER_STOPPED 0