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.

89 lines
2.9 KiB

  1. #ifndef _INC_ICWACCT_H
  2. #define _INC_ICWACCT_H
  3. #ifndef MAC
  4. #define EXTERNAL_DIALOGID_MINIMUM 2200
  5. #define EXTERNAL_DIALOGID_MAXIMUM 3000
  6. #include <prsht.h>
  7. typedef enum
  8. {
  9. CANCEL_PROMPT = 0,
  10. CANCEL_SILENT,
  11. CANCEL_REBOOT
  12. } CANCELTYPE;
  13. // {796AD8F0-B2B7-11d0-8D69-00A0C9A06E1F}
  14. DEFINE_GUID(IID_IICWExtension, 0x796ad8f0, 0xb2b7, 0x11d0, 0x8d, 0x69, 0x0, 0xa0, 0xc9, 0xa0, 0x6e, 0x1f);
  15. interface IICWExtension : public IUnknown
  16. {
  17. public:
  18. virtual BOOL STDMETHODCALLTYPE AddExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID) = 0;
  19. virtual BOOL STDMETHODCALLTYPE RemoveExternalPage(HPROPSHEETPAGE hPage, UINT uDlgID) = 0;
  20. virtual BOOL STDMETHODCALLTYPE ExternalCancel(CANCELTYPE type) = 0;
  21. virtual BOOL STDMETHODCALLTYPE SetFirstLastPage(UINT uFirstPageDlgID, UINT uLastPageDlgID) = 0;
  22. };
  23. #ifndef WIN16
  24. typedef enum
  25. #else
  26. enum
  27. #endif
  28. {
  29. CONNECT_LAN = 0,
  30. CONNECT_MANUAL,
  31. CONNECT_RAS
  32. };
  33. typedef struct tagCONNECTINFO
  34. {
  35. DWORD cbSize;
  36. DWORD type;
  37. char szConnectoid[MAX_PATH];
  38. } CONNECTINFO;
  39. // IICWApprentice::Save error values
  40. #define ERR_MAIL_ACCT 0x0001
  41. #define ERR_NEWS_ACCT 0x0002
  42. #define ERR_DIRSERV_ACCT 0x0004
  43. // IICWApprentice::AddWizardPages flags
  44. #define WIZ_USE_WIZARD97 0x0008
  45. // {1438E820-B6D2-11D0-8D86-00C04FD6202B}
  46. DEFINE_GUID(IID_IICWApprentice, 0x1438E820L, 0xB6D2, 0x11D0, 0x8D, 0x86, 0x00, 0xC0, 0x4F, 0xD6, 0x20, 0x2B);
  47. interface IICWApprentice : public IUnknown
  48. {
  49. public:
  50. virtual HRESULT STDMETHODCALLTYPE Initialize(IICWExtension *pExt) = 0;
  51. virtual HRESULT STDMETHODCALLTYPE AddWizardPages(DWORD dwFlags) = 0;
  52. virtual HRESULT STDMETHODCALLTYPE GetConnectionInformation(CONNECTINFO *pInfo) = 0;
  53. virtual HRESULT STDMETHODCALLTYPE SetConnectionInformation(CONNECTINFO *pInfo) = 0;
  54. virtual HRESULT STDMETHODCALLTYPE Save(HWND hwnd, DWORD *pdwError) = 0;
  55. virtual HRESULT STDMETHODCALLTYPE SetPrevNextPage(UINT uPrevPageDlgID, UINT uNextPageDlgID) = 0;
  56. };
  57. // Athena's CLSID
  58. // {1438E821-B6D2-11D0-8D86-00C04FD6202B}
  59. DEFINE_GUID(CLSID_ApprenticeAcctMgr, 0x1438E821L, 0xB6D2, 0x11D0, 0x8D, 0x86, 0x00, 0xC0, 0x4F, 0xD6, 0x20, 0x2B);
  60. //ICW's CLSID
  61. // {8EE42293-C315-11d0-8D6F-00A0C9A06E1F}
  62. DEFINE_GUID(CLSID_ApprenticeICW, 0x8ee42293L, 0xc315, 0x11d0, 0x8d, 0x6f, 0x0, 0xa0, 0xc9, 0xa0, 0x6e, 0x1f);
  63. // flags for CreateAccountsFromFile
  64. #define CAFF_USE_AUTODIAL 0x0001
  65. #define CAFF_NO_SET_DEFAULT 0x0002
  66. #define CAFF_CURRENT_USER 0x0004
  67. HRESULT WINAPI CreateAccountsFromFile(LPSTR lpFile, DWORD dwFlags);
  68. typedef HRESULT (WINAPI *PFNCREATEACCOUNTSFROMFILE) (LPSTR, DWORD);
  69. HRESULT WINAPI CreateAccountsFromFileEx(LPSTR lpFile, CONNECTINFO *pci, DWORD dwFlags);
  70. typedef HRESULT (WINAPI *PFNCREATEACCOUNTSFROMFILEEX) (LPSTR, CONNECTINFO *, DWORD);
  71. #endif // !MAC
  72. #endif // _INC_ICWACCT_H