plugplay: Use ncacn_np instead of ncalrpc transport.

The ncacn_np should be used when the endpoint is a pipe, ncalrpc should
only be used with arbitrary named ports, which we translate into
\\pipe\lrpc\xxx pipe names.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-01-26 10:50:20 +01:00 committed by Alexandre Julliard
parent 0c88a52440
commit baebd3c14f
4 changed files with 4 additions and 3 deletions

View File

@ -1084,7 +1084,7 @@ void pnp_manager_start(void)
{
static const WCHAR driver_nameW[] = {'\\','D','r','i','v','e','r','\\','P','n','p','M','a','n','a','g','e','r',0};
WCHAR endpoint[] = L"\\pipe\\wine_plugplay";
WCHAR protseq[] = L"ncalrpc";
WCHAR protseq[] = L"ncacn_np";
UNICODE_STRING driver_nameU;
RPC_WSTR binding_str;
NTSTATUS status;

View File

@ -1988,7 +1988,7 @@ struct device_notify_registration
static DWORD WINAPI device_notify_proc( void *arg )
{
WCHAR endpoint[] = L"\\pipe\\wine_plugplay";
WCHAR protseq[] = L"ncalrpc";
WCHAR protseq[] = L"ncacn_np";
RPC_WSTR binding_str;
DWORD err = ERROR_SUCCESS;
struct device_notify_registration *registration;

View File

@ -20,6 +20,7 @@ import "wtypes.idl";
[
uuid(57c680ac-7bce-4f39-97fd-ffea566754d5),
endpoint("ncacn_np:[\\pipe\\wine_plugplay]"),
implicit_handle(handle_t plugplay_binding_handle)
]
interface plugplay

View File

@ -200,7 +200,7 @@ static DWORD WINAPI service_handler( DWORD ctrl, DWORD event_type, LPVOID event_
static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
{
unsigned char endpoint[] = "\\pipe\\wine_plugplay";
unsigned char protseq[] = "ncalrpc";
unsigned char protseq[] = "ncacn_np";
SERVICE_STATUS status;
RPC_STATUS err;