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.

76 lines
1.4 KiB

  1. /*
  2. File: context.h
  3. Mechanisms to process contexts relevant to
  4. rasmontr.
  5. 3/02/99
  6. */
  7. #include "precomp.h"
  8. // Includes for the sub contexts
  9. //
  10. #include "rasip.h"
  11. #include "rasipx.h"
  12. #include "rasnbf.h"
  13. #include "rasat.h"
  14. #include "rasaaaa.h"
  15. NS_HELPER_ATTRIBUTES g_pSubContexts[] =
  16. {
  17. // Ip subcontext
  18. //
  19. {
  20. { RASIP_VERSION, 0 }, RASIP_GUID, RasIpStartHelper, NULL
  21. },
  22. // Ipx subcontext
  23. //
  24. {
  25. { RASIPX_VERSION, 0 }, RASIPX_GUID, RasIpxStartHelper, NULL
  26. },
  27. // Nbf subcontext
  28. //
  29. {
  30. { RASNBF_VERSION, 0 }, RASNBF_GUID, RasNbfStartHelper, NULL
  31. },
  32. // At (appletalk) subcontext
  33. //
  34. {
  35. { RASAT_VERSION, 0 }, RASAT_GUID, RasAtStartHelper, NULL
  36. },
  37. // Aaaa subcontext
  38. //
  39. {
  40. { RASAAAA_VERSION, 0 }, RASAAAA_GUID, RasAaaaStartHelper, NULL
  41. }
  42. };
  43. #define g_dwSubContextCount \
  44. (sizeof(g_pSubContexts) / sizeof(*g_pSubContexts))
  45. //
  46. // Installs all of the sub contexts provided
  47. // in this .dll (for example, "ras ip", "ras client", etc.)
  48. //
  49. DWORD
  50. RasContextInstallSubContexts()
  51. {
  52. DWORD dwErr = NO_ERROR, i;
  53. PNS_HELPER_ATTRIBUTES pCtx = NULL;
  54. for (i = 0, pCtx = g_pSubContexts; i < g_dwSubContextCount; i++, pCtx++)
  55. {
  56. // Initialize helper attributes
  57. //
  58. RegisterHelper( &g_RasmontrGuid, pCtx );
  59. }
  60. return dwErr;
  61. }