summaryrefslogtreecommitdiff
path: root/general/WinHEC 2017 Lab/Toaster Driver/Service/RpcServer.h
blob: bc7294dbf7aa50778ef631cb4912356d1fd0f612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "metering.h"

#define RPC_STATIC_ENDPOINT L"HsaSampleRpcEndpoint"

// Client context used for making rpc calls using context handle
// https://msdn.microsoft.com/en-us/library/windows/desktop/aa378674(v=vs.85).aspx
typedef struct
{
    RpcServer::Metering* metering;
} METERING_CONTEXT;

// Create a rpc server endpoint and listen to incoming rpc calls
DWORD RpcServerStart();

// Signal the rpc server to stop listening to incoming rpc calls
void RpcServerDisconnect();