Getting Color of pixel under mouse pointer in VBA

Hi,

I have a lot of shapes, filled and unfilled. I need Corel VBA to pick color under the mouse pointer. I guess there is no simple way to do it in VBA. Is there any way to do it  using Windows API call, and / or writing a dll using Visual Studio code?

Thanks.