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.

181 lines
6.0 KiB

  1. // Only include this stuff once
  2. #ifndef __WMSUIX_H__
  3. #define __WMSUIX_H__
  4. // Progress stuff pulled out to allow this header to be included in Local Rep
  5. // Standard progress dialog functions
  6. typedef struct _stdprog
  7. {
  8. // IN parameters
  9. HWND hwndParent; // Parent window to disable/enable
  10. INT nProgCur; // Starting position of progress
  11. INT nProgMax; // Starting max value for progress
  12. INT idAVI; // Resource id of animation to play
  13. LPTSTR szCaption; // Caption of progress dialog
  14. ULONG ulFlags; // Flags
  15. // OUT parameters
  16. HWND hwndDlg; // Progress dialog window;
  17. BOOL fCancelled;
  18. // internal stuff
  19. DWORD dwStartTime;
  20. DWORD dwShowTime;
  21. HCURSOR hcursor;
  22. WNDPROC wndprocCancel;
  23. #ifdef DBCS
  24. #ifdef WIN16
  25. DLGTEMPLATE FAR *lpDlg;
  26. #else // !WIN16
  27. DLGTEMPLATE *lpDlg;
  28. #endif // !WIN16
  29. #endif // !DBCS
  30. }
  31. STDPROG;
  32. #define STDPROG_FLAGS_ALWAYS_SHOW 0x00000001 // always show progress dialog immediately
  33. #define STDPROG_FLAGS_BACKGROUND 0x00000002 // don't bring progress dialog to front
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. BOOL CALLBACK FCreateStandardProgress(STDPROG * pstdprog);
  38. VOID CALLBACK UpdateStandardProgress(STDPROG * pstdprog, LPTSTR szComment, INT nProgCur, INT nProgMax);
  39. VOID CALLBACK DestroyStandardProgress(STDPROG * pstdprog, BOOL fFlashFull);
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43. // Keep these in ssync w/ \capone\mapin\mapin.rh
  44. #define AVI_StandardProgressMove 410
  45. #define AVI_StandardProgressCopy 411
  46. #define AVI_StandardProgressDelete 412
  47. #define AVI_StandardProgressDeletePerm 413
  48. #define AVI_StandardProgressRemote 414
  49. #define AVI_StandardProgressDownloadAB 415
  50. #define AVI_StandardProgressRecycle 416
  51. #define AVI_StandardProgressSynchronize 417
  52. // RAS stuff used by Local Rep
  53. #ifdef _RAS_H_
  54. #ifdef WIN16
  55. typedef DWORD (FAR PASCAL *PFNRASGETERRORSTRING)(DWORD, LPSTR, DWORD);
  56. typedef DWORD (FAR PASCAL *PFNRASENUMCONNECTIONS)(LPRASCONN, LPDWORD, LPDWORD);
  57. typedef DWORD (FAR PASCAL *PFNRASDIAL)(LPSTR, LPSTR, LPRASDIALPARAMS, DWORD, LPVOID, LPHRASCONN);
  58. typedef DWORD (FAR PASCAL *PFNRASGETCONNECTSTATUS)(HRASCONN, LPRASCONNSTATUS);
  59. typedef DWORD (FAR PASCAL *PFNRASHANGUP)(HRASCONN);
  60. typedef DWORD (FAR PASCAL *PFNRASENUMENTRIES)(LPSTR, LPSTR, LPRASENTRYNAME, LPDWORD, LPDWORD);
  61. #endif
  62. #if defined(WIN32) && !defined(MAC) && !defined(_X86_)
  63. typedef DWORD (APIENTRY *PFNRASGETERRORSTRING)(DWORD, LPTSTR, DWORD);
  64. typedef DWORD (APIENTRY *PFNRASENUMCONNECTIONS)(LPRASCONN, LPDWORD, LPDWORD);
  65. typedef DWORD (APIENTRY *PFNRASDIAL)(LPTSTR, LPTSTR, LPRASDIALPARAMS, LPVOID, RASDIALFUNC, LPHRASCONN);
  66. typedef DWORD (APIENTRY *PFNRASGETCONNECTSTATUS)(HRASCONN, LPRASCONNSTATUS);
  67. typedef DWORD (APIENTRY *PFNRASHANGUP)(HRASCONN);
  68. typedef DWORD (APIENTRY *PFNRASENUMENTRIES)(LPTSTR, LPTSTR, LPRASENTRYNAME, LPDWORD, LPDWORD);
  69. #endif
  70. #if defined(WIN32) && defined(_X86_)
  71. #define USETAPI
  72. typedef DWORD (APIENTRY *PFNRASGETERRORSTRING)(DWORD, LPTSTR, DWORD);
  73. typedef DWORD (APIENTRY *PFNRASENUMCONNECTIONS)(LPRASCONN, LPDWORD, LPDWORD);
  74. typedef DWORD (APIENTRY *PFNRASDIAL)(LPTSTR, LPTSTR, LPRASDIALPARAMS, LPVOID, RASDIALFUNC, LPHRASCONN);
  75. typedef DWORD (APIENTRY *PFNRASGETCONNECTSTATUS)(HRASCONN, LPRASCONNSTATUS);
  76. typedef DWORD (APIENTRY *PFNRASHANGUP)(HRASCONN);
  77. typedef DWORD (APIENTRY *PFNRASENUMENTRIES)(LPTSTR, LPTSTR, LPRASENTRYNAME, LPDWORD, LPDWORD);
  78. typedef DWORD (APIENTRY *PFNRASEDITPHONEBOOKENTRY) ( HWND, LPSTR, LPSTR );
  79. typedef DWORD (APIENTRY *PFNRASCREATEPHONEBOOKENTRY) ( HWND, LPSTR );
  80. #endif
  81. #if defined(WIN32) && !defined(MAC)
  82. #ifdef UNICODE
  83. #define RASDIALSTRING "RasDialW"
  84. #define RASENUMCONNECTIONSSTRING "RasEnumConnectionsW"
  85. #define RASGETCONNECTSTATUSSTRING "RasGetConnectStatusW"
  86. #define RASHANGUPSTRING "RasHangUpW"
  87. #define RASGETERRORSTRINGSTRING "RasGetErrorStringW"
  88. #define RASENUMENTRIESSTRING "RasEnumEntriesW"
  89. #define RASCREATEPHONEBOOKENTRYSTRING "RasCreatePhonebookEntryW"
  90. #define RASEDITPHONEBOOKENTRYSTRING "RasEditPhonebookEntryW"
  91. #else
  92. #define RASDIALSTRING "RasDialA"
  93. #define RASENUMCONNECTIONSSTRING "RasEnumConnectionsA"
  94. #define RASGETCONNECTSTATUSSTRING "RasGetConnectStatusA"
  95. #define RASHANGUPSTRING "RasHangUpA"
  96. #define RASGETERRORSTRINGSTRING "RasGetErrorStringA"
  97. #define RASENUMENTRIESSTRING "RasEnumEntriesA"
  98. #define RASCREATEPHONEBOOKENTRYSTRING "RasCreatePhonebookEntryA"
  99. #define RASEDITPHONEBOOKENTRYSTRING "RasEditPhonebookEntryA"
  100. #endif
  101. #else
  102. #define RASDIALSTRING "RasDial"
  103. #define RASENUMCONNECTIONSSTRING "RasEnumConnections"
  104. #define RASGETCONNECTSTATUSSTRING "RasGetConnectStatus"
  105. #define RASHANGUPSTRING "RasHangUp"
  106. #define RASGETERRORSTRINGSTRING "RasGetErrorString"
  107. #define RASENUMENTRIESSTRING "RasEnumEntries"
  108. #define RASCREATEPHONEBOOKENTRYSTRING "RasCreatePhonebookEntry"
  109. #define RASEDITPHONEBOOKENTRYSTRING "RasEditPhonebookEntry"
  110. #endif
  111. // sizes for the RASDIALPARAMS struct in ras.h
  112. #define cchRxpMaxEntryName RAS_MaxEntryName
  113. #define cchRxpUNLEN UNLEN
  114. #define cchRxpDNLEN DNLEN
  115. #define cchRxpPWLEN PWLEN
  116. typedef struct
  117. {
  118. HINSTANCE hinstRas;
  119. PFNRASENUMCONNECTIONS pfnrasenumconnections;
  120. PFNRASDIAL pfnrasdial;
  121. PFNRASGETCONNECTSTATUS pfnrasgetconnectstatus;
  122. PFNRASHANGUP pfnrashangup;
  123. PFNRASGETERRORSTRING pfnrasgeterrorstring;
  124. PFNRASENUMENTRIES pfnrasenumentries;
  125. #if defined(WIN32) && defined(_X86_)
  126. PFNRASCREATEPHONEBOOKENTRY pfnrascreatephonebookentry;
  127. PFNRASEDITPHONEBOOKENTRY pfnraseditphonebookentry;
  128. #endif
  129. HRASCONN hrasconn;
  130. BOOL fRasAvailable;
  131. TCHAR szRasEntryDialed[cchRxpMaxEntryName + 1];
  132. } RASPACKAGE;
  133. typedef struct
  134. {
  135. TCHAR szRasEntry[cchRxpMaxEntryName + 1];
  136. TCHAR szUserName[cchRxpUNLEN + 1];
  137. TCHAR szDomainName[cchRxpDNLEN + 1];
  138. TCHAR szPassword[cchRxpPWLEN + 1];
  139. // BYTE bRasPasswd[256];
  140. BOOL fDoSchedEvery;
  141. LONG lSchedEvery; // in Minutes
  142. BOOL fDoSchedAt;
  143. LONG lSchedAt; // in Minutes from Midnight
  144. BOOL fDisconHead;
  145. BOOL fDisconTrans;
  146. BOOL fUseRas;
  147. BOOL fTransferMarked; // If false tranfer filter
  148. FILETIME ftBasetime;
  149. LPSRestriction lpRes;
  150. BOOL fAddrBookSch;
  151. BOOL fAddrBook;
  152. LPSRestriction lpResNormal;
  153. BOOL fTransferMarkedNorm; // If false tranfer filter
  154. } EMSRPREF;
  155. #endif // _RAS_H_
  156. #endif // __WMSUIX_H__