Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.4 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: cmsafenet.h
  4. //
  5. // Module: CMDIAL32.DLL AND CMSTP.EXE
  6. //
  7. // Synopsis: This header file contains the definitions to allow Connection Manager to
  8. // interact with the SafeNet downlevel L2TP/IPSec client.
  9. //
  10. // Copyright (c) 2001 Microsoft Corporation
  11. //
  12. // Author: quintinb created 09/10/01
  13. //
  14. //+----------------------------------------------------------------------------
  15. #include "snpolicy.h"
  16. //
  17. // Typedefs and Structure for linkage to the SafeNet configuration APIs
  18. //
  19. typedef BOOL (__cdecl *pfnSnPolicyApiNegotiateVersionSpec)(DWORD *, DWORD *, POLICY_FUNCS *);
  20. typedef BOOL (__cdecl *pfnSnPolicySetSpec)(LPCTSTR szAttrId, const void *pvData);
  21. typedef BOOL (__cdecl *pfnSnPolicyGetSpec)(LPCTSTR szAttrId, const void *pvData, DWORD *pcbData);
  22. typedef BOOL (__cdecl *pfnSnPolicyReloadSpec)(void);
  23. typedef struct _SafeNetLinkageStruct {
  24. HMODULE hSnPolicy;
  25. pfnSnPolicySetSpec pfnSnPolicySet;
  26. pfnSnPolicyGetSpec pfnSnPolicyGet;
  27. pfnSnPolicyReloadSpec pfnSnPolicyReload;
  28. } SafeNetLinkageStruct;
  29. BOOL IsSafeNetClientAvailable(void);
  30. BOOL LinkToSafeNet(SafeNetLinkageStruct* pSnLinkage);
  31. void UnLinkFromSafeNet(SafeNetLinkageStruct* pSnLinkage);
  32. LPTSTR GetPathToSafeNetLogFile(void);
  33. //
  34. // String constants
  35. //
  36. const TCHAR* const c_pszSafeNetAdapterName_Win9x_old = TEXT("SafeNet_VPN 1"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...
  37. const TCHAR* const c_pszSafeNetAdapterType_Win9x_old = TEXT("VPN"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...
  38. const TCHAR* const c_pszSafeNetAdapterName_Winnt4_old = TEXT("SafeNet_VPN"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...
  39. const TCHAR* const c_pszSafeNetAdapterType_Winnt4_old = TEXT("L2TP"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...
  40. const TCHAR* const c_pszSafeNetAdapterName_Win9x = TEXT("Microsoft L2TP/IPSec VPN adapter"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...
  41. const TCHAR* const c_pszSafeNetAdapterName_Winnt4 = TEXT("RASL2TPM"); // BUGBUG: this needs to be updated to the real name and the 1 removed or dealt with appropriately...