Use methods available in SysVersion.h
Remove CAuthDlg class as it is depreciated.
Dynamically link to CredUI.dll for the application to run in both Windows XP and Windows Vista+.