From d89bcbe908099230315689a1dba7a1ef2fa6b80a Mon Sep 17 00:00:00 2001 From: Casimir666 Date: Sun, 16 Sep 2007 18:01:08 +0000 Subject: CHANGED: File format association. MPC is now recognize as a registered application by Vista, and compatible with UAC. git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@226 10f7b99b-c216-0410-bff0-8a66a9350fd8 --- src/apps/mplayerc/PPageCasimir.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/apps/mplayerc/PPageCasimir.cpp') diff --git a/src/apps/mplayerc/PPageCasimir.cpp b/src/apps/mplayerc/PPageCasimir.cpp index 9a4dee4d6..1163aae98 100644 --- a/src/apps/mplayerc/PPageCasimir.cpp +++ b/src/apps/mplayerc/PPageCasimir.cpp @@ -214,7 +214,7 @@ void CPPageCasimir::OnBnClickedPn31() TCHAR strApp [MAX_PATH]; GetModuleFileNameEx (GetCurrentProcess(), AfxGetMyApp()->m_hInstance, strApp, MAX_PATH); - ::ShellExecute(0, IsVista() ? _T("runas") : _T(""), strApp, _T("/installpn31") /*: _T("/uninstallpn31")*/, 0, SW_SHOWNORMAL); + ::ShellExecute(0, AfxGetMyApp()->IsVista() ? _T("runas") : _T(""), strApp, _T("/installpn31") /*: _T("/uninstallpn31")*/, 0, SW_SHOWNORMAL); } void CPPageCasimir::OnBnClickedUninstallpn31() @@ -222,13 +222,6 @@ void CPPageCasimir::OnBnClickedUninstallpn31() TCHAR strApp [MAX_PATH]; GetModuleFileNameEx (GetCurrentProcess(), AfxGetMyApp()->m_hInstance, strApp, MAX_PATH); - ::ShellExecute(0, IsVista() ? _T("runas") : _T(""), strApp, _T("/uninstallpn31"), 0, SW_SHOWNORMAL); + ::ShellExecute(0, AfxGetMyApp()->IsVista() ? _T("runas") : _T(""), strApp, _T("/uninstallpn31"), 0, SW_SHOWNORMAL); } - -bool CPPageCasimir::IsVista() -{ - DWORD dwVersion = GetVersion(); - - return (LOBYTE(LOWORD(dwVersion))) >= 6; -} -- cgit v1.2.3