summaryrefslogtreecommitdiff
path: root/general/WinHEC 2017 Lab/Toaster Support App/App/CustomCapability/cpp/RpcClient.h
blob: 0ee5ff787a1d08c42fbe49106f5d1b623ba0642c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// RpcClient.h
//

#pragma once

#define RPC_STATIC_ENDPOINT L"HsaSampleRpcEndpoint"

#include "RpcInterface_h.h"

namespace SDKTemplate
{
    /// <summary>
    /// Client side RPC implementation
    /// </summary>
    private class RpcClient sealed
    {
    public:
        ~RpcClient();
        __int64 Initialize();
        __int64 StartMeteringAndWaitForStop(__int64 samplePeriod);
        __int64 StopMetering();
        __int64 SetSampleRate(int rate);
        int CallbackCount;
        __int64 MeteringData;
    private:
        handle_t hRpcBinding;
        PCONTEXT_HANDLE_TYPE phContext;
    };
}