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.

130 lines
2.9 KiB

  1. #ifndef _RASDLG_PREF_H
  2. #define _RASDLG_PREF_H
  3. #include "rasdlgp.h"
  4. #include <commdlg.h> // FileOpen dialog
  5. //
  6. // Defines flags the modify the behavior of the user preferences
  7. // dialog
  8. //
  9. #define UP_F_AutodialMode 0x1 // Come up with focus on autodial page
  10. // For whistler 460931, used in pref.c
  11. //
  12. #define UP_F_ShowOnlyDiagnostic 0x00000002
  13. /*----------------------------------------------------------------------------
  14. ** Local datatypes (alphabetically)
  15. **----------------------------------------------------------------------------
  16. */
  17. /* User Preferences property sheet argument block.
  18. */
  19. typedef struct tagUPARGS
  20. {
  21. /* Caller's arguments to the stub API.
  22. */
  23. HLINEAPP hlineapp;
  24. BOOL fIsUserAdmin;
  25. PBUSER* pUser;
  26. PBFILE** ppFile;
  27. /* Stub API return value.
  28. */
  29. BOOL fResult;
  30. /* Flags that provide more info see UP_F_* values
  31. */
  32. DWORD dwFlags;
  33. }UPARGS;
  34. /* User Preferences property sheet context block. All property pages refer to
  35. ** the single context block associated with the sheet.
  36. */
  37. typedef struct tagUPINFO
  38. {
  39. /* Stub API arguments from UpPropertySheet.
  40. */
  41. UPARGS* pArgs;
  42. /* TAPI session handle. Should always be addressed thru the pointer since
  43. ** the handle passed down from caller, if any, will be used instead of
  44. ** 'hlineapp'.
  45. */
  46. HLINEAPP hlineapp;
  47. HLINEAPP* pHlineapp;
  48. /* Property sheet dialog and property page handles. 'hwndFirstPage' is
  49. ** the handle of the first property page initialized. This is the page
  50. ** that allocates and frees the context block.
  51. */
  52. HWND hwndDlg;
  53. HWND hwndFirstPage;
  54. HWND hwndCo;
  55. HWND hwndGp;
  56. HWND hwndAd;
  57. HWND hwndCb;
  58. HWND hwndPl;
  59. HWND hwndDg; //For whistler 460931
  60. /* Auto-dial page.
  61. */
  62. HWND hwndLvEnable;
  63. HWND hwndEbAttempts;
  64. HWND hwndEbSeconds;
  65. HWND hwndEbIdle;
  66. BOOL fChecksInstalled;
  67. // Diagnostic page for whistler 460931
  68. //
  69. HWND hwndDgCbEnableDiagLog;
  70. HWND hwndDgPbClear;
  71. HWND hwndDgPbExport;
  72. BOOL fEnableLog;
  73. DiagnosticInfo diagInfo;
  74. BOOL fShowOnlyDiagnostic;
  75. /* Callback page.
  76. */
  77. HWND hwndRbNo;
  78. HWND hwndRbMaybe;
  79. HWND hwndRbYes;
  80. HWND hwndLvNumbers;
  81. HWND hwndPbEdit;
  82. HWND hwndPbDelete;
  83. /* Phone list page.
  84. */
  85. HWND hwndRbSystem;
  86. HWND hwndRbPersonal;
  87. HWND hwndRbAlternate;
  88. HWND hwndClbAlternates;
  89. HWND hwndPbBrowse;
  90. /* Working data read from and written to registry with phonebook library.
  91. */
  92. PBUSER user; // Current user
  93. PBUSER userLogon; // Logon preferences
  94. }UPINFO;
  95. UPINFO*
  96. UpContext(
  97. IN HWND hwndPage );
  98. VOID
  99. UpExitInit(
  100. IN HWND hwndDlg );
  101. DWORD
  102. APIENTRY
  103. RasUserPrefDiagOnly (
  104. HWND hwndParent,
  105. BOOL * pbCommit);
  106. #endif