Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import "oaidl.idl";
import "unknwn.idl";

[uuid (906B0CE0-C70B-1067-B317-00DD010662DA),
[uuid (793F4B24-33C4-4378-BF77-52EC8172CBD4),
version(1.0),
pointer_default(unique),
]
Expand Down
27 changes: 0 additions & 27 deletions Samples/CustomCapability/Service/Server/RpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ using namespace RpcServer;
const WCHAR* CustomCapabilityName = L"microsoft.hsaTestCustomCapability_q536wpkpf5cy2";

bool ShutdownRequested;
static RPC_BINDING_VECTOR* BindingVector = nullptr;

void FreeSidArray(__inout_ecount(cSIDs) PSID* pSIDs, ULONG cSIDs)
{
Expand Down Expand Up @@ -184,24 +183,6 @@ DWORD RpcServerStart()
goto end;
}

hResult = RpcServerInqBindings(&BindingVector);

if (hResult != S_OK)
{
goto end;
}

hResult = RpcEpRegister(
RpcInterface_v1_0_s_ifspec,
BindingVector,
nullptr,
nullptr);

if (hResult != S_OK)
{
goto end;
}

hResult = RpcServerListen(
minCalls,
RPC_C_LISTEN_MAX_CALLS_DEFAULT,
Expand Down Expand Up @@ -240,14 +221,6 @@ void RpcServerDisconnect()
DWORD hResult = S_OK;
ShutdownRequested = true;
hResult = RpcServerUnregisterIf(RpcInterface_v1_0_s_ifspec, nullptr, 0);

RpcEpUnregister(RpcInterface_v1_0_s_ifspec, BindingVector, nullptr);

if (BindingVector != nullptr)
{
RpcBindingVectorFree(&BindingVector);
BindingVector = nullptr;
}
}

//
Expand Down