Changeset 160 for trunk/Utilities


Ignore:
Timestamp:
Jan 7, 2013, 6:55:33 AM (11 years ago)
Author:
roman
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/Miscellaneous/SoundControlPanelApplet/SoundControlPanelApplet.cpp

    r159 r160  
    4545                OSVERSIONINFOEX VersionInformation = { sizeof VersionInformation };
    4646                GetVersionEx((OSVERSIONINFO*) &VersionInformation);
     47                _tprintf(_T("GetVersionEx: %d.%d\n"), VersionInformation.dwMajorVersion, VersionInformation.dwMinorVersion);
    4748                if(VersionInformation.dwMajorVersion >= 6)
    4849                {
     
    5051                        pCplApplet(GetActiveWindow(), CPL_STARTWPARMS, nAppletIndex, (LPARAM) g_pszParameters);
    5152                } 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                }
    5360                pCplApplet(GetActiveWindow(), CPL_EXIT, 0, 0);
    5461        } else
Note: See TracChangeset for help on using the changeset viewer.