Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
9b3418d4
Commit
9b3418d4
authored
Feb 13, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Add IADsOpenDSObject stubs.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5b1ea578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
0 deletions
+102
-0
adsldp.c
dlls/adsldp/adsldp.c
+102
-0
No files found.
dlls/adsldp/adsldp.c
View file @
9b3418d4
...
...
@@ -258,6 +258,7 @@ static HRESULT ADSystemInfo_create(REFIID riid, void **obj)
typedef
struct
{
IADs
IADs_iface
;
IADsOpenDSObject
IADsOpenDSObject_iface
;
LONG
ref
;
}
LDAP_namespace
;
...
...
@@ -268,6 +269,8 @@ static inline LDAP_namespace *impl_from_IADs(IADs *iface)
static
HRESULT
WINAPI
ldapns_QueryInterface
(
IADs
*
iface
,
REFIID
riid
,
void
**
obj
)
{
LDAP_namespace
*
ldap
=
impl_from_IADs
(
iface
);
TRACE
(
"%p,%s,%p
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
if
(
!
riid
||
!
obj
)
return
E_INVALIDARG
;
...
...
@@ -281,6 +284,13 @@ static HRESULT WINAPI ldapns_QueryInterface(IADs *iface, REFIID riid, void **obj
return
S_OK
;
}
if
(
IsEqualGUID
(
riid
,
&
IID_IADsOpenDSObject
))
{
IADs_AddRef
(
iface
);
*
obj
=
&
ldap
->
IADsOpenDSObject_iface
;
return
S_OK
;
}
FIXME
(
"interface %s is not implemented
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
...
...
@@ -434,6 +444,97 @@ static const IADsVtbl IADs_vtbl =
ldapns_GetInfoEx
};
static
inline
LDAP_namespace
*
impl_from_IADsOpenDSObject
(
IADsOpenDSObject
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
LDAP_namespace
,
IADsOpenDSObject_iface
);
}
static
HRESULT
WINAPI
openobj_QueryInterface
(
IADsOpenDSObject
*
iface
,
REFIID
riid
,
void
**
obj
)
{
TRACE
(
"%p,%s,%p
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
if
(
!
riid
||
!
obj
)
return
E_INVALIDARG
;
if
(
IsEqualGUID
(
riid
,
&
IID_IADsOpenDSObject
)
||
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
))
{
IADsOpenDSObject_AddRef
(
iface
);
*
obj
=
iface
;
return
S_OK
;
}
FIXME
(
"interface %s is not implemented
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
openobj_AddRef
(
IADsOpenDSObject
*
iface
)
{
LDAP_namespace
*
ldap
=
impl_from_IADsOpenDSObject
(
iface
);
return
InterlockedIncrement
(
&
ldap
->
ref
);
}
static
ULONG
WINAPI
openobj_Release
(
IADsOpenDSObject
*
iface
)
{
LDAP_namespace
*
ldap
=
impl_from_IADsOpenDSObject
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
ldap
->
ref
);
if
(
!
ref
)
{
TRACE
(
"destroying %p
\n
"
,
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
ldap
);
}
return
ref
;
}
static
HRESULT
WINAPI
openobj_GetTypeInfoCount
(
IADsOpenDSObject
*
iface
,
UINT
*
count
)
{
FIXME
(
"%p,%p: stub
\n
"
,
iface
,
count
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_GetTypeInfo
(
IADsOpenDSObject
*
iface
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
info
)
{
FIXME
(
"%p,%u,%#x,%p: stub
\n
"
,
iface
,
index
,
lcid
,
info
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_GetIDsOfNames
(
IADsOpenDSObject
*
iface
,
REFIID
riid
,
LPOLESTR
*
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
dispid
)
{
FIXME
(
"%p,%s,%p,%u,%u,%p: stub
\n
"
,
iface
,
debugstr_guid
(
riid
),
names
,
count
,
lcid
,
dispid
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_Invoke
(
IADsOpenDSObject
*
iface
,
DISPID
dispid
,
REFIID
riid
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
result
,
EXCEPINFO
*
excepinfo
,
UINT
*
argerr
)
{
FIXME
(
"%p,%d,%s,%04x,%04x,%p,%p,%p,%p: stub
\n
"
,
iface
,
dispid
,
debugstr_guid
(
riid
),
lcid
,
flags
,
params
,
result
,
excepinfo
,
argerr
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
openobj_OpenDSObject
(
IADsOpenDSObject
*
iface
,
BSTR
path
,
BSTR
user
,
BSTR
password
,
LONG
reserved
,
IDispatch
**
obj
)
{
FIXME
(
"%p,%s,%s,%s,%d,%p: stub
\n
"
,
iface
,
debugstr_w
(
path
),
debugstr_w
(
user
),
debugstr_w
(
password
),
reserved
,
obj
);
return
E_NOTIMPL
;
}
static
const
IADsOpenDSObjectVtbl
IADsOpenDSObject_vtbl
=
{
openobj_QueryInterface
,
openobj_AddRef
,
openobj_Release
,
openobj_GetTypeInfoCount
,
openobj_GetTypeInfo
,
openobj_GetIDsOfNames
,
openobj_Invoke
,
openobj_OpenDSObject
};
static
HRESULT
LDAPNamespace_create
(
REFIID
riid
,
void
**
obj
)
{
LDAP_namespace
*
ldap
;
...
...
@@ -443,6 +544,7 @@ static HRESULT LDAPNamespace_create(REFIID riid, void **obj)
if
(
!
ldap
)
return
E_OUTOFMEMORY
;
ldap
->
IADs_iface
.
lpVtbl
=
&
IADs_vtbl
;
ldap
->
IADsOpenDSObject_iface
.
lpVtbl
=
&
IADsOpenDSObject_vtbl
;
ldap
->
ref
=
1
;
hr
=
IADs_QueryInterface
(
&
ldap
->
IADs_iface
,
riid
,
obj
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment