2 * COPYRIGHT: See COPYING in the top level directory
4 * FILE: dll/win32/netapi32/browser.c
5 * PURPOSE: Computer Browser service interface code
6 * PROGRAMMERS: Eric Kohl (eric.kohl@reactos.org)
9 /* INCLUDES ******************************************************************/
15 #include "browser_c.h"
18 WINE_DEFAULT_DEBUG_CHANNEL(netapi32
);
20 /* FUNCTIONS *****************************************************************/
23 BROWSER_IDENTIFY_HANDLE_bind(BROWSER_IDENTIFY_HANDLE pszSystemName
)
25 handle_t hBinding
= NULL
;
26 LPWSTR pszStringBinding
;
29 TRACE("BROWSER_IDENTIFY_HANDLE_bind() called\n");
31 status
= RpcStringBindingComposeW(NULL
,
39 TRACE("RpcStringBindingCompose returned 0x%x\n", status
);
43 /* Set the binding handle that will be used to bind to the server. */
44 status
= RpcBindingFromStringBindingW(pszStringBinding
,
48 TRACE("RpcBindingFromStringBinding returned 0x%x\n", status
);
51 status
= RpcStringFreeW(&pszStringBinding
);
54 // TRACE("RpcStringFree returned 0x%x\n", status);
62 BROWSER_IDENTIFY_HANDLE_unbind(BROWSER_IDENTIFY_HANDLE pszSystemName
,
67 TRACE("BROWSER_IDENTIFY_HANDLE_unbind() called\n");
69 status
= RpcBindingFree(&hBinding
);
72 TRACE("RpcBindingFree returned 0x%x\n", status
);
79 I_BrowserQueryEmulatedDomains(
80 _In_opt_ LPWSTR ServerName
,
81 _Out_ PBROWSER_EMULATED_DOMAIN
*EmulatedDomains
,
82 _Out_ LPDWORD EntriesRead
)
84 FIXME("I_BrowserQueryEmulatedDomains(%s %p %p)\n",
85 debugstr_w(ServerName
), EmulatedDomains
, EntriesRead
);
87 return ERROR_NOT_SUPPORTED
;
93 I_BrowserSetNetlogonState(
94 _In_ LPWSTR ServerName
,
95 _In_ LPWSTR DomainName
,
96 _In_ LPWSTR EmulatedServerName
,
99 FIXME("I_BrowserSetNetlogonState(%s %s %s %lu)\n",
100 debugstr_w(ServerName
), debugstr_w(ServerName
),
101 debugstr_w(EmulatedServerName
), Role
);
103 return ERROR_NOT_SUPPORTED
;
110 _In_opt_ LMCSTR servername
,
112 _Out_ LPBYTE
*bufptr
,
113 _In_ DWORD prefmaxlen
,
114 _Out_ LPDWORD entriesread
,
115 _Out_ LPDWORD totalentries
,
116 _In_ DWORD servertype
,
117 _In_opt_ LMCSTR domain
,
118 _Inout_opt_ LPDWORD resume_handle
)
120 FIXME("NetServerEnum(%s %lu %p %lu %p %p %lu %s %p)\n",
121 debugstr_w(servername
), level
, bufptr
, prefmaxlen
, entriesread
,
122 totalentries
, servertype
, debugstr_w(domain
), resume_handle
);
124 return ERROR_NO_BROWSER_SERVERS_FOUND
;
131 _In_opt_ LMCSTR ServerName
,
133 _Out_ LPBYTE
*Bufptr
,
134 _In_ DWORD PrefMaxlen
,
135 _Out_ LPDWORD EntriesRead
,
136 _Out_ LPDWORD totalentries
,
137 _In_ DWORD servertype
,
138 _In_opt_ LMCSTR domain
,
139 _In_opt_ LMCSTR FirstNameToReturn
)
141 FIXME("NetServerEnumEx(%s %lu %p %lu %p %p %lu %s %s)\n",
142 debugstr_w(ServerName
), Level
, Bufptr
, PrefMaxlen
, EntriesRead
, totalentries
,
143 servertype
, debugstr_w(domain
), debugstr_w(FirstNameToReturn
));
145 return ERROR_NO_BROWSER_SERVERS_FOUND
;