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.

89 lines
2.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2001.
  5. //
  6. // File: C M E V E N T . H
  7. //
  8. // Contents: Connection manager Event type declarations
  9. //
  10. // Notes:
  11. //
  12. // Author: ckotze 1 Mar 2001
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "nmbase.h"
  17. #include "nmres.h"
  18. #include <rasapip.h>
  19. enum CONMAN_MANAGER
  20. {
  21. INVALID_MANAGER = 0,
  22. CONMAN_INCOMING,
  23. CONMAN_LAN,
  24. CONMAN_RAS,
  25. };
  26. struct CONMAN_EVENT
  27. {
  28. CONMAN_EVENTTYPE Type;
  29. CONMAN_MANAGER ConnectionManager;
  30. union
  31. {
  32. // CONNECTION_ADDED
  33. // CONNECTION_MODIFIED
  34. RASENUMENTRYDETAILS Details;
  35. struct
  36. {
  37. NETCON_PROPERTIES* pProps; // ConnectionManager = CONMAN_RAS and CONMAN_LAN
  38. BYTE* pbPersistData; // ConnectionManager = CONMAN_RAS and EVENTTYPE = CONNECTION_ADDED
  39. ULONG cbPersistData; // ConnectionManager = CONMAN_RAS and EVENTTYPE = CONNECTION_ADDED
  40. };
  41. NETCON_PROPERTIES_EX* pPropsEx;
  42. // CONNECTION_DELETED
  43. GUID guidId;
  44. // INCOMING_CONNECTED
  45. // INCOMING_DISCONNECTED
  46. struct
  47. {
  48. GUID guidId; // ConnectionManager = CONMAN_INCOMING and type = INCOMING_CONNECTED/DISCONNECTED
  49. HANDLE hConnection; // ConnectionManager = CONMAN_INCOMING and EVENTYPE = CONNECTION_ADDED
  50. DWORD dwConnectionType;
  51. };
  52. // CONNECTION_RENAMED
  53. struct
  54. {
  55. GUID guidId;
  56. WCHAR szNewName [RASAPIP_MAX_ENTRY_NAME + 1];
  57. };
  58. // CONNECTION_STATUS_CHANGE
  59. struct
  60. {
  61. GUID guidId;
  62. NETCON_STATUS Status;
  63. };
  64. // CONNECTION_BALLOON_POPUP
  65. struct
  66. {
  67. GUID guidId;
  68. BSTR szCookie;
  69. BSTR szBalloonText;
  70. };
  71. // DISABLE_EVENTS
  72. struct
  73. {
  74. BOOL fDisable;
  75. ULONG ulDisableTimeout;
  76. };
  77. };
  78. };