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.

85 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spmenu.h
  5. Abstract:
  6. Public header file for text setup menu support.
  7. Author:
  8. Ted Miller (tedm) 8-September-1993
  9. Revision History:
  10. --*/
  11. #ifndef _SPMENU_
  12. #define _SPMENU_
  13. //
  14. // Define type of routine that is called from within
  15. // SpMnDisplay when the user moves the highlight via
  16. // the up and down arrow keys.
  17. //
  18. typedef
  19. VOID
  20. (*PMENU_CALLBACK_ROUTINE) (
  21. IN ULONG_PTR UserDataOfHighlightedItem
  22. );
  23. PVOID
  24. SpMnCreate(
  25. IN ULONG LeftX,
  26. IN ULONG TopY,
  27. IN ULONG Width,
  28. IN ULONG Height
  29. );
  30. VOID
  31. SpMnDestroy(
  32. IN PVOID Menu
  33. );
  34. BOOLEAN
  35. SpMnAddItem(
  36. IN PVOID Menu,
  37. IN PWSTR Text,
  38. IN ULONG LeftX,
  39. IN ULONG Width,
  40. IN BOOLEAN Selectable,
  41. IN ULONG_PTR UserData
  42. );
  43. PWSTR
  44. SpMnGetText(
  45. IN PVOID Menu,
  46. IN ULONG_PTR UserData
  47. );
  48. PWSTR
  49. SpMnGetTextDup(
  50. IN PVOID Menu,
  51. IN ULONG_PTR UserData
  52. );
  53. VOID
  54. SpMnDisplay(
  55. IN PVOID Menu,
  56. IN ULONG_PTR UserDataOfHighlightedItem,
  57. IN BOOLEAN Framed,
  58. IN PULONG ValidKeys,
  59. IN PULONG Mnemonics, OPTIONAL
  60. IN PMENU_CALLBACK_ROUTINE NewHighlightCallback, OPTIONAL
  61. OUT PULONG KeyPressed,
  62. OUT PULONG_PTR UserDataOfSelectedItem
  63. );
  64. #endif // _SPMENU_