| 1 | #pragma once |
| 2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 3 | |
| 4 | |
| 5 | #include "scadb.h" |
| 6 | |
| 7 | struct SCA_SQLSTR |
| 8 | { |
| 9 | // darwin information |
| 10 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 11 | WCHAR wzComponent[MAX_DARWIN_KEY + 1]; |
| 12 | INSTALLSTATE isInstalled, isAction; |
| 13 | |
| 14 | WCHAR wzSqlDb[MAX_DARWIN_COLUMN + 1]; |
| 15 | |
| 16 | BOOL fHasUser; |
| 17 | SCA_USER scau; |
| 18 | |
| 19 | LPWSTR pwzSql; |
| 20 | int iAttributes; |
| 21 | int iSequence; //used to sequence Wix4SqlString and Wix4SqlScript tables together |
| 22 | |
| 23 | SCA_SQLSTR* psssNext; |
| 24 | }; |
| 25 | |
| 26 | |
| 27 | // prototypes |
| 28 | HRESULT ScaSqlStrsRead( |
| 29 | __inout SCA_SQLSTR** ppsssList, |
| 30 | __in SCA_ACTION saAction |
| 31 | ); |
| 32 | |
| 33 | HRESULT ScaSqlStrsReadScripts( |
| 34 | __inout SCA_SQLSTR** ppsssList, |
| 35 | __in SCA_ACTION saAction |
| 36 | ); |
| 37 | |
| 38 | HRESULT ScaSqlStrsInstall( |
| 39 | __in SCA_DB* psdList, |
| 40 | __in SCA_SQLSTR* psssList |
| 41 | ); |
| 42 | |
| 43 | HRESULT ScaSqlStrsUninstall( |
| 44 | __in SCA_DB* psdList, |
| 45 | __in SCA_SQLSTR* psssList |
| 46 | ); |
| 47 | |
| 48 | void ScaSqlStrsFreeList( |
| 49 | __in SCA_SQLSTR* psssList |
| 50 | ); |
| 51 |