13 #define EXTERNC extern "C"
18 #if !defined(_WIN32) && !__CYGWIN__
19 #define __declspec(x) __attribute__((__visibility__("default")))
22 #if !defined(EXTERNAL)
23 #define EXTERNAL dllimport
26 EXTERNC
__declspec(EXTERNAL
) DWORD __cdecl
SendActivationRequest(const char* const hostname
, const int port
, RESPONSE
* baseResponse
, const REQUEST
* const baseRequest
, RESPONSE_RESULT
* result
, BYTE
*hwid
);
27 EXTERNC
__declspec(EXTERNAL
) DWORD __cdecl
StartKmsServer(const int port
, RequestCallback_t requestCallback
);
28 EXTERNC
__declspec(EXTERNAL
) DWORD __cdecl
StopKmsServer();
29 EXTERNC
__declspec(EXTERNAL
) int __cdecl
GetLibKmsVersion();
30 //EXTERN_C __declspec(EXTERNAL) unsigned int __cdecl GetRandom32();
33 #endif /* LIBKMS_H_ */