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.

75 lines
1.2 KiB

  1. #include "precomp.h"
  2. #pragma hdrstop
  3. /* File: progcm.c */
  4. /**************************************************************************/
  5. /* Install: Program Manager commands.
  6. /* Can create groups, delete groups, add/delete items to groups
  7. /**************************************************************************/
  8. BOOL
  9. FCreateProgManGroup(
  10. IN SZ szGroup,
  11. IN SZ szPath,
  12. IN CMO cmo,
  13. IN BOOL CommonGroup
  14. )
  15. {
  16. return ( CreateGroup(szGroup, CommonGroup) );
  17. }
  18. BOOL
  19. FRemoveProgManGroup(
  20. IN SZ szGroup,
  21. IN CMO cmo,
  22. IN BOOL CommonGroup
  23. )
  24. {
  25. return ( DeleteGroup(szGroup, CommonGroup) );
  26. }
  27. BOOL
  28. FShowProgManGroup(
  29. IN SZ szGroup,
  30. IN SZ szCommand,
  31. IN CMO cmo,
  32. IN BOOL CommonGroup
  33. )
  34. {
  35. return(fTrue);
  36. }
  37. BOOL
  38. FCreateProgManItem(
  39. IN SZ szGroup,
  40. IN SZ szItem,
  41. IN SZ szCmd,
  42. IN SZ szIconFile,
  43. IN INT nIconNum,
  44. IN CMO cmo,
  45. IN BOOL CommonGroup
  46. )
  47. {
  48. return ( AddItem(szGroup, CommonGroup, szItem, szCmd,
  49. szIconFile, nIconNum, NULL, 0, SW_SHOWNORMAL) );
  50. }
  51. BOOL
  52. FRemoveProgManItem(
  53. IN SZ szGroup,
  54. IN SZ szItem,
  55. IN CMO cmo,
  56. IN BOOL CommonGroup
  57. )
  58. {
  59. return ( DeleteItem(szGroup, CommonGroup, szItem, TRUE) );
  60. }