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.

68 lines
1.5 KiB

  1. // Definition of constants that the exe and the dll both use.
  2. #define COMPUTERNAME "COMPUTERNAME"
  3. #define LOGSHARE_USER "idwuser"
  4. #define LOGSHARE_PW "idwuser"
  5. extern char * Days[];
  6. extern char * Months[];
  7. //
  8. // GlowBalls
  9. //
  10. TCHAR g_szServerShare[ MAX_PATH ];
  11. BOOL g_bServerOnline;
  12. #define NUM_SERVERS 6
  13. //
  14. // Struct Declarations
  15. //
  16. typedef struct _SERVERS {
  17. TCHAR szSvr [ MAX_PATH ];
  18. BOOL bOnline;
  19. DWORD dwTimeOut;
  20. DWORD dwNetStatus;
  21. } *LPSERVERS, SERVERS;
  22. //
  23. // For the DLL's WriteDataToFile
  24. //
  25. typedef struct _NT32_CMD_PARAMS {
  26. BOOL b_Upgrade;
  27. BOOL b_Cancel;
  28. BOOL b_CDrom;
  29. BOOL b_MsiInstall;
  30. DWORD dwRandomID;
  31. } *LPNT32_CMD_PARAMS, NT32_CMD_PARAMS;
  32. typedef void
  33. (*fnWriteData)
  34. (IN LPTSTR szFileName,
  35. IN LPTSTR szFrom,
  36. IN LPNT32_CMD_PARAMS lpCmdL
  37. );
  38. //
  39. // List of servers to search.
  40. //
  41. static NT32_CMD_PARAMS lpCmdFrom = {FALSE,FALSE,FALSE,FALSE,0};
  42. #define TIME_TIMEOUT 10
  43. static SERVERS s[NUM_SERVERS] = {
  44. {TEXT("\\\\ntcore2\\idwlog"), FALSE, -1,-1},
  45. {TEXT("\\\\hctpro\\idwlog"), FALSE, -1,-1},
  46. {TEXT("\\\\donkeykongjr\\idwlog"), FALSE, -1,-1},
  47. {TEXT("\\\\nothing\\idwlog"), FALSE, -1,-1},
  48. {TEXT("\\\\nothing\\idwlog"), FALSE, -1,-1},
  49. {TEXT("\\\\nothing\\idwlog"), FALSE, -1,-1},
  50. };
  51. //
  52. // Prototypes
  53. //
  54. BOOL ServerOnlineThread(IN LPTSTR szServerFile);
  55. BOOL IsServerOnline(IN LPTSTR szMachineName, IN LPTSTR szSpecifyShare);