modified: pixi.toml
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / libkms.h
blob2c23cabc387b3ba58f213e51c0628766fda7e49e
1 /*
2 * libkms.h
3 */
5 #ifndef LIBKMS_H_
6 #define LIBKMS_H_
8 #include "types.h"
9 #include "kms.h"
10 #include "rpc.h"
12 #ifdef __cplusplus
13 #define EXTERNC extern "C"
14 #else
15 #define EXTERNC
16 #endif
18 #if !defined(_WIN32) && !__CYGWIN__
19 #define __declspec(x) __attribute__((__visibility__("default")))
20 #endif
22 #if !defined(EXTERNAL)
23 #define EXTERNAL dllimport
24 #endif
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_ */