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.

61 lines
981 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. routing\netsh\if\ip\context.c
  5. Abstract:
  6. If subcontexts.
  7. Revision History:
  8. lokeshs
  9. --*/
  10. #include "precomp.h"
  11. // Includes for the sub contexts
  12. //
  13. #include "ifip.h"
  14. NS_HELPER_ATTRIBUTES g_pSubContexts[] =
  15. {
  16. // Ip subcontext
  17. //
  18. {
  19. { IFIP_VERSION, 0 }, IFIP_GUID, IfIpStartHelper, NULL
  20. },
  21. };
  22. #define g_dwSubContextCount \
  23. (sizeof(g_pSubContexts) / sizeof(*g_pSubContexts))
  24. //
  25. // Installs all of the sub contexts provided
  26. // in this .dll (for example, "if ip", and any new ones.)
  27. //
  28. DWORD
  29. IfContextInstallSubContexts(
  30. )
  31. {
  32. DWORD dwErr = NO_ERROR, i;
  33. PNS_HELPER_ATTRIBUTES pCtx = NULL;
  34. for (i = 0, pCtx = g_pSubContexts; i < g_dwSubContextCount; i++, pCtx++)
  35. {
  36. // Initialize helper attributes
  37. //
  38. RegisterHelper( &g_IfGuid, pCtx );
  39. }
  40. return dwErr;
  41. }