On the HTC HD2/Leo there is a wired headset with 3 buttons for the remote control of the windows media player.
I think this is done by sending windows messages to one of these non visible windows I found in the wmplayer.exe process :
"Window Media" HTC_WMP_PLUGIN_WORK
'"" HTC WMP Control Plug-in (this windows has empty name)
I successfuly create a B4P wmplayer.exe replacement, it is launched by the play/pause button on the wired headset.
I now want to rename the underlying windows name of my main form to "Window Media" and the class name to HTC..etc so I can use the WindowsMessage library from Agraham to trap all the messages sent to this wmplayer fake windows and find the specific messages for each of the 3 buttons.
Found no way of doing that. The closer is GetClassName(hWnd, StrLen) from dzHW library ; there is no SetClassName nor SetWindowsName
I will be fine with shelling some exe tools if it's not possible withing B4P code.
Thank you all for your thoughts about this ! René
I think this is done by sending windows messages to one of these non visible windows I found in the wmplayer.exe process :
"Window Media" HTC_WMP_PLUGIN_WORK
'"" HTC WMP Control Plug-in (this windows has empty name)
I successfuly create a B4P wmplayer.exe replacement, it is launched by the play/pause button on the wired headset.
I now want to rename the underlying windows name of my main form to "Window Media" and the class name to HTC..etc so I can use the WindowsMessage library from Agraham to trap all the messages sent to this wmplayer fake windows and find the specific messages for each of the 3 buttons.
Found no way of doing that. The closer is GetClassName(hWnd, StrLen) from dzHW library ; there is no SetClassName nor SetWindowsName
I will be fine with shelling some exe tools if it's not possible withing B4P code.
Thank you all for your thoughts about this ! René