[Bug 38766] RpcBindingServerFromClient is unimplemented, needed to determine client Computer Name/IP Address

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Sep 17 01:29:33 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=38766

Christoph von Wittich <Christoph at ApiViewer.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Christoph at ApiViewer.de

--- Comment #8 from Christoph von Wittich <Christoph at ApiViewer.de> ---
No idea if this is the right approach. I wasn't able to test it yet.

RPCRTAPI RPC_STATUS RPC_ENTRY
RpcBindingServerFromClient( RPC_BINDING_HANDLE ClientBinding,
RPC_BINDING_HANDLE *ServerBinding )
{
    RpcBinding *bind = ClientBinding;
    RpcBinding *NewBinding;

    if (!bind) bind = I_RpcGetCurrentCallHandle();

    if (!bind->server)
        return RPC_S_INVALID_BINDING;

    RPCRT4_AllocBinding(&NewBinding, TRUE);

    NewBinding->NetworkAddr =
RPCRT4_strndupA(bind->FromConn->server_binding->NetworkAddr, -1);
    NewBinding->Endpoint =
RPCRT4_strndupA(bind->FromConn->server_binding->Endpoint, -1);

    *ServerBinding = NewBinding;

    return RPC_S_OK;
}

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list