aboutsummaryrefslogtreecommitdiff
path: root/src/ca/scasqlstr.h
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2018-12-16 13:53:48 -0600
committerSean Hall <r.sean.hall@gmail.com>2018-12-16 13:54:52 -0600
commit7d813eaad8eaca04a687d1bb942316232d1c54fd (patch)
tree8f5adb9da22b1f9fb79892fb6cf2de23fac32c71 /src/ca/scasqlstr.h
parent1b7a9d3734119e658c91ebd9742ab5a3ce94cce4 (diff)
downloadwix-7d813eaad8eaca04a687d1bb942316232d1c54fd.tar.gz
wix-7d813eaad8eaca04a687d1bb942316232d1c54fd.tar.bz2
wix-7d813eaad8eaca04a687d1bb942316232d1c54fd.zip
Import implementation of SqlCA from old repo's scasched/scaexec.
Diffstat (limited to 'src/ca/scasqlstr.h')
-rw-r--r--src/ca/scasqlstr.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/ca/scasqlstr.h b/src/ca/scasqlstr.h
new file mode 100644
index 00000000..a6f6df1c
--- /dev/null
+++ b/src/ca/scasqlstr.h
@@ -0,0 +1,51 @@
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
7struct 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 SqlString and SqlScript tables together
22
23 SCA_SQLSTR* psssNext;
24};
25
26
27// prototypes
28HRESULT ScaSqlStrsRead(
29 __inout SCA_SQLSTR** ppsssList,
30 __in SCA_ACTION saAction
31 );
32
33HRESULT ScaSqlStrsReadScripts(
34 __inout SCA_SQLSTR** ppsssList,
35 __in SCA_ACTION saAction
36 );
37
38HRESULT ScaSqlStrsInstall(
39 __in SCA_DB* psdList,
40 __in SCA_SQLSTR* psssList
41 );
42
43HRESULT ScaSqlStrsUninstall(
44 __in SCA_DB* psdList,
45 __in SCA_SQLSTR* psssList
46 );
47
48void ScaSqlStrsFreeList(
49 __in SCA_SQLSTR* psssList
50 );
51