Source code of Windows XP (NT5)
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.

54 lines
1.2 KiB

  1. /* ----------------------------------------------------------------------
  2. Module: ULS.DLL (Service Provider)
  3. File: spserver.h
  4. Content: This file contains the help functions for the service provider.
  5. History:
  6. 10/15/96 Chu, Lon-Chan [lonchanc]
  7. Created.
  8. Copyright (c) Microsoft Corporation 1996-1997
  9. ---------------------------------------------------------------------- */
  10. #ifndef _ILS_SP_SERVER_H_
  11. #define _ILS_SP_SERVER_H_
  12. #include <pshpack8.h>
  13. typedef struct
  14. {
  15. ULONG uTimeoutInSecond;
  16. ILS_ENUM_AUTH_METHOD AuthMethod;
  17. TCHAR *pszServerName;
  18. TCHAR *pszLogonName;
  19. TCHAR *pszLogonPassword;
  20. TCHAR *pszDomain;
  21. TCHAR *pszCredential;
  22. TCHAR *pszBaseDN;
  23. }
  24. SERVER_INFO;
  25. BOOL IlsSameServerInfo ( const SERVER_INFO *p1, const SERVER_INFO *p2 );
  26. HRESULT IlsCopyServerInfo ( SERVER_INFO *pDst, const SERVER_INFO *pSrc );
  27. VOID IlsFreeServerInfo ( SERVER_INFO *psi );
  28. ULONG IlsGetLinearServerInfoSize ( const SERVER_INFO *psi );
  29. VOID IlsLinearizeServerInfo ( BYTE *pData, const SERVER_INFO *pSrc );
  30. HRESULT IlsFillDefServerInfo ( SERVER_INFO *p, TCHAR *pszServerName );
  31. inline BOOL MyIsBadServerInfo ( SERVER_INFO *p )
  32. {
  33. return (p == NULL || MyIsBadString (p->pszServerName));
  34. }
  35. #include <poppack.h>
  36. #endif // _ILS_SP_SERVER_H_