advapi32: Add AddMandatoryAce stub.
[wine] / include / msdasc.idl
1 /*
2  * Copyright (C) 2012 Alistair Leslie-Hughes
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 import "oaidl.idl";
20 import "ocidl.idl";
21 import "oledb.idl";
22
23 #if !defined(progid) && !defined(__WIDL__)
24 #define threading(model)
25 #define progid(str)
26 #define vi_progid(str)
27 #endif
28
29 [
30     uuid(2206CEB0-19C1-11D1-89E0-00C04FD7A829),
31     version(1.0)
32 ]
33 library MSDASC
34 {
35     importlib("stdole2.tlb");
36
37     [
38       uuid(2206CCB1-19C1-11D1-89E0-00C04FD7A829),
39     ]
40     interface IDataInitialize : IUnknown
41     {
42         HRESULT GetDataSource([in] IUnknown* pUnkOuter, [in]  DWORD dwClsCtx,
43                         [in] LPWSTR pwszInitializationString, [in] REFIID riid,
44                         [in, out] IUnknown** ppDataSource);
45
46         HRESULT GetInitializationString([in] IUnknown* pDataSource, [in] boolean fIncludePassword,
47                         [out] LPWSTR* ppwszInitString);
48
49         HRESULT CreateDBInstance([in] REFCLSID clsidProvider, [in] IUnknown* pUnkOuter,
50                         [in] DWORD dwClsCtx, [in] LPWSTR pwszReserved,
51                         [in] REFIID riid, [out] IUnknown** ppDataSource);
52
53         HRESULT RemoteCreateDBInstanceEx([in] REFCLSID clsidProvider,  [in] IUnknown* pUnkOuter,
54                         [in] DWORD dwClsCtx, [in] LPWSTR pwszReserved,  [in] COSERVERINFO* pServerInfo,
55                         [in] DWORD cmq,  [in] GUID** rgpIID,  [out] IUnknown** rgpItf,
56                         [out] HRESULT* rghr);
57
58         HRESULT LoadStringFromStorage([in] LPWSTR pwszFileName, [out] LPWSTR* ppwszInitializationString);
59
60         HRESULT WriteStringToStorage([in] LPWSTR pwszFileName,  [in] LPWSTR pwszInitializationString,
61                         [in] DWORD dwCreationDisposition);
62     }
63
64     [
65       uuid(2206CDB0-19C1-11D1-89E0-00C04FD7A829),
66       threading(both),
67       progid("MSDASC.MSDAINITIALIZE.1"),
68       vi_progid("MSDASC.MSDAINITIALIZE"),
69     ]
70     coclass MSDAINITIALIZE
71     {
72         [default] interface IDataInitialize;
73     }
74 }