I have found a source code for detecting new HDD on windows but it show GUI MFC. I want to convert this code to Win32 application, and running silent underground windows always wait when a new HDD plug it show message dialog "Detect new a HDD, do you want format it? Yes or No".
when you click "Yes" it will call diskpart and format new HDD and assign. I'm not a deverploer so I need your help.
link source: HWDetect.rar - Google Drive[^]
please to help me!