Author: cwittich
Date: Fri Mar 20 16:44:06 2009
New Revision: 40134
URL:
http://svn.reactos.org/svn/reactos?rev=40134&view=rev
Log:
use ncalrpc instead of a named pipe
Modified:
trunk/reactos/dll/win32/wlanapi/main.c
Modified: trunk/reactos/dll/win32/wlanapi/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wlanapi/main.c?r…
==============================================================================
--- trunk/reactos/dll/win32/wlanapi/main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wlanapi/main.c [iso-8859-1] Fri Mar 20 16:44:06 2009
@@ -20,6 +20,7 @@
/* INCLUDES ****************************************************************/
+#define WIN32_NO_STATUS
#include <windows.h>
#include "wlansvc_c.h"
@@ -37,9 +38,9 @@
TRACE("RPC_SERVICE_STATUS_HANDLE_bind() called\n");
Status = RpcStringBindingComposeW(NULL,
- L"ncacn_np",
+ L"ncalrpc",
szMachineName,
- L"\\pipe\\trkwks",
+ L"wlansvc",
NULL,
&pszStringBinding);
if (Status != RPC_S_OK)
@@ -102,13 +103,14 @@
OUT HANDLE *phClientHandle)
{
DWORD dwError = ERROR_SUCCESS;
+ WCHAR szDummy[] = L"localhost";
if ((pReserved != NULL) || (pdwNegotiatedVersion == NULL) || (phClientHandle ==
NULL))
return ERROR_INVALID_PARAMETER;
RpcTryExcept
{
- dwError = _RpcOpenHandle(NULL,
+ dwError = _RpcOpenHandle(szDummy,
dwClientVersion,
pdwNegotiatedVersion,
(WLANSVC_RPC_HANDLE) phClientHandle);