Thank you for your sample code, I was at least identified the dll that could help me to know coredll.
Unfortunately without success I test my test application to hide the taskbar in Windows XP, just replace "user32.dll" with "coredll.dll" ... AC does not work, I have no error message but nothing happens.
Here is the code that works perfectly under windows xp:
Code:
IntPtr handleW1;
uint TOGGLE_HIDEWINDOW uint.Parse = ( "80", System.Globalization.NumberStyles.HexNumber);
uint TOGGLE_UNHIDEWINDOW uint.Parse = ( "40", System.Globalization.NumberStyles.HexNumber);
[DllImport ( "User32.dll")]
public static extern IntPtr FindWindow (string lpClassName, string lpWindowName);
[DllImport ( "User32.dll")]
static extern bool SetWindowPos (IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags);
private void cmdShow_Click (object sender, EventArgs e)
(
handleW1 = FindWindow ( "Shell_traywnd", "");
SetWindowPos (handleW1, (IntPtr) 0, 0, 0, 0, 0, TOGGLE_UNHIDEWINDOW);
)
private void cmdHide_Click (object sender, EventArgs e)
(
handleW1 = FindWindow ( "Shell_traywnd", "");
SetWindowPos (handleW1, (IntPtr) 0, 0, 0, 0, 0, TOGGLE_HIDEWINDOW);
)
replacing user32.dll by coredll.dll does not seem enough ...
if someone has an idea I thank in advance ...
Bookmarks