diff --git a/cryptlex/lexfloatclient/lexfloatclient.py b/cryptlex/lexfloatclient/lexfloatclient.py index 7499943..d30603e 100644 --- a/cryptlex/lexfloatclient/lexfloatclient.py +++ b/cryptlex/lexfloatclient/lexfloatclient.py @@ -273,9 +273,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 f424326..920c75e 100644 --- a/cryptlex/lexfloatclient/lexfloatclient_native.py +++ b/cryptlex/lexfloatclient/lexfloatclient_native.py @@ -160,7 +160,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