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

35 lines
1.2 KiB
C
Raw Permalink Normal View History

2015-11-29 17:30:52 +08:00
/*
* libkms.h
*/
#ifndef LIBKMS_H_
#define LIBKMS_H_
#include "types.h"
#include "kms.h"
#include "rpc.h"
2016-08-15 18:35:59 +08:00
#include "vlmcs.h"
2015-11-29 17:30:52 +08:00
2016-06-06 10:36:00 +08:00
#ifndef EXTERNC
2015-11-29 17:30:52 +08:00
#ifdef __cplusplus
2016-06-06 10:36:00 +08:00
#define EXTERNC EXTERN "C"
2015-11-29 17:30:52 +08:00
#else
#define EXTERNC
#endif
#endif
2016-08-15 18:35:59 +08:00
EXTERNC __declspec(EXTERNAL) DWORD __cdecl SendKMSRequest(const SOCKET sock, RESPONSE* baseResponse, REQUEST* baseRequest, RESPONSE_RESULT* result, BYTE *hwid);
2015-11-29 17:30:52 +08:00
EXTERNC __declspec(EXTERNAL) DWORD __cdecl StartKmsServer(const int port, RequestCallback_t requestCallback);
EXTERNC __declspec(EXTERNAL) DWORD __cdecl StopKmsServer();
EXTERNC __declspec(EXTERNAL) int __cdecl GetLibKmsVersion();
2016-06-06 10:36:00 +08:00
EXTERNC __declspec(EXTERNAL) const char* const __cdecl GetEmulatorVersion();
2016-08-15 18:35:59 +08:00
EXTERNC __declspec(EXTERNAL) SOCKET __cdecl ConnectToServer(const char* host, const char* port, const int addressFamily);
EXTERNC __declspec(EXTERNAL) char* __cdecl GetErrorMessage();
EXTERNC __declspec(EXTERNAL) void __cdecl CloseConnection(const SOCKET sock);
EXTERNC __declspec(EXTERNAL) RpcStatus __cdecl BindRpc(const SOCKET sock, const int_fast8_t useMultiplexedRpc);
EXTERNC __declspec(EXTERNAL) int_fast8_t __cdecl IsDisconnected(const SOCKET sock);
2015-11-29 17:30:52 +08:00
//EXTERN_C __declspec(EXTERNAL) unsigned int __cdecl GetRandom32();
#endif /* LIBKMS_H_ */