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.

39 lines
1.8 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 PWDMSI_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. // PWDMSI_API functions as being imported from a DLL, wheras this DLL sees symbols
  6. // defined with this macro as being exported.
  7. #ifdef PWDMSI_EXPORTS
  8. #define PWDMSI_API __declspec(dllexport)
  9. #else
  10. #define PWDMSI_API __declspec(dllimport)
  11. #endif
  12. // This class is exported from the PwdMsi.dll
  13. class PWDMSI_API CPwdMsi {
  14. public:
  15. CPwdMsi(void);
  16. // TODO: add your methods here.
  17. };
  18. // the function LoadOLEAUT32OnNT4 has to be called at the beginning of each function
  19. // in this dll in order to provide a workaround for the buggy implementation of
  20. // SysAllocString on NT4
  21. // this buggy implementation of SysAllocString will cause the OLEAUT32.dll to unload
  22. // prematurely, which results in an AV when any other dll references any function
  23. // in OLEAUT32.dll
  24. void LoadOLEAUT32OnNT4();
  25. PWDMSI_API UINT __stdcall IsDC(MSIHANDLE hInstall);
  26. PWDMSI_API UINT __stdcall DisplayExiting(MSIHANDLE hInstall);
  27. PWDMSI_API UINT __stdcall DeleteOldFiles(MSIHANDLE hInstall);
  28. PWDMSI_API UINT __stdcall GetInstallEncryptionKey(MSIHANDLE hInstall);
  29. PWDMSI_API UINT __stdcall AddToLsaNotificationPkgValue(MSIHANDLE hInstall);
  30. PWDMSI_API UINT __stdcall DeleteFromLsaNotificationPkgValue(MSIHANDLE hInstall);
  31. PWDMSI_API UINT __stdcall FinishWithPassword(MSIHANDLE hInstall);
  32. PWDMSI_API UINT __stdcall PwdsDontMatch(MSIHANDLE hInstall);
  33. PWDMSI_API UINT __stdcall BrowseForEncryptionKey(MSIHANDLE hInstall);
  34. PWDMSI_API UINT __stdcall GetDefaultPathToEncryptionKey(MSIHANDLE hInstall);