1 | /*
|
---|
2 | * Copyright 2005 Francois Gouget
|
---|
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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "oaidl.idl";
|
---|
29 |
|
---|
30 | typedef enum
|
---|
31 | {
|
---|
32 | ADS_RIGHT_DS_CREATE_CHILD = 0x00000001,
|
---|
33 | ADS_RIGHT_DS_DELETE_CHILD = 0x00000002,
|
---|
34 | ADS_RIGHT_ACTRL_DS_LIST = 0x00000004,
|
---|
35 | ADS_RIGHT_DS_SELF = 0x00000008,
|
---|
36 | ADS_RIGHT_DS_READ_PROP = 0x00000010,
|
---|
37 | ADS_RIGHT_DS_WRITE_PROP = 0x00000020,
|
---|
38 | ADS_RIGHT_DS_DELETE_TREE = 0x00000040,
|
---|
39 | ADS_RIGHT_DS_LIST_OBJECT = 0x00000080,
|
---|
40 | ADS_RIGHT_DS_CONTROL_ACCESS = 0x00000100,
|
---|
41 |
|
---|
42 | ADS_RIGHT_DELETE = 0x00010000,
|
---|
43 | ADS_RIGHT_READ_CONTROL = 0x00020000,
|
---|
44 | ADS_RIGHT_WRITE_DAC = 0x00040000,
|
---|
45 | ADS_RIGHT_WRITE_OWNER = 0x00080000,
|
---|
46 | ADS_RIGHT_SYNCHRONIZE = 0x00100000,
|
---|
47 | ADS_RIGHT_ACCESS_SYSTEM_SECURITY = 0x00200000,
|
---|
48 |
|
---|
49 | ADS_RIGHT_GENERIC_ALL = 0x10000000,
|
---|
50 | ADS_RIGHT_GENERIC_EXECUTE = 0x20000000,
|
---|
51 | ADS_RIGHT_GENERIC_WRITE = 0x40000000,
|
---|
52 | ADS_RIGHT_GENERIC_READ = 0x80000000
|
---|
53 | } ADS_RIGHTS_ENUM;
|
---|
54 |
|
---|
55 | /*****************************************************************************
|
---|
56 | * IADsContainer interface
|
---|
57 | */
|
---|
58 | [
|
---|
59 | object,
|
---|
60 | uuid(001677d0-fd16-11ce-abc4-02608c9e7553)
|
---|
61 | ]
|
---|
62 | interface IADsContainer: IDispatch
|
---|
63 | {
|
---|
64 | [propget] HRESULT Count(
|
---|
65 | [out, retval] long *retval);
|
---|
66 | [propget, restricted] HRESULT _NewEnum(
|
---|
67 | [out, retval] IUnknown **retval);
|
---|
68 | [propget] HRESULT Filter(
|
---|
69 | [out, retval] VARIANT *pvFilter);
|
---|
70 | [propput] HRESULT Filter(
|
---|
71 | [in] VARIANT vFilter);
|
---|
72 | [propget] HRESULT Hints(
|
---|
73 | [out, retval] VARIANT *pvHints);
|
---|
74 | [propput] HRESULT Hints(
|
---|
75 | [in] VARIANT vHints);
|
---|
76 | HRESULT GetObject(
|
---|
77 | [in] BSTR bstrClassName,
|
---|
78 | [in] BSTR bstrRelativeName,
|
---|
79 | [out, retval] IDispatch **ppObject);
|
---|
80 | HRESULT Create(
|
---|
81 | [in] BSTR bstrClassName,
|
---|
82 | [in] BSTR bstrRelativeName,
|
---|
83 | [out, retval] IDispatch **ppObject);
|
---|
84 | HRESULT Delete(
|
---|
85 | [in] BSTR bstrClassName,
|
---|
86 | [in] BSTR bstrRelativeName);
|
---|
87 | HRESULT CopyHere(
|
---|
88 | [in] BSTR bstrSourceName,
|
---|
89 | [in] BSTR bstrNewName,
|
---|
90 | [out, retval] IDispatch **ppObject);
|
---|
91 | HRESULT MoveHere(
|
---|
92 | [in] BSTR bstrSourceName,
|
---|
93 | [in] BSTR bstrNewName,
|
---|
94 | [out, retval] IDispatch **ppObject);
|
---|
95 | }
|
---|