I don't know exactly what happens within mIRC's coding (obviously), but Khaled stated in the referenced thread, basically, that mIRC asks windows and windows says yes or no. Maybe the method being used is outdated, but mIRC is designed to work with outdated versions of windows (I believe). If Khaled told us what method he used (the windows command that is called), maybe others here could suggest a different method.
-genius_at_work