|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
|
![]() |
#1 | |
Forum King
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,219
|
This question is for the Winamp Devs and the Winamp SDK managers only!
In the DSP.h header file found in the SDK:
Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
it's basically Winamp's hwnd so that messageboxes, any ui aspects required to be shown as children against can have a valid hwnd to use. the gen_lang_example shows the gen version of this being used but it applies the same for any of the uninstall callback functions.
-daz |
![]() |
![]() |
![]() |
#3 |
Forum King
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,219
|
|
![]() |
![]() |
![]() |
#4 |
Join Date: Sep 2003
Posts: 27,873
|
i've double-checked the source code (is 3 years since i added that stuff to the header files considering it was missing since the 5.0 release) and the hwnd is actually the hwnd of the preference page related to the plug-in being removed which is also used for the prompt made about the uninstall in the first instance.
apologies for the confusion about this - will have to amend the headers for when an updated sdk is released to indicate this. -daz |
![]() |
![]() |
![]() |
#5 |
Forum King
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,219
|
Thank you for the clarification!
Is there a Winamp API I can call directly to this window handle to retrieve the actual main HWND? Thanks in advance. |
![]() |
![]() |
![]() |
#6 |
Join Date: Sep 2003
Posts: 27,873
|
you should be able to get Winamp's hwnd from the winampDSPModule(..) hwndParent member or define USE_DSP_HDR_HWND for the project (the header shows the HWND as a param for earlier versions as well but this is done to prevent breakages when running older dsp versions without messing up things with the client changes in 5.5+) and you'll then get Winamp's hwnd passed in the winampDSPGetHeader2(..) parameter (assuming it's a 5.5x client) and you'd have to cache that as required.
though i think due to the quirky way in which dsp's can be present & they're dynamic loading then the winampDSPGetHeader2(..) hwnd caching may not work in all cases ie if the dsp isn't loaded when the plugin is being uninstalled. i guess in that instance if you did a few GetWindow(..., GW_OWNER) calls may get the correct hwnd after a few repeated calls or just use the FindWindow(NULL, "v1.x") (which that will fail if /class has been used). -daz |
![]() |
![]() |
![]() |
#7 |
Forum King
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,219
|
Right now I've got:
code: Does that describe what you're talking about? |
![]() |
![]() |
![]() |
|
Tags |
winampuninstallplugin |
Thread Tools | Search this Thread |
Display Modes | |
|
|