const RTL_QUERY_REGISTRY_TYPECHECK: comptime_int = 256;

Use this flag with the RTL_QUERY_REGISTRY_DIRECT flag to verify that the REG_XXX type of the stored registry value matches the type expected by the caller. If the types do not match, the call fails.