/*++ Copyright (c) 1996 Microsoft Corporation Module Name: smbsvcp.h Abstract: This module defines the interfaces for SMB server engine attachment Author: Jin Huang (jinhuang) 11-Jul-1997 Revision History: --*/ #ifndef _SMBSVCP_ #define _SMBSVCP_ #ifdef __cplusplus extern "C" { #endif #include #include #include #ifdef __cplusplus } #endif // // Windows Headers // #include //#include // // C Runtime Header // #include #include #include #include #include #include #include #include #include #include #if defined(_NT4BACK_PORT) #include #else #include #endif #include #ifdef __cplusplus extern "C" { #endif #define SMBSVC_NO_VALUE (BYTE)-2 #define SMBSVC_STATUS_GOOD 0 #define SMBSVC_STATUS_MISMATCH 1 #define SMBSVC_STATUS_NOT_CONFIGURED 2 typedef struct _SMBSVC_KEY_LOOKUP { PWSTR KeyString; UINT Offset; CHAR BufferType; }SMBSVC_KEY_LOOKUP; typedef struct _SMBSVC_SHARES_ { LPTSTR ShareName; DWORD Status; PSECURITY_DESCRIPTOR pShareSD; struct _SMBSVC_SHARES_ *Next; } SMBSVC_SHARES, *PSMBSVC_SHARES; typedef struct _SMBSVC_SEC_INFO_ { BYTE EnableClientSecuritySignature; BYTE RequireClientSecuritySignature; BYTE EnablePlainTextPassword; BYTE RequireEnhancedChallengeResponse; BYTE SendNTResponseOnly; BYTE EnableAutoShare; BYTE EnableServerSecuritySignature; BYTE RequireServerSecuritySignature; BYTE RestrictNullSessionAccess; BYTE EnableForcedLogOff; DWORD AutoDisconnect; PWSTR NullSessionPipes; DWORD LengthPipes; // number of bytes PWSTR NullSessionShares; DWORD LengthShares; // number of bytes PSMBSVC_SHARES pShares; } SMBSVC_SEC_INFO, *PSMBSVC_SEC_INFO; SCESTATUS WINAPI SceSvcAttachmentConfig( IN PSCESVC_CALLBACK_INFO pSceInfo ); SCESTATUS WINAPI SceSvcAttachmentAnalyze( IN PSCESVC_CALLBACK_INFO pSceInfo ); SCESTATUS WINAPI SceSvcAttachmentUpdate( IN PSCESVC_CALLBACK_INFO pSceInfo, IN SCESVC_CONFIGURATION_INFO *ServiceInfo ); #ifdef __cplusplus } #endif #endif