Changeset 160
- Timestamp:
- Jan 7, 2013, 6:55:33 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/Miscellaneous/SoundControlPanelApplet/SoundControlPanelApplet.cpp
r159 r160 45 45 OSVERSIONINFOEX VersionInformation = { sizeof VersionInformation }; 46 46 GetVersionEx((OSVERSIONINFO*) &VersionInformation); 47 _tprintf(_T("GetVersionEx: %d.%d\n"), VersionInformation.dwMajorVersion, VersionInformation.dwMinorVersion); 47 48 if(VersionInformation.dwMajorVersion >= 6) 48 49 { … … 50 51 pCplApplet(GetActiveWindow(), CPL_STARTWPARMS, nAppletIndex, (LPARAM) g_pszParameters); 51 52 } else 52 pCplApplet(GetActiveWindow(), CPL_DBLCLK, nAppletIndex, 2); 53 { 54 //HINSTANCE hModule = LoadLibrary(_T("shell32.dll")); 55 //typedef VOID (CALLBACK *CONTROL_RUNDLL)(HWND hParentWinow, HINSTANCE hInstance, LPWSTR pszCommandLine, INT nShowCommand); 56 //CONTROL_RUNDLL pControlRunDll = (CONTROL_RUNDLL)GetProcAddress(hModule, "Control_RunDLLW"); 57 //pControlRunDll(GetActiveWindow(), NULL, _T("mmsys.cpl,,2"), SW_SHOWNORMAL); 58 pCplApplet(GetActiveWindow(), CPL_DBLCLK, nAppletIndex, (LPARAM) Information.lData); 59 } 53 60 pCplApplet(GetActiveWindow(), CPL_EXIT, 0, 0); 54 61 } else
Note: See TracChangeset
for help on using the changeset viewer.