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.

86 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Filename:
  4. server.h
  5. Abstract:
  6. Header for server.cpp
  7. Author:
  8. Wally Ho (wallyho) 31-Jan-2000
  9. Revision History:
  10. Created
  11. --*/
  12. #ifndef SERVER_H
  13. #define SERVER_H
  14. #include <windows.h>
  15. static CONST DWORD TIME_TIMEOUT = 8;
  16. // Name and password used to so that if you are not in a domain we can
  17. // connect and get permissions to copy logs or information to our servers.
  18. static CONST LPTSTR LOGSHARE_USER = TEXT("idwuser");
  19. static CONST LPTSTR LOGSHARE_PW = TEXT("idwuser");
  20. // These are used for Setup logs.
  21. static CONST LPTSTR SETUPLOGS_MACH = TEXT("\\\\ntburnlab2");
  22. static CONST LPTSTR SETUPLOGS_USER = TEXT("ntburnlab2\\Setuplogs");
  23. static CONST LPTSTR SETUPLOGS_PW = TEXT("!csLogs");
  24. #define RTM
  25. // Struct Declarations
  26. typedef struct _SERVERS {
  27. TCHAR szSvr [ MAX_PATH ];
  28. BOOL bOnline;
  29. DWORD dwTimeOut;
  30. DWORD dwNetStatus;
  31. } *LPSERVERS, SERVERS;
  32. #ifdef RTM
  33. // #define NUM_SERVERS (sizeof(s) / sizeof(SERVERS))
  34. #define NUM_SERVERS 4
  35. static SERVERS g_ServerBlock[NUM_SERVERS] = {
  36. {TEXT("\\\\pnptriage\\idwlogWHSTL"), FALSE, -1,-1},
  37. {TEXT("\\\\nttriage\\idwlogWHSTL"), FALSE, -1,-1},
  38. {TEXT("\\\\taxman\\idwlogWHSTL"), FALSE, -1,-1},
  39. {TEXT("\\\\ntcore2\\idwlogWHSTL"), FALSE, -1,-1}
  40. };
  41. #else
  42. #define NUM_SERVERS 6
  43. static SERVERS g_ServerBlock[NUM_SERVERS] = {
  44. {TEXT("\\\\wallyho-dev\\idwlog"), FALSE, -1,-1},
  45. {TEXT("\\\\wallyho-dev\\idwlog"), FALSE, -1,-1},
  46. {TEXT("\\\\zoopa\\idwlog"), FALSE, -1,-1},
  47. {TEXT("\\\\nttriage\\idwlogWHSTL"), FALSE, -1,-1},
  48. {TEXT("\\\\ntpnpsrv\\idwlogWHSTL"), FALSE, -1,-1},
  49. {TEXT("\\\\idwlog\\idwlogTest"), FALSE, -1,-1}
  50. };
  51. #endif
  52. // Prototypes
  53. BOOL IsServerOnline(IN LPINSTALL_DATA pId, IN LPTSTR szSpecifyShare = NULL);
  54. //DWORD WINAPI ServerOnlineThread( IN LPTSTR szIdwlogServer);
  55. DWORD WINAPI ServerOnlineThread( IN LPSERVERS pServerBlock);
  56. VOID WhatErrorMessage (IN DWORD dwError);
  57. #endif