Resolved! I am trying to make use of the VL53L0X API on stm32cubeide but I've encountered some issues coming from the file vl53l0x_i2c_win_serial_comms.c. Apparently INFINITE, WAIT_OBJECT_0 aren't declared and HANDLE is an unknown type name.
I thought HANDLE was part of the stm32 hal library so I tried including stm32h7xx_hal.h however it did not resolve the issue