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.

448 lines
24 KiB

  1. //
  2. // EXPORTS.H
  3. //
  4. #ifndef _EXPORTS_H
  5. #define _EXPORTS_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif /* __cplusplus */
  9. #include "ieaksie.h"
  10. // IEM_xxx stands for Ieak Engine Mode
  11. #define IEM_NEUTRAL 0x00000000 // agnostic
  12. #define IEM_ICP 0x00000000 // wizard - icp mode
  13. #define IEM_ISP 0x00000000 // wizard - isp mode
  14. #define IEM_CORP 0x00000001 // wizard - corp
  15. #define IEM_PROFMGR 0x00000002 // profmgr
  16. #define IEM_GP 0x00000004 // gp (snapin)
  17. #define IEM_ADMIN 0x00000007
  18. // prototype declarations
  19. // desktop.cpp
  20. BOOL WINAPI ImportADTInfoA(LPCSTR pcszInsFile, LPCSTR pcszDeskWorkDir, LPCSTR pcszDeskInf, BOOL fImportADT);
  21. BOOL WINAPI ImportADTInfoW(LPCWSTR pcszInsFile, LPCWSTR pcszDeskWorkDir, LPCWSTR pcszDeskInf, BOOL fImportADT);
  22. BOOL WINAPI ShowDeskCpl(VOID);
  23. // toolbar.cpp
  24. BOOL WINAPI ImportToolbarInfoA(LPCSTR pcszInsFile, LPCSTR pcszToolbarWorkDir, LPCSTR pcszToolbarInf, BOOL fImportToolbars);
  25. BOOL WINAPI ImportToolbarInfoW(LPCWSTR pcwszInsFile, LPCWSTR pcwszToolbarWorkDir, LPCWSTR pcwszToolbarInf, BOOL fImportToolbars);
  26. // mccphtt.cpp
  27. BOOL WINAPI CopyHttFileA(LPCSTR pcszInsFile, LPCSTR pcszHttWorkDir, LPCSTR pcszHttFile, LPCSTR pcszHttKey);
  28. BOOL WINAPI CopyHttFileW(LPCWSTR pcwszInsFile, LPCWSTR pcwszHttWorkDir, LPCWSTR pcwszHttFile, LPCWSTR pcwszHttKey);
  29. // seccerts.cpp
  30. BOOL WINAPI ImportSiteCertA(LPCSTR pcszInsFile, LPCSTR pcszSCWorkDir, LPCSTR pcszSCInf, BOOL fImportSC);
  31. BOOL WINAPI ImportSiteCertW(LPCWSTR pcwszInsFile, LPCWSTR pcwszSCWorkDir, LPCWSTR pcwszSCInf, BOOL fImportSC);
  32. BOOL WINAPI ModifySiteCert(HWND hDlg);
  33. BOOL WINAPI ImportAuthCodeA(LPCSTR pcszInsFile, LPCSTR pcszAuthWorkDir, LPCSTR pcszAuthInf, BOOL fImportAuth);
  34. BOOL WINAPI ImportAuthCodeW(LPCWSTR pcwszInsFile, LPCWSTR pcwszAuthWorkDir, LPCWSTR pcwszAuthInf, BOOL fImportAuth);
  35. BOOL WINAPI ModifyAuthCode(HWND hDlg);
  36. // seczones.cpp
  37. BOOL WINAPI ImportZonesA(LPCSTR pcszInsFile, LPCSTR pcszZonesWorkDir, LPCSTR pcszZonesInf, BOOL fImportZones);
  38. BOOL WINAPI ImportZonesW(LPCWSTR pcwszInsFile, LPCWSTR pcwszZonesWorkDir, LPCWSTR pcwszZonesInf, BOOL fImportZones);
  39. BOOL WINAPI ModifyZones(HWND hDlg);
  40. BOOL WINAPI ImportRatingsA(LPCSTR pcszInsFile, LPCSTR pcszRatingsWorkDir, LPCSTR pcszRatingsInf, BOOL fImportRatings);
  41. BOOL WINAPI ImportRatingsW(LPCWSTR pcwszInsFile, LPCWSTR pcwszRatingsWorkDir, LPCWSTR pcwszRatingsInf, BOOL fImportRatings);
  42. BOOL WINAPI ModifyRatings(HWND hDlg);
  43. // oe.cpp
  44. BOOL WINAPI ImportLDAPBitmapA(LPCSTR pcszIns, LPCSTR pcszWorkDir, BOOL fImport);
  45. BOOL WINAPI ImportLDAPBitmapW(LPCWSTR pcwszIns, LPCWSTR pcwszWorkDir, BOOL fImport);
  46. BOOL WINAPI ImportOEInfoA(LPCSTR pcszIns, LPCSTR pcszWorkDir, BOOL fImport);
  47. BOOL WINAPI ImportOEInfoW(LPCWSTR pcwszIns, LPCWSTR pcwszWorkDir, BOOL fImport);
  48. BOOL WINAPI EncodeSignatureA(LPCSTR pcszFrom, LPSTR pszTo, BOOL fEncode);
  49. BOOL WINAPI EncodeSignatureW(LPCWSTR pcwszFrom, LPWSTR pwszTo, BOOL fEncode);
  50. // utils.cpp
  51. #define FC_NONNULL 0x00000001
  52. #define FC_URL 0x00000002
  53. #define FC_NOSPACE 0x00000004
  54. #define FC_NOCOLON 0x00000008
  55. #define FC_PATH 0x00000010
  56. #define FC_NOEXCHAR 0x00000020
  57. #define FC_EXISTS 0x00000040
  58. #define FC_FILE (FC_PATH | 0x00000100)
  59. #define FC_DIR (FC_PATH | 0x00000200)
  60. #define FC_NUMBER 0x00000080
  61. BOOL WINAPI CheckField(HWND hDlg, int nIDDlgItem, DWORD dwFlags, LPARAM lParam = 0);
  62. #define BMP_SMALLER 0x00000001 // bitmap file must have dimensions smaller than cx and cy
  63. #define BMP_EXACT 0x00000002 // bitmap must be exact size specified
  64. BOOL IsAnimBitmapFileValidA(HWND hDlg, UINT nID, LPSTR pszBuffer, PUINT pcch, UINT nIDTooBig,
  65. UINT nIDTooSmall, long lBmpMinWidth, long lBmpMaxWidth);
  66. BOOL IsAnimBitmapFileValidW(HWND hDlg, UINT nID, LPWSTR pszBuffer, PUINT pcch, UINT nIDTooBig,
  67. UINT nIDTooSmall, long lBmpMinWidth, long lBmpMaxWidth);
  68. BOOL WINAPI IsBitmapFileValidA(HWND hDlg, UINT nID, LPSTR pszBuffer, PUINT pcch, int cx,
  69. int cy, UINT nIDTooBig, UINT nIDTooSmall, DWORD dwFlags = 0);
  70. BOOL WINAPI IsBitmapFileValidW(HWND hDlg, UINT nID, LPWSTR pwszBuffer, PUINT pcch, int cx,
  71. int cy, UINT nIDTooBig, UINT nIDTooSmall, DWORD dwFlags = 0);
  72. BOOL WINAPI BrowseForFileA(HWND hDlg, LPSTR pszFileName, DWORD cchSize, DWORD dwFilterMasks,
  73. LPCSTR pcszTitle = NULL);
  74. BOOL WINAPI BrowseForFileW(HWND hDlg, LPWSTR pwszFileName, DWORD cchSize, DWORD dwFilterMasks,
  75. LPCWSTR pcwszTitle = NULL);
  76. BOOL WINAPI BrowseForFolderA(HWND hDlg, LPSTR pszFileName, LPCSTR pcszDesc = NULL);
  77. BOOL WINAPI BrowseForFolderW(HWND hDlg, LPWSTR pwszFileName, LPCWSTR pcwszDesc = NULL);
  78. void WINAPI ErrorMessageBox(HWND hWnd, UINT idErrorStr, DWORD dwFlags = 0);
  79. void WINAPI ExportRegTree2InfA(HKEY hkSubKey, LPCSTR pcszRootKey, LPCSTR pcszSubKey,
  80. HANDLE hInf, BOOL fUseLdids = FALSE);
  81. void WINAPI ExportRegTree2InfW(HKEY hkSubKey, LPCWSTR pcwszRootKey, LPCWSTR pcwszSubKey,
  82. HANDLE hInf, BOOL fUseLdids = FALSE);
  83. void WINAPI ExportRegKey2InfA(HKEY hkSubKey, LPCSTR pcszRootKey, LPCSTR pcszSubKey,
  84. HANDLE hInf, BOOL fUseLdids = FALSE);
  85. void WINAPI ExportRegKey2InfW(HKEY hkSubKey, LPCWSTR pcwszRootKey, LPCWSTR pcwszSubKey,
  86. HANDLE hInf, BOOL fUseLdids = FALSE);
  87. void WINAPI ExportRegValue2InfA(HKEY hkSubKey, LPCSTR pcszValue, LPCSTR pcszRootKey,
  88. LPCSTR pcszSubKey, HANDLE hInf, BOOL fUseLdids = FALSE);
  89. void WINAPI ExportRegValue2InfW(HKEY hkSubKey, LPCWSTR pcwszValue, LPCWSTR pcwszRootKey,
  90. LPCWSTR pcwszSubKey, HANDLE hInf, BOOL fUseLdids = FALSE);
  91. void WINAPI SignFileA(LPCSTR pcszFilename, LPCSTR pcszDir, LPCSTR pcszIns,
  92. LPSTR pszUnsignedFiles = NULL, LPCSTR pcszCustInf = NULL, BOOL fTest = FALSE);
  93. void WINAPI SignFileW(LPCWSTR pcwszFilename, LPCWSTR pcwszDir, LPCWSTR pcwszIns,
  94. LPWSTR pwszUnsignedFiles = NULL, LPCWSTR pcwszCustInf = NULL, BOOL fTest = FALSE);
  95. void WINAPI DoReboot(HWND hwndUI);
  96. void WINAPI ShowInetcpl(HWND hDlg, DWORD dwPages, DWORD dwMode = IEM_ADMIN);
  97. void WINAPI SetLBWidth(HWND hLb);
  98. // dlgprocs.cpp
  99. void WINAPI TestURLA(LPCSTR pcszUrl);
  100. void WINAPI TestURLW(LPCWSTR pcwszUrl);
  101. void WINAPI SetProxyDlgA(HWND hDlg, LPCSTR pcszProxy, DWORD dwIdName, DWORD dwIdPort,
  102. BOOL fDef80);
  103. void WINAPI SetProxyDlgW(HWND hDlg, LPCWSTR pcwszProxy, DWORD dwIdName, DWORD dwIdPort,
  104. BOOL fDef80);
  105. void WINAPI GetProxyDlgA(HWND hDlg, LPSTR pszProxy, DWORD dwIdName, DWORD dwIdPort);
  106. void WINAPI GetProxyDlgW(HWND hDlg, LPWSTR pwszProxy, DWORD dwIdName, DWORD dwIdPort);
  107. HPALETTE WINAPI BuildPalette(HDC hdc);
  108. void WINAPI ShowBitmapA(HWND hControl, LPCSTR pcszFileName, int nBitmapId, PHANDLE pBitmap);
  109. void WINAPI ShowBitmapW(HWND hControl, LPCWSTR pcwszFileName, int nBitmapId, PHANDLE pBitmap);
  110. BOOL WINAPI CopyAnimBmpA(HWND hDlg, LPSTR pszBmp, LPCSTR pcszWorkDir, LPCSTR pcszNameStr,
  111. LPCSTR pcszPathStr, LPCSTR pcszInsFile);
  112. BOOL WINAPI CopyAnimBmpW(HWND hDlg, LPWSTR pwszBmp, LPCWSTR pcwszWorkDir, LPCWSTR pcwszNameStr,
  113. LPCWSTR pcwszPathStr, LPCWSTR pcwszInsFile);
  114. BOOL WINAPI CopyLogoBmpA(HWND hDlg, LPSTR pszBmp, LPCSTR pcszLogoStr,
  115. LPCSTR pcszWorkDir, LPCSTR pcszInsFile);
  116. BOOL WINAPI CopyLogoBmpW(HWND hDlg, LPWSTR pwszBmp, LPCWSTR pcwszLogoStr,
  117. LPCWSTR pcwszWorkDir, LPCWSTR pcwszInsFile);
  118. BOOL WINAPI CopyWallPaperA(HWND hDlg, LPCSTR pcszWallPaper, UINT nBitmapId,
  119. LPCSTR pcszWorkDir, LPCSTR pcszInsFile, BOOL fCopy);
  120. BOOL WINAPI CopyWallPaperW(HWND hDlg, LPCWSTR pcwszWallPaper, UINT nBitmapId,
  121. LPCWSTR pcwszWorkDir, LPCWSTR pcwszInsFile, BOOL fCopy);
  122. // urls.cpp
  123. void WINAPI InitializeStartSearchA(HWND hDlg, LPCSTR pcszInsFile, LPCSTR pcszServerFile);
  124. void WINAPI InitializeStartSearchW(HWND hDlg, LPCWSTR pcwszInsFile, LPCWSTR pcwszServerFile);
  125. BOOL WINAPI SaveStartSearchA(HWND hDlg, LPCSTR pcszInsFile, LPCSTR pcszServerFile,
  126. BOOL *pfInsDirty = NULL, BOOL fCheckDirtyOnly = FALSE);
  127. BOOL WINAPI SaveStartSearchW(HWND hDlg, LPCWSTR pcwszInsFile, LPCWSTR pcwszServerFile,
  128. BOOL *pfInsDirty = NULL, BOOL fCheckDirtyOnly = FALSE);
  129. // btoolbar.cpp
  130. DWORD WINAPI BToolbar_InitA(HWND hwndList, LPCSTR pcszCustIns, LPCSTR pcszAltDir, LPCSTR pcszWorkDir);
  131. DWORD WINAPI BToolbar_InitW(HWND hwndList, LPCWSTR pcwszCustIns, LPCWSTR pcwszAltDir, LPCWSTR pcwszWorkDir);
  132. void WINAPI BToolbar_Remove(HWND hwndList);
  133. void WINAPI BToolbar_Edit(HWND hwndList, BOOL fAdd);
  134. void WINAPI BToolbar_SaveA(HWND hwndList, LPCSTR pcszCustIns, LPCSTR pcszBToolbarDir, DWORD dwMode = IEM_NEUTRAL);
  135. void WINAPI BToolbar_SaveW(HWND hwndList, LPCWSTR pcwszCustIns, LPCWSTR pcwszBToolbarDir, DWORD dwMode = IEM_NEUTRAL);
  136. // connset.cpp
  137. BOOL WINAPI ImportConnectSetA(LPCSTR pcszIns, LPCSTR pcszTargetPath, LPCSTR pcszCleanupPath,
  138. BOOL fImport, DWORD dwMode, LPCSTR pcszPbkFile = NULL, HKEY hkRoot = NULL);
  139. BOOL WINAPI ImportConnectSetW(LPCWSTR pcwszIns, LPCWSTR pcwszTargetPath, LPCWSTR pcwszCleanupPath,
  140. BOOL fImport, DWORD dwMode, LPCWSTR pcwszPbkFile = NULL, HKEY hkRoot = NULL);
  141. // programs.cpp
  142. BOOL WINAPI ImportProgramsA(LPCSTR pcszInsFile, LPCSTR pcszWorkDir, BOOL fImport);
  143. BOOL WINAPI ImportProgramsW(LPCWSTR pcwszInsFile, LPCWSTR pcwszWorkDir, BOOL fImport);
  144. // favsproc.cpp
  145. BOOL WINAPI MigrateFavoritesA(LPCSTR pcszIns);
  146. BOOL WINAPI MigrateFavoritesW(LPCWSTR pcwszIns);
  147. void WINAPI MigrateToOldFavoritesA(LPCSTR pcszIns);
  148. void WINAPI MigrateToOldFavoritesW(LPCWSTR pcwszIns);
  149. int WINAPI ImportFavoritesA(HWND htv, LPCSTR pcszDefInf, LPCSTR pcszIns, LPCSTR pcszFixPath,
  150. LPCSTR pcszNewPath, BOOL fIgnoreOffline);
  151. int WINAPI ImportFavoritesW(HWND htv, LPCWSTR pcwszDefInf, LPCWSTR pcwszIns,
  152. LPCWSTR pcwszFixPath, LPCWSTR pcwszNewPath, BOOL fIgnoreOffline);
  153. int WINAPI ImportQuickLinksA(HWND htv, LPCSTR pcszDefInf, LPCSTR pcszIns, LPCSTR pcszFixPath,
  154. LPCSTR pcszNewPath, BOOL fIgnoreOffline);
  155. int WINAPI ImportQuickLinksW(HWND htv, LPCWSTR pcwszDefInf, LPCWSTR pcwszIns,
  156. LPCWSTR pcwszFixPath, LPCWSTR pcwszNewPath, BOOL fIgnoreOffline);
  157. BOOL WINAPI NewUrlA(HWND htv, LPCSTR pcszExtractPath, DWORD dwPlatformID, DWORD dwMode);
  158. BOOL WINAPI NewUrlW(HWND htv, LPCWSTR pcwszExtractPath, DWORD dwPlatformID, DWORD dwMode);
  159. BOOL WINAPI NewFolder(HWND htv);
  160. BOOL WINAPI ModifyFavoriteA(HWND htv, HTREEITEM hti, LPCSTR pcszExtractPath, LPCSTR pcszPrevExtractPath, DWORD dwPlatformID, DWORD dwMode);
  161. BOOL WINAPI ModifyFavoriteW(HWND htv, HTREEITEM hti, LPCWSTR pcwszExtractPath, LPCWSTR pcwszPrevExtractPath, DWORD dwPlatformID, DWORD dwMode);
  162. BOOL WINAPI DeleteFavoriteA(HWND htv, HTREEITEM hti, LPCSTR pcszExtractPath);
  163. BOOL WINAPI DeleteFavoriteW(HWND htv, HTREEITEM hti, LPCWSTR pcwszExtractPath);
  164. BOOL WINAPI MoveUpFavorite (HWND htv, HTREEITEM hti);
  165. BOOL WINAPI MoveDownFavorite(HWND htv, HTREEITEM hti);
  166. BOOL WINAPI IsFavoriteItem (HWND htv, HTREEITEM hti);
  167. UINT WINAPI GetFavoritesNumber (HWND htv, BOOL fQL = FALSE);
  168. UINT WINAPI GetFavoritesMaxNumber(BOOL fQL = FALSE);
  169. int WINAPI ImportFavoritesCmdA(HWND htv, LPCSTR pcszExtractPath);
  170. int WINAPI ImportFavoritesCmdW(HWND htv, LPCWSTR pcwszExtractPath);
  171. void WINAPI ExportFavoritesA(HWND htv, LPCSTR pcszIns, LPCSTR pcszExtractPath, BOOL fFixUpPath);
  172. void WINAPI ExportFavoritesW(HWND htv, LPCWSTR pcwszIns, LPCWSTR pcwszExtractPath, BOOL fFixUpPath);
  173. void WINAPI ExportQuickLinksA(HWND htv, LPCSTR pcszIns, LPCSTR pcszExtractPath, BOOL fFixUpPath);
  174. void WINAPI ExportQuickLinksW(HWND htv, LPCWSTR pcwszIns, LPCWSTR pcwszExtractPath, BOOL fFixUpPath);
  175. void WINAPI GetFavoritesInfoTipA(LPNMTVGETINFOTIPA pGetInfoTipA);
  176. void WINAPI GetFavoritesInfoTipW(LPNMTVGETINFOTIPW pGetInfoTipW);
  177. BOOL WINAPI GetFavoriteUrlA(HWND htv, HTREEITEM hti, LPSTR pszUrl, DWORD cchSize);
  178. BOOL WINAPI GetFavoriteUrlW(HWND htv, HTREEITEM hti, LPWSTR pwszUrl, DWORD cchSize);
  179. void WINAPI ProcessFavSelChange(HWND hDlg, HWND hTv, LPNMTREEVIEW pnmtv);
  180. // adm.cpp
  181. void WINAPI CreateADMWindow(HWND hOwner, HWND hWndInsertAfter, int nXPos, int nYPos,
  182. int nWidth, int nHeight);
  183. void WINAPI ShowADMWindow(HWND hOwner, BOOL fShow);
  184. void WINAPI MoveADMWindow(HWND hOwner, int nXPos, int nYPos, int nWidth, int nHeight);
  185. void WINAPI SetADMWindowTextA(HWND hOwner, LPCSTR pcszTitle, LPCSTR pcszText,
  186. BOOL fUpdateWindowState = TRUE);
  187. void WINAPI SetADMWindowTextW(HWND hOwner, LPCWSTR pcwszTitle, LPCWSTR pcwszText,
  188. BOOL fUpdateWindowState = TRUE);
  189. void WINAPI DestroyADMWindow(HWND hOwner);
  190. BOOL WINAPI IsADMFileVisibleA(LPCSTR pcszFileName, int nRole, DWORD dwPlatformId);
  191. BOOL WINAPI IsADMFileVisibleW(LPCWSTR pcwszFileName, int nRole, DWORD dwPlatformId);
  192. BOOL WINAPI LoadADMFilesA(HWND hTreeView, HTREEITEM hPolicyRootItem, LPCSTR pcszADMFilePath,
  193. LPCSTR pcszWorkDir, DWORD dwPlatformId, int nRole,
  194. int nIconADMClose, int nIconADMCategory);
  195. BOOL WINAPI LoadADMFilesW(HWND hTreeView, HTREEITEM hPolicyRootItem, LPCWSTR pcwszADMFilePath,
  196. LPCWSTR pcwszWorkDir, DWORD dwPlatformId, int nRole,
  197. int nIconADMClose, int nIconADMCategory);
  198. void WINAPI DeleteADMItemA(HWND hTreeView, HTREEITEM hParentItem, LPCSTR pcszWorkDir,
  199. LPCSTR pcszInsFile, BOOL bDeleteFile, BOOL bSave);
  200. void WINAPI DeleteADMItemW(HWND hTreeView, HTREEITEM hParentItem, LPCWSTR pcwszWorkDir,
  201. LPCWSTR pcwszInsFile, BOOL bDeleteFile, BOOL bSave);
  202. void WINAPI DeleteADMItemsA(HWND hTreeView, LPCSTR pcszWorkDir, LPCSTR pcszInsFile,
  203. BOOL bSave);
  204. void WINAPI DeleteADMItemsW(HWND hTreeView, LPCWSTR pcwszWorkDir, LPCWSTR pcwszInsFile,
  205. BOOL bSave);
  206. void WINAPI DisplayADMItem(HWND hWnd, HWND hTreeView, LPTVITEM lpSelectedItem,
  207. BOOL fShowDisabled);
  208. void WINAPI SelectADMItem(HWND hMainWnd, HWND hTreeView, LPTVITEM lpTVItem,
  209. BOOL bSelect, BOOL fShowDisabled);
  210. void WINAPI ImportADMFileA(HWND hMainWnd, HWND hTreeView, LPCSTR pcszADMFilePath,
  211. LPCSTR pcszWorkDir, int nRole, LPCSTR pcszInsFile);
  212. void WINAPI ImportADMFileW(HWND hMainWnd, HWND hTreeView, LPCWSTR pcwszADMFilePath,
  213. LPCWSTR pcwszWorkDir, int nRole, LPCWSTR pcwszInsFile);
  214. void WINAPI CheckForDupKeys(HWND hMainWnd, HWND hTreeView, HTREEITEM hItem,
  215. BOOL bDispSuccessMsg);
  216. void WINAPI ResetAdmFilesA(HWND hTreeView, LPCSTR pcszWorkDir, BOOL bReset);
  217. void WINAPI ResetAdmFilesW(HWND hTreeView, LPCWSTR pcwszWorkDir, BOOL bReset);
  218. void WINAPI SaveAdmFilesA(HWND hTreeView, LPCSTR pcszWorkDir, LPCSTR pcszInsFile);
  219. void WINAPI SaveAdmFilesW(HWND hTreeView, LPCWSTR pcwszWorkDir, LPCWSTR pcwszInsFile);
  220. BOOL WINAPI CanDeleteADM(HWND hTreeView, HTREEITEM hItem);
  221. HWND WINAPI GetAdmWindowHandle(HWND hTreeView, HTREEITEM hItem);
  222. BOOL WINAPI AdmDirty();
  223. void WINAPI ClearAdmDirtyFlag();
  224. // these #defines is also used in insedit.dll
  225. #define ITEM_SAVE 0x00000001
  226. #define ITEM_DESTROY 0x00000002
  227. #define ITEM_CHECKDIRTY 0x00000004
  228. void WINAPI SaveADMItem(HWND hTreeView, LPTVITEM lpTVItem, DWORD dwFlags);
  229. BOOL WINAPI GetAdmFileListA(LPRESULTITEMA* pResultItemsArrayA, int* pnResultItems, int nRole);
  230. BOOL WINAPI GetAdmFileListW(LPRESULTITEMW* pResultItemsArrayW, int* pnResultItems, int nRole);
  231. HTREEITEM WINAPI AddADMItemA(HWND hTreeView, LPCSTR pcszADMFilePath, LPCSTR pcszFileName,
  232. LPCSTR pcszWorkDir, int nRole, BSTR bstrRSOPNamespace);
  233. HTREEITEM WINAPI AddADMItemW(HWND hTreeView, LPCWSTR pcwszADMFilePath, LPCWSTR pcwszFileName,
  234. LPCWSTR pcwszWorkDir, int nRole, BSTR bstrRSOPNamespace);
  235. // version.cpp
  236. int WINAPI CheckVerA(LPCSTR pcszPrevVer, LPCSTR pcszNewVer);
  237. int WINAPI CheckVerW(LPCWSTR pcwszPrevVer, LPCWSTR pcwszNewVer);
  238. void WINAPI GenerateNewVersionStrA(LPCSTR pcszInsFile, LPSTR pszNewVersionStr);
  239. void WINAPI GenerateNewVersionStrW(LPCWSTR pcwszInsFile, LPWSTR pwszNewVersionStr);
  240. void WINAPI SetOrClearVersionInfoA(LPCSTR pcszInsFile, DWORD dwCabType, LPCSTR pcszCabName,
  241. LPCSTR pcszCabsURLPath, LPSTR pszNewVersionStr, BOOL fSet);
  242. void WINAPI SetOrClearVersionInfoW(LPCWSTR pcwszInsFile, DWORD dwCabType, LPCWSTR pcwszCabName,
  243. LPCWSTR pcwszCabsURLPath, LPWSTR pwszNewVersionStr, BOOL fSet);
  244. void WINAPI GetBaseFileNameA(LPCSTR pcszFile, LPSTR pszBaseFileName, INT cchSize);
  245. void WINAPI GetBaseFileNameW(LPCWSTR pcwszFile, LPWSTR pwszBaseFileName, INT cchSize);
  246. // TCHAR mappings for functions
  247. #ifdef UNICODE //UNICODE
  248. #define ImportADTInfo ImportADTInfoW // desktop.cpp
  249. #define ImportToolbarInfo ImportToolbarInfoW // toolbar.cpp
  250. #define CopyHttFile CopyHttFileW // mccphtt.cpp
  251. #define ImportSiteCert ImportSiteCertW // seccerts.cpp
  252. #define ImportAuthCode ImportAuthCodeW
  253. #define ImportZones ImportZonesW // seczones.cpp
  254. #define ImportRatings ImportRatingsW
  255. #define ImportLDAPBitmap ImportLDAPBitmapW // oe.cpp
  256. #define ImportOEInfo ImportOEInfoW
  257. #define EncodeSignature EncodeSignatureW
  258. #define BrowseForFile BrowseForFileW // utils.cpp
  259. #define BrowseForFolder BrowseForFolderW
  260. #define ExportRegTree2Inf ExportRegTree2InfW
  261. #define ExportRegKey2Inf ExportRegKey2InfW
  262. #define ExportRegValue2Inf ExportRegValue2InfW
  263. #define IsAnimBitmapFileValid IsAnimBitmapFileValidW
  264. #define IsBitmapFileValid IsBitmapFileValidW
  265. #define SignFile SignFileW
  266. #define TestURL TestURLW // dlgprocs.cpp
  267. #define SetProxyDlg SetProxyDlgW
  268. #define GetProxyDlg GetProxyDlgW
  269. #define ShowBitmap ShowBitmapW
  270. #define CopyAnimBmp CopyAnimBmpW
  271. #define CopyLogoBmp CopyLogoBmpW
  272. #define CopyWallPaper CopyWallPaperW
  273. #define InitializeStartSearch InitializeStartSearchW // urls.cpp
  274. #define SaveStartSearch SaveStartSearchW
  275. #define BToolbar_Init BToolbar_InitW // btoolbar.cpp
  276. #define BToolbar_Save BToolbar_SaveW
  277. #define ImportConnectSet ImportConnectSetW // connset.cpp
  278. #define ImportPrograms ImportProgramsW // programs.cpp
  279. #define MigrateFavorites MigrateFavoritesW // favsproc.cpp
  280. #define MigrateToOldFavorites MigrateToOldFavoritesW
  281. #define ImportFavorites ImportFavoritesW
  282. #define ImportQuickLinks ImportQuickLinksW
  283. #define NewUrl NewUrlW
  284. #define ModifyFavorite ModifyFavoriteW
  285. #define DeleteFavorite DeleteFavoriteW
  286. #define ImportFavoritesCmd ImportFavoritesCmdW
  287. #define ExportFavorites ExportFavoritesW
  288. #define ExportQuickLinks ExportQuickLinksW
  289. #define GetFavoritesInfoTip GetFavoritesInfoTipW
  290. #define GetFavoriteUrl GetFavoriteUrlW
  291. #define SetADMWindowText SetADMWindowTextW // adm.cpp
  292. #define IsADMFileVisible IsADMFileVisibleW
  293. #define LoadADMFiles LoadADMFilesW
  294. #define DeleteADMItem DeleteADMItemW
  295. #define DeleteADMItems DeleteADMItemsW
  296. #define ImportADMFile ImportADMFileW
  297. #define ResetAdmFiles ResetAdmFilesW
  298. #define SaveAdmFiles SaveAdmFilesW
  299. #define GetAdmFileList GetAdmFileListW
  300. #define AddADMItem AddADMItemW
  301. #define CheckVer CheckVerW // version.cpp
  302. #define GenerateNewVersionStr GenerateNewVersionStrW
  303. #define SetOrClearVersionInfo SetOrClearVersionInfoW
  304. #define GetBaseFileName GetBaseFileNameW
  305. #else //---------------------------------------------------- !UNICODE
  306. #define ImportADTInfo ImportADTInfoA // desktop.cpp
  307. #define ImportToolbarInfo ImportToolbarInfoA // toolbar.cpp
  308. #define CopyHttFile CopyHttFileA // mccphtt.cpp
  309. #define ImportSiteCert ImportSiteCertA // seccerts.cpp
  310. #define ImportAuthCode ImportAuthCodeA
  311. #define ImportZones ImportZonesA // seczones.cpp
  312. #define ImportRatings ImportRatingsA
  313. #define ImportLDAPBitmap ImportLDAPBitmapA // oe.cpp
  314. #define ImportOEInfo ImportOEInfoA
  315. #define EncodeSignature EncodeSignatureA
  316. #define BrowseForFile BrowseForFileA // utils.cpp
  317. #define BrowseForFolder BrowseForFolderA
  318. #define ExportRegTree2Inf ExportRegTree2InfA
  319. #define ExportRegKey2Inf ExportRegKey2InfA
  320. #define ExportRegValue2Inf ExportRegValue2InfA
  321. #define IsAnimBitmapFileValid IsAnimBitmapFileValidA
  322. #define IsBitmapFileValid IsBitmapFileValidA
  323. #define SignFile SignFileA
  324. #define TestURL TestURLA // dlgprocs.cpp
  325. #define SetProxyDlg SetProxyDlgA
  326. #define GetProxyDlg GetProxyDlgA
  327. #define ShowBitmap ShowBitmapA
  328. #define CopyAnimBmp CopyAnimBmpA
  329. #define CopyLogoBmp CopyLogoBmpA
  330. #define CopyWallPaper CopyWallPaperA
  331. #define InitializeStartSearch InitializeStartSearchA // urls.cpp
  332. #define SaveStartSearch SaveStartSearchA
  333. #define BToolbar_Init BToolbar_InitA // btoolbar.cpp
  334. #define BToolbar_Save BToolbar_SaveA
  335. #define ImportConnectSet ImportConnectSetA // connset.cpp
  336. #define ImportPrograms ImportProgramsA // programs.cpp
  337. #define MigrateFavorites MigrateFavoritesA // favsproc.cpp
  338. #define MigrateToOldFavorites MigrateToOldFavoritesA
  339. #define ImportFavorites ImportFavoritesA
  340. #define ImportQuickLinks ImportQuickLinksA
  341. #define NewUrl NewUrlA
  342. #define ModifyFavorite ModifyFavoriteA
  343. #define DeleteFavorite DeleteFavoriteA
  344. #define ImportFavoritesCmd ImportFavoritesCmdA
  345. #define ExportFavorites ExportFavoritesA
  346. #define ExportQuickLinks ExportQuickLinksA
  347. #define GetFavoritesInfoTip GetFavoritesInfoTipA
  348. #define GetFavoriteUrl GetFavoriteUrlA
  349. #define SetADMWindowText SetADMWindowTextA // adm.cpp
  350. #define IsADMFileVisible IsADMFileVisibleA
  351. #define LoadADMFiles LoadADMFilesA
  352. #define DeleteADMItem DeleteADMItemA
  353. #define DeleteADMItems DeleteADMItemsA
  354. #define ImportADMFile ImportADMFileA
  355. #define ResetAdmFiles ResetAdmFilesA
  356. #define SaveAdmFiles SaveAdmFilesA
  357. #define GetAdmFileList GetAdmFileListA
  358. #define AddADMItem AddADMItemA
  359. #define CheckVer CheckVerA // version.cpp
  360. #define GenerateNewVersionStr GenerateNewVersionStrA
  361. #define SetOrClearVersionInfo SetOrClearVersionInfoA
  362. #define GetBaseFileName GetBaseFileNameA
  363. #endif
  364. #ifdef __cplusplus
  365. }
  366. #endif /* __cplusplus */
  367. #endif /* _EXPORTS_H */