#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
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 */
/* 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;
#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
* 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;
* the response was already
* sent.
*/
-#define SMB_MAX_PATH 256 /* max path length */
+#define SMB_MAX_PATH 260 /* max path length */
/* prototypes */
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