Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
07e41e4c
Commit
07e41e4c
authored
Apr 29, 2018
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Apr 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Add DsEnumerateDomainTrustsA/W stubs.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
816b22a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
netapi32.c
dlls/netapi32/netapi32.c
+18
-0
netapi32.spec
dlls/netapi32/netapi32.spec
+2
-1
dsgetdc.h
include/dsgetdc.h
+26
-0
No files found.
dlls/netapi32/netapi32.c
View file @
07e41e4c
...
...
@@ -3544,6 +3544,24 @@ DWORD WINAPI DavGetUNCFromHTTPPath(const WCHAR *http_path, WCHAR *buf, DWORD *bu
return
ERROR_SUCCESS
;
}
/************************************************************
* DsEnumerateDomainTrustsA (NETAPI32.@)
*/
DWORD
WINAPI
DsEnumerateDomainTrustsA
(
LPSTR
server
,
ULONG
flags
,
PDS_DOMAIN_TRUSTSA
*
domains
,
PULONG
count
)
{
FIXME
(
"(%s, 0x%04x, %p, %p): stub
\n
"
,
debugstr_a
(
server
),
flags
,
domains
,
count
);
return
ERROR_NO_LOGON_SERVERS
;
}
/************************************************************
* DsEnumerateDomainTrustsW (NETAPI32.@)
*/
DWORD
WINAPI
DsEnumerateDomainTrustsW
(
LPWSTR
server
,
ULONG
flags
,
PDS_DOMAIN_TRUSTSW
*
domains
,
PULONG
count
)
{
FIXME
(
"(%s, 0x%04x, %p, %p): stub
\n
"
,
debugstr_w
(
server
),
flags
,
domains
,
count
);
return
ERROR_NO_LOGON_SERVERS
;
}
DECLSPEC_HIDDEN
void
__RPC_FAR
*
__RPC_USER
MIDL_user_allocate
(
SIZE_T
n
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
n
);
...
...
dlls/netapi32/netapi32.spec
View file @
07e41e4c
...
...
@@ -3,7 +3,8 @@
@ stub DsAddressToSiteNames
@ stub DsAddressToSiteNamesEx
@ stub DsDeregisterDnsHostRecords
@ stub DsEnumerateDomainTrusts
@ stdcall DsEnumerateDomainTrustsA(str long ptr ptr)
@ stdcall DsEnumerateDomainTrustsW(wstr long ptr ptr)
@ stub DsGetDcClose
@ stdcall DsGetDcNameA(str str ptr str long ptr)
@ stdcall DsGetDcNameW(wstr wstr ptr wstr long ptr)
...
...
include/dsgetdc.h
View file @
07e41e4c
...
...
@@ -86,6 +86,28 @@ typedef struct _DOMAIN_CONTROLLER_INFOW {
LPWSTR
ClientSiteName
;
}
DOMAIN_CONTROLLER_INFOW
,
*
PDOMAIN_CONTROLLER_INFOW
;
typedef
struct
_DS_DOMAIN_TRUSTSA
{
LPSTR
NetbiosDomainName
;
LPSTR
DnsDomainName
;
ULONG
Flags
;
ULONG
ParentIndex
;
ULONG
TrustType
;
ULONG
TrustAttributes
;
PSID
DomainSid
;
GUID
DomainGuid
;
}
DS_DOMAIN_TRUSTSA
,
*
PDS_DOMAIN_TRUSTSA
;
typedef
struct
_DS_DOMAIN_TRUSTSW
{
LPWSTR
NetbiosDomainName
;
LPWSTR
DnsDomainName
;
ULONG
Flags
;
ULONG
ParentIndex
;
ULONG
TrustType
;
ULONG
TrustAttributes
;
PSID
DomainSid
;
GUID
DomainGuid
;
}
DS_DOMAIN_TRUSTSW
,
*
PDS_DOMAIN_TRUSTSW
;
DECL_WINELIB_TYPE_AW
(
DOMAIN_CONTROLLER_INFO
)
DWORD
WINAPI
DsGetDcNameA
(
LPCSTR
,
LPCSTR
,
GUID
*
,
LPCSTR
,
ULONG
,
PDOMAIN_CONTROLLER_INFOA
*
);
...
...
@@ -96,6 +118,10 @@ DWORD WINAPI DsGetSiteNameA(LPCSTR ComputerName, LPSTR *SiteName);
DWORD
WINAPI
DsGetSiteNameW
(
LPCWSTR
ComputerName
,
LPWSTR
*
SiteName
);
#define DsGetSiteName WINELIB_NAME_AW(DsGetSiteName)
DWORD
WINAPI
DsEnumerateDomainTrustsA
(
LPSTR
,
ULONG
,
PDS_DOMAIN_TRUSTSA
*
,
PULONG
);
DWORD
WINAPI
DsEnumerateDomainTrustsW
(
LPWSTR
,
ULONG
,
PDS_DOMAIN_TRUSTSW
*
,
PULONG
);
#define DsEnumerateDomainTrusts WINELIB_NAME_AW(DsEnumerateDomainTrusts)
#ifdef __cplusplus
}
#endif
...
...
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