Old 13th March 2001, 09:06   #1
jeremi
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



jeremi is offline   Reply With Quote
Old 14th March 2001, 16:32   #2
Abraxa
Senior Member
 
Join Date: Nov 2000
Location: germany
Posts: 201
Try findExecutable()

Regards,
-Søren
Abraxa is offline   Reply With Quote
Old 15th March 2001, 07:00   #3
jeremi
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

jeremi is offline   Reply With Quote
Old 15th March 2001, 19:16   #4
hoirkman
Senior Member
 
Join Date: Feb 2001
Posts: 171
.wsz (winamp skin zip) files are surely associated to winamp
hoirkman is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump