1
0
mirror of https://github.com/Wind4/vlmcsd.git synced 2024-11-28 21:11:03 +08:00
vlmcsd/msrpc-client.h

24 lines
641 B
C
Raw Normal View History

2015-11-29 17:30:52 +08:00
/*
* msrpc-client.h
*/
#ifndef MSRPC_CLIENT_H_
#define MSRPC_CLIENT_H_
#include "types.h"
#include <setjmp.h>
2016-08-15 18:35:59 +08:00
#include "output.h"
2015-11-29 17:30:52 +08:00
typedef int_fast8_t RpcCtx;
typedef RPC_STATUS RpcStatus;
RpcCtx connectToAddress(char *const addr, const int AddressFamily_unused, int_fast8_t showHostName);
int_fast8_t isDisconnected(const RpcCtx handle);
RpcStatus rpcBindClient(const RpcCtx handle, const int_fast8_t verbose);
RpcStatus rpcSendRequest(const RpcCtx handle, BYTE* KmsRequest, size_t requestSize, BYTE **KmsResponse, size_t *responseSize);
RpcStatus closeRpc(RpcCtx s);
#define INVALID_RPCCTX ((RpcCtx)~0)
#endif /* MSRPC_CLIENT_H_ */