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.

58 lines
1.0 KiB

  1. #include "main.h"
  2. //
  3. // This file contains the tool's namespace and result pane items
  4. //
  5. //
  6. // Result pane items for the nodes with no result pane items
  7. //
  8. RESULTITEM g_Undefined[] =
  9. {
  10. { 1, 1, 0, 0, {0} }
  11. };
  12. //
  13. // Result pane items for the Samples node
  14. //
  15. RESULTITEM g_Samples[] =
  16. {
  17. { 2, 1, IDS_README, 4, {0} },
  18. { 3, 1, IDS_APPEAR, 7, {0} }
  19. };
  20. //
  21. // Namespace (scope) items
  22. //
  23. // Be sure to update NUM_NAMESPACE_ITEMS define in layout.h if you
  24. // add / remove from this array.
  25. //
  26. NAMESPACEITEM g_NameSpace[] =
  27. {
  28. { 0, -1, 0, 0, {0}, 0, g_Undefined, &NODEID_User }, // Root
  29. { 1, 0, IDS_SAMPLES, 0, {0}, 2, g_Samples, &NODEID_Samples }
  30. };
  31. BOOL InitNameSpace()
  32. {
  33. DWORD dwIndex;
  34. for (dwIndex = 1; dwIndex < NUM_NAMESPACE_ITEMS; dwIndex++)
  35. {
  36. LoadString (g_hInstance, g_NameSpace[dwIndex].iStringID,
  37. g_NameSpace[dwIndex].szDisplayName,
  38. MAX_DISPLAYNAME_SIZE);
  39. }
  40. return TRUE;
  41. }