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.

31 lines
1.6 KiB

  1. #ifndef FUSION_MSI_DB_COMMON_H
  2. #define FUSION_MSI_DB_COMMON_H
  3. #define TEMPORARY_DB_OPT 1
  4. //
  5. // constant
  6. //
  7. #define OPT_DIRECTORY 0
  8. #define OPT_CREATEFOLDER 1
  9. #define OPT_REGISTRY 2
  10. #define OPT_DUPLICATEFILE 3
  11. #define OPT_COMPONENT 4
  12. #define NUMBER_OF_PARAM_TO_INSERT_TABLE_DIRECTORY 3
  13. #define NUMBER_OF_PARAM_TO_INSERT_TABLE_CREATEFOLDER 2
  14. #define NUMBER_OF_PARAM_TO_INSERT_TABLE_REGISTRY 4
  15. #define NUMBER_OF_PARAM_TO_INSERT_TABLE_DUPLICATEFILE 5
  16. #define NUMBER_OF_PARAM_TO_INSERT_TABLE_COMPONENT 2
  17. #define INSERT_DIRECTORY L"INSERT INTO Directory (Directory, Directory_Parent, DefaultDir) VALUES (?, ?, ?) "
  18. #define INSERT_CREATEFOLDER L"INSERT INTO CreateFolder(Directory_, Component_) VALUES (?, ?) "
  19. #define INSERT_REGISTRY L"INSERT INTO Registry(Registry, Root, Key, Component_, Name, Value) VALUES (?, ?, ?, ?, '', '') "
  20. #define INSERT_DUPLICATEFILE L"INSERT INTO DuplicateFile(FileKey, Component_, File_, DestName, DestFolder) VALUES (?, ?, ?, ?, ?) "
  21. #define INSERT_COMPONENT L"INSERT INTO Component(Component, Directory_, ComponentId, Attributes, Condition, KeyPath) VALUES (?, ?, '' , '0', '', '')"
  22. extern HRESULT ExecuteInsertTableSQL(DWORD dwFlags, const MSIHANDLE & hdb, DWORD tableIndex, UINT cRecords, ...);
  23. #define MAKE_PCWSTR(x) PCWSTR(x)
  24. #endif