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.

45 lines
2.0 KiB

  1. // The following ifdef block is the standard way of creating macros which make exporting
  2. // from a DLL simpler. All files within this DLL are compiled with the ADMINPAK_EXPORTS
  3. // symbol defined on the command line. this symbol should not be defined on any project
  4. // that uses this DLL. This way any other project whose source files include this file see
  5. // ADMINPAK_API functions as being imported from a DLL, wheras this DLL sees symbols
  6. // defined with this macro as being exported.
  7. #ifdef ADMINPAK_EXPORTS
  8. #define ADMINPAK_API __declspec(dllexport)
  9. #else
  10. #define ADMINPAK_API __declspec(dllimport)
  11. #endif
  12. // This class is exported from the adminpak.dll
  13. class ADMINPAK_API CAdminpakDLL {
  14. public:
  15. CAdminpakDLL(void) {}
  16. };
  17. extern "C" ADMINPAK_API int __stdcall fnMigrateProfilesToNewCmak( MSIHANDLE hInstall );
  18. extern "C" ADMINPAK_API int __stdcall fnDeleteOldCmakVersion( MSIHANDLE hInstall );
  19. extern "C" ADMINPAK_API int __stdcall fnTSIntegration( MSIHANDLE hInstall );
  20. extern "C" ADMINPAK_API int __stdcall fnDeleteIISLink( MSIHANDLE hInstall );
  21. extern "C" ADMINPAK_API int __stdcall fnDetectMMC( MSIHANDLE hInstall );
  22. extern "C" ADMINPAK_API int __stdcall fnAdminToolsFolderOn( MSIHANDLE hInstall );
  23. extern "C" ADMINPAK_API int __stdcall fnAdminToolsFolderOff( MSIHANDLE hInstall );
  24. extern "C" ADMINPAK_API int __stdcall fnBackupAdminpakBackupTable( MSIHANDLE hInstall );
  25. extern "C" ADMINPAK_API int __stdcall fnRestoreAdminpakBackupTable( MSIHANDLE hInstall );
  26. //AdminpakBackup table column headers
  27. static int BACKUPID = 1;
  28. static int ORIGINALFILENAME = 2;
  29. static int BACKUPFILENAME = 3;
  30. static int BACKUPDIRECTORY = 4;
  31. // includes
  32. #include <comdef.h>
  33. #include <chstring.h>
  34. // prototypes for the the generic functions
  35. BOOL TransformDirectory( MSIHANDLE hInstall, CHString& strDirectory );
  36. BOOL PropertyGet_String( MSIHANDLE hInstall, LPCWSTR pwszProperty, CHString& strValue );
  37. BOOL GetFieldValueFromRecord_String( MSIHANDLE hRecord, DWORD dwColumn, CHString& strValue );