Debugging Control Panel Applets
-
I have found information on how to debug control panel applets using Visual C++ but I have a few question I hope you folks can help me with. MSDN Knowledge Base article number Q166168 says to set the exectuable for the control panel as; C:\winnt\system32\rundll32.exe and the program arguments as; shell32.dll,Control_RunDLL [path and name of CPL file] The KB mentions this information is valid for all version of Windows. The instructions seems simple enough but I'm having some problems so my 2 questions are; 1. When I specify the full path to my control panel which would be in the default debug folder as set by Devstudio I can't debug the applet. When I run the project nothing seems to happen, it just exits with no error code or any other indication of a problem. If I specify the path to the Windows system folder and place the applet there it seems to work fine but ... (see problem 2) 2. I can't copy over the control panel once it's placed in the system folder and accessed. It must be kept in memory since Windows doesn't allow replacing the file. I know there is a way to force COM DLL's to unload from memory once they are not used, does anyone know if the same is possible with control panel applets? Perhaps a registry setting or some other mechanism to make the OS not cache the control panel in memory and essentially kick it out of memory. Thanks in advance for any help ...