libkms.h 816 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * libkms.h
  3. */
  4. #ifndef LIBKMS_H_
  5. #define LIBKMS_H_
  6. #include "types.h"
  7. #include "kms.h"
  8. #include "rpc.h"
  9. #ifndef EXTERNC
  10. #ifdef __cplusplus
  11. #define EXTERNC EXTERN "C"
  12. #else
  13. #define EXTERNC
  14. #endif
  15. #endif
  16. EXTERNC __declspec(EXTERNAL) DWORD __cdecl SendActivationRequest(const char* const hostname, const int port, RESPONSE* baseResponse, const REQUEST* const baseRequest, RESPONSE_RESULT* result, BYTE *hwid);
  17. EXTERNC __declspec(EXTERNAL) DWORD __cdecl StartKmsServer(const int port, RequestCallback_t requestCallback);
  18. EXTERNC __declspec(EXTERNAL) DWORD __cdecl StopKmsServer();
  19. EXTERNC __declspec(EXTERNAL) int __cdecl GetLibKmsVersion();
  20. EXTERNC __declspec(EXTERNAL) const char* const __cdecl GetEmulatorVersion();
  21. //EXTERN_C __declspec(EXTERNAL) unsigned int __cdecl GetRandom32();
  22. #endif /* LIBKMS_H_ */