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.

64 lines
988 B

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. twkeng.h
  5. Abstract:
  6. Header file for public interface to kerntwk registry/UI engine
  7. Author:
  8. John Vert (jvert) 10-Mar-1995
  9. Revision History:
  10. --*/
  11. //
  12. // Define structure for a tweakable item (knob)
  13. //
  14. //
  15. // Valid flags
  16. //
  17. #define KNOB_NO_CURRENT_VALUE 0x0001
  18. #define KNOB_NO_NEW_VALUE 0x0002
  19. typedef struct _KNOB {
  20. HKEY RegistryRoot;
  21. LPTSTR KeyPath;
  22. LPTSTR ValueName;
  23. ULONG DialogId;
  24. ULONG Flags;
  25. ULONG CurrentValue;
  26. ULONG NewValue;
  27. } KNOB, *PKNOB;
  28. //
  29. // Define structure for a page. A page is basically an
  30. // array of pointers to knobs.
  31. //
  32. typedef BOOL (*DYNAMIC_CHANGE)(
  33. BOOL fInit,
  34. HWND hDlg
  35. );
  36. typedef struct _TWEAK_PAGE {
  37. LPCTSTR DlgTemplate;
  38. DYNAMIC_CHANGE DynamicChange;
  39. PKNOB Knobs[];
  40. } TWEAK_PAGE, *PTWEAK_PAGE;
  41. //
  42. // Define interface for creating property sheet.
  43. //
  44. int
  45. TweakSheet(
  46. DWORD PageCount,
  47. PTWEAK_PAGE Pages[]
  48. );