|
|
#1 |
|
Junior Member
Join Date: Mar 2001
Posts: 2
|
I'm looking for the path of winamp.exe in order to launch winamp, without to modify the file associations.
At this moment, this is the only way that I found (I read a key from the registry, but it contains some unnecessary characters that I have to remove): CRegKey Key; // ATL class char path[255]; DWORD dwCount = 255; Key.Open (HKEY_LOCAL_MACHINE,"SOFTWARE\\Classes\\Winamp.File\\DefaultIcon" Key.QueryValue(path, "", &dwCount ) CString strPathWinamp = path; int nFirstComma = strPathWinamp.Find(","); strPathWinamp = strPathWinamp.Left(nFirstComma); Is there a better way? Thanks, Jerem |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Nov 2000
Location: germany
Posts: 201
|
Try findExecutable()
![]() Regards, -Søren |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2001
Posts: 2
|
Thank you for the answer,
findExecutable retrieves the name of and handle to the executable (.exe) file associated with the specified file name but if I look for *.mp3 it's not sure that this file is associated to Winamp, which is the extension that it's surely associated to Winamp, if this has been installed on computer? PLS? M3U? WPZ? Jeremi |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Feb 2001
Posts: 171
|
.wsz (winamp skin zip) files are surely associated to winamp
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|