mirror of https://github.com/IoTcat/vlmcsd.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
9 years ago
|
/*
|
||
|
* libkms.h
|
||
|
*/
|
||
|
|
||
|
#ifndef LIBKMS_H_
|
||
|
#define LIBKMS_H_
|
||
|
|
||
|
#include "types.h"
|
||
|
#include "kms.h"
|
||
|
#include "rpc.h"
|
||
8 years ago
|
#include "vlmcs.h"
|
||
9 years ago
|
|
||
8 years ago
|
#ifndef EXTERNC
|
||
9 years ago
|
#ifdef __cplusplus
|
||
8 years ago
|
#define EXTERNC EXTERN "C"
|
||
9 years ago
|
#else
|
||
|
#define EXTERNC
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
8 years ago
|
EXTERNC __declspec(EXTERNAL) DWORD __cdecl SendKMSRequest(const SOCKET sock, RESPONSE* baseResponse, REQUEST* baseRequest, RESPONSE_RESULT* result, BYTE *hwid);
|
||
9 years ago
|
EXTERNC __declspec(EXTERNAL) DWORD __cdecl StartKmsServer(const int port, RequestCallback_t requestCallback);
|
||
|
EXTERNC __declspec(EXTERNAL) DWORD __cdecl StopKmsServer();
|
||
|
EXTERNC __declspec(EXTERNAL) int __cdecl GetLibKmsVersion();
|
||
8 years ago
|
EXTERNC __declspec(EXTERNAL) const char* const __cdecl GetEmulatorVersion();
|
||
8 years ago
|
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);
|
||
9 years ago
|
//EXTERN_C __declspec(EXTERNAL) unsigned int __cdecl GetRandom32();
|
||
|
|
||
|
|
||
|
#endif /* LIBKMS_H_ */
|