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.

110 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. cachedef.h
  5. Abstract:
  6. contains global data declerations.
  7. Author:
  8. Madan Appiah (madana) 12-Apr-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _GLOBAL_
  14. #define _GLOBAL_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //
  19. // global variables.
  20. //
  21. extern MEMORY *CacheHeap;
  22. //
  23. // svccom.cxx will #include this file with GLOBAL_DATA_ALLOCATE defined.
  24. // That will cause each of these variables to be allocated.
  25. //
  26. #ifdef GLOBAL_SVC_DATA_ALLOCATE
  27. #define EXTERN
  28. #else
  29. #define EXTERN extern
  30. #endif
  31. EXTERN BOOL GlobalSrvRegistered;
  32. EXTERN MEMORY *SvclocHeap;
  33. EXTERN EMBED_SERVER_INFO *GlobalSrvInfoObj;
  34. EXTERN CRITICAL_SECTION GlobalSvclocCritSect;
  35. EXTERN LPBYTE GlobalSrvRespMsg;
  36. EXTERN DWORD GlobalSrvRespMsgLength;
  37. EXTERN DWORD GlobalSrvAllotedRespMsgLen;
  38. EXTERN LPBYTE GlobalSrvRecvBuf;
  39. EXTERN DWORD GlobalSrvRecvBufLength;
  40. EXTERN CHAR GlobalComputerName[MAX_COMPUTERNAME_LENGTH + 1 + 1];
  41. //
  42. // additional CHAR for win95, GetComputerName on win95
  43. // expects 16 char buffer always.
  44. //
  45. //
  46. // winsock data.
  47. //
  48. EXTERN WSADATA GlobalWinsockStartupData;
  49. EXTERN BOOL GlobalWinsockStarted;
  50. EXTERN BOOL GlobalRNRRegistered;
  51. EXTERN HANDLE GlobalSrvListenThreadHandle;
  52. EXTERN GUID GlobalSapGuid;
  53. EXTERN fd_set GlobalSrvSockets;
  54. EXTERN HANDLE GlobalCliDiscoverThreadHandle;
  55. EXTERN LPBYTE GlobalCliQueryMsg;
  56. EXTERN DWORD GlobalCliQueryMsgLen;
  57. EXTERN fd_set GlobalCliSockets;
  58. EXTERN fd_set GlobalCliNBSockets;
  59. EXTERN SOCKET GlobalCliIpxSocket;
  60. EXTERN LIST_ENTRY GlobalCliQueryRespList;
  61. EXTERN HANDLE GlobalDiscoveryInProgressEvent;
  62. EXTERN time_t GlobalLastDiscoveryTime;
  63. EXTERN BYTE GlobalSapBroadcastAddress[];
  64. EXTERN DWORD GlobalPlatformType;
  65. EXTERN DWORD GlobalNumNBPendingRecvs;
  66. EXTERN NCB *GlobalNBPendingRecvs;
  67. EXTERN LIST_ENTRY GlobalWin31NBRespList;
  68. EXTERN DWORD GlobalWin31NumNBResps;
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif // _GLOBAL_