main
h 55 lines 1.09 KB
Raw
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 "scauser.h"
6 #include "sqlutil.h"
7
8 struct SCA_DB
9 {
10 // darwin information
11 WCHAR wzKey[MAX_DARWIN_KEY + 1];
12 BOOL fHasComponent;
13 WCHAR wzComponent[MAX_DARWIN_KEY + 1];
14 INSTALLSTATE isInstalled, isAction;
15
16 WCHAR wzServer[MAX_DARWIN_COLUMN + 1];
17 WCHAR wzInstance[MAX_DARWIN_COLUMN + 1];
18 WCHAR wzDatabase[MAX_DARWIN_COLUMN + 1];
19
20 int iAttributes;
21
22 BOOL fUseIntegratedAuth;
23 SCA_USER scau;
24
25 BOOL fHasDbSpec;
26 SQL_FILESPEC sfDb;
27 BOOL fHasLogSpec;
28 SQL_FILESPEC sfLog;
29
30 SCA_DB* psdNext;
31 };
32
33
34 // prototypes
35 HRESULT ScaDbsRead(
36 __inout SCA_DB** ppsdList,
37 __in SCA_ACTION saAction
38 );
39
40 SCA_DB* ScaDbsFindDatabase(
41 __in LPCWSTR wzSqlDb,
42 __in SCA_DB* psdList
43 );
44
45 HRESULT ScaDbsInstall(
46 __in SCA_DB* psdList
47 );
48
49 HRESULT ScaDbsUninstall(
50 __in SCA_DB* psdList
51 );
52
53 void ScaDbsFreeList(
54 __in SCA_DB* psdList
55 );