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.

67 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. All Rights Reserved
  4. Module Name:
  5. DynaMon.h
  6. Abstract:
  7. Definitons & Declarations for global info
  8. Author: M. Fenelon
  9. Revision History:
  10. --*/
  11. #include "DynaDefs.h"
  12. #include "BasePort.h"
  13. #ifndef DYNAMON_H
  14. #define DYNAMON_H
  15. typedef struct DynaMon_Port_Struct
  16. {
  17. DWORD dwSignature;
  18. struct DynaMon_Port_Struct *pNext;
  19. CBasePort* pBasePort;
  20. } DYNAMON_PORT, *PDYNAMON_PORT;
  21. typedef struct Port_Update_Struct
  22. {
  23. struct Port_Update_Struct* pNext;
  24. TCHAR szPortName[MAX_PORT_LEN];
  25. HKEY hKey;
  26. BOOL bActive;
  27. } PORT_UPDATE, *PPORT_UPDATE;
  28. typedef struct Useless_Port_Struct
  29. {
  30. struct Useless_Port_Struct* pNext;
  31. TCHAR szDevicePath[MAX_PATH];
  32. } USELESS_PORT, *PUSELESS_PORT;
  33. //
  34. // Global Data needed for Monitor
  35. //
  36. typedef struct DynaMon_Monitor_Info_Struct
  37. {
  38. DWORD dwLastEnumIndex;
  39. PDYNAMON_PORT pPortList;
  40. PUSELESS_PORT pJunkList;
  41. CRITICAL_SECTION EnumPortsCS,
  42. UpdateListCS;
  43. PPORT_UPDATE pUpdateList;
  44. HANDLE hUpdateEvent;
  45. } DYNAMON_MONITOR_INFO, *PDYNAMON_MONITOR_INFO;
  46. extern DYNAMON_MONITOR_INFO gDynaMonInfo;
  47. #endif