I am using Windows Defender Function to scan folder.
First I opened windows defender manager using MpManagerOpen. Next I started scanning using MpScanStart function. And