diff --git a/cryptlex/lexfloatclient/lexfloatclient.py b/cryptlex/lexfloatclient/lexfloatclient.py index 9f6c0cc..813df46 100644 --- a/cryptlex/lexfloatclient/lexfloatclient.py +++ b/cryptlex/lexfloatclient/lexfloatclient.py @@ -217,9 +217,9 @@ def GetHostLicenseMeterAttribute(name): HostLicenseMeterAttribute: values of meter attribute allowed and total uses """ cstring_name = LexFloatClientNative.get_ctype_string(name) - allowed_uses = ctypes.c_uint() - total_uses = ctypes.c_uint() - gross_uses = ctypes.c_uint() + allowed_uses = ctypes.c_int64() + total_uses = ctypes.c_uint64() + gross_uses = ctypes.c_uint64() status = LexFloatClientNative.GetHostLicenseMeterAttribute( cstring_name, ctypes.byref(allowed_uses), ctypes.byref(total_uses), ctypes.byref(gross_uses)) if status == LexFloatStatusCodes.LF_OK: diff --git a/cryptlex/lexfloatclient/lexfloatclient_native.py b/cryptlex/lexfloatclient/lexfloatclient_native.py index e116d62..12a5627 100644 --- a/cryptlex/lexfloatclient/lexfloatclient_native.py +++ b/cryptlex/lexfloatclient/lexfloatclient_native.py @@ -148,7 +148,7 @@ def byte_to_string(input): GetHostLicenseMetadata.restype = c_int GetHostLicenseMeterAttribute = library.GetHostLicenseMeterAttribute -GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_uint32), POINTER(c_uint32), POINTER(c_uint32)] +GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_int64), POINTER(c_uint64), POINTER(c_uint64)] GetHostLicenseMeterAttribute.restype = c_int GetHostLicenseExpiryDate = library.GetHostLicenseExpiryDate