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.

88 lines
4.0 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: I S D N S H T S . H
  7. //
  8. // Contents: Prototypes for the ISDN property sheets and wizard pages
  9. // dialog procs
  10. //
  11. // Notes:
  12. //
  13. // Author: jeffspr 15 Jun 1997
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #ifndef _ISDNSHTS_H_
  18. #define _ISDNSHTS_H_
  19. //---[ Prototypes ]-----------------------------------------------------------
  20. VOID SetSwitchType(HWND hwndDlg, INT iItemSwitchType, DWORD dwSwitchType);
  21. DWORD DwGetSwitchType(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci,
  22. INT iDialogItem);
  23. VOID PopulateIsdnSwitchTypes(HWND hwndDlg, INT iDialogItem,
  24. PISDN_CONFIG_INFO pisdnci);
  25. DWORD DwGetCurrentCountryCode(VOID);
  26. BOOL FIsDefaultForLocale(DWORD nCountry, DWORD dwSwitchType);
  27. VOID PopulateIsdnChannels(HWND hwndDlg, INT iSpidControl, INT iPhoneControl,
  28. INT iLineLB, INT iChannelLB,
  29. PISDN_CONFIG_INFO pisdnci);
  30. LONG OnIsdnInfoPageSetActive(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  31. VOID OnIsdnSwitchTypeInit(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  32. VOID OnIsdnInfoPageInit(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  33. VOID SetModifiedIsdnChannelInfo(HWND hwndDlg, INT iSpidControl,
  34. INT iPhoneControl, INT iChannelLB,
  35. INT iCurrentChannel,
  36. PISDN_CONFIG_INFO pisdnci);
  37. VOID RetrieveIsdnChannelInfo(HWND hwndDlg, INT iSpidControl, INT iPhoneControl,
  38. INT iChannelLB, PISDN_CONFIG_INFO pisdnci,
  39. DWORD dwDChannel, INT iCurrentChannel);
  40. VOID OnIsdnInfoPageApply(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  41. VOID OnIsdnInfoPageWizNext(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  42. VOID OnIsdnInfoPageWizFinish(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  43. VOID OnIsdnInfoPageWizBack(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  44. VOID OnIsdnInfoPageTransition(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  45. VOID SetCurrentIsdnChannelSelection(HWND hwndDlg, INT iSpidControl,
  46. INT iPhoneControl, INT iChannelLB,
  47. PISDN_CONFIG_INFO pisdnci,
  48. DWORD dwDChannel, INT * nBChannel);
  49. VOID SetDataToEditControls(HWND hwndDlg, INT iPhoneControl, INT iSpidControl,
  50. PISDN_CONFIG_INFO pisdnci, PISDN_B_CHANNEL pisdnbc);
  51. VOID GetDataFromEditControls(HWND hwndDlg, INT iPhoneControl, INT iSpidControl,
  52. PISDN_CONFIG_INFO pisdnci,
  53. PISDN_B_CHANNEL pisdnbc);
  54. LONG OnIsdnSwitchTypeSetActive(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  55. VOID OnIsdnSwitchTypeWizNext(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  56. VOID OnIsdnInfoPageSelChange(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  57. INT_PTR CALLBACK
  58. IsdnInfoPageProc(HWND hDlg, UINT uMessage, WPARAM wparam, LPARAM lparam);
  59. INT_PTR CALLBACK
  60. IsdnSwitchTypeProc(HWND hwndDlg, UINT uMessage, WPARAM wparam, LPARAM lparam);
  61. VOID OnMsnPageSelChange(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  62. VOID SetDataToListBox(INT iItem, HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  63. VOID GetDataFromListBox(INT iItem, HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  64. VOID OnMsnPageAdd(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  65. VOID OnMsnPageRemove(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  66. VOID OnMsnPageEditSelChange(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  67. VOID OnMsnPageInitDialog(HWND hwndDlg, PISDN_CONFIG_INFO pisdnci);
  68. VOID CheckShowPagesFlag(PISDN_CONFIG_INFO pisdnci);
  69. UINT CALLBACK DestroyWizardData(HWND hwnd, UINT uMsg, LPPROPSHEETPAGE ppsp);
  70. struct PAGE_DATA
  71. {
  72. PISDN_CONFIG_INFO pisdnci;
  73. UINT idd;
  74. };
  75. const INT c_cchMaxSpid = 20; // Maximum length of SPID
  76. const INT c_cchMaxOther = 30; // Maximum length of other fields
  77. #endif // _ISDNSHTS_H_