#ifndef __SMB_H_ENV__
#define __SMB_H_ENV__ 1
+#if _WIN32_WINNT < 0x0501
+#undef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
#include <ntsecapi.h>
/* Support largefiles by default */
afs_uint32 delete; /* ok to del: locked by smb_rctLock */
} smb_fid_t;
-#define SMB_FID_OPENREAD 1 /* open for reading */
+#define SMB_FID_OPENREAD_LISTDIR 1 /* open for reading / listing directory */
#define SMB_FID_OPENWRITE 2 /* open for writing */
#define SMB_FID_CREATED 4 /* a new file */
#define SMB_FID_IOCTL 8 /* a file descriptor for the
/* prototypes */
-extern void smb_Init(osi_log_t *logp, char *smbNamep, int useV3, int LANadapt,
+extern void smb_Init(osi_log_t *logp, int useV3,
int nThreads
, void *aMBfunc
);
extern void smb_RestartListeners(void);
extern void smb_StopListeners(void);
extern void smb_StopListener(NCB *ncbp, int lana);
+extern long smb_IsNetworkStarted(void);
#define SMB_LISTENER_UNINITIALIZED -1
#define SMB_LISTENER_STOPPED 0