MSFN Forum: Safely Remove Hardware Icon(that everyone hate) - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
  • 3 Pages +
  • « First
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Safely Remove Hardware Icon(that everyone hate) Rate Topic: -----

#54 User is offline   dennis123123 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 06-May 05

Posted 11 July 2008 - 04:59 PM

Sorry for a little bump again, but I felt this was relevant enough.

People had problems with the icon not appearing before the (previously linked) removal tool ran on startup.
I had the same, so I rewrote the same program in C++. It compiles to 5.5kb :D

Heres the code:

 
#include <stdlib.h>
#include <windows.h>
int main(int argc, char *argv[])
{
    if (argc==2) Sleep(atoi(argv[1]));
    NOTIFYICONDATA nid = {0};
    nid.hWnd = FindWindow("SystemTray_Main", NULL);
    nid.uID = 1226;
    Shell_NotifyIcon(NIM_DELETE, &nid);
}
 


Simply place a startup shortcut to it, and optionally add to the parameters the time in milliseconds to wait before removal.

For example:

"hidesrh.exe 5000"
would wait 5 seconds, then hide the icon.

"hidesrh.exe"
would instantly hide the icon.

EDIT: someone requested a compiled version of my app, its here: Attached File  hidesrh__dennis123123_.zip (3.28K)
Number of downloads: 126 :)

This post has been edited by dennis123123: 15 December 2008 - 03:22 PM



#55 User is offline   mortynation 

  • Group: Members
  • Posts: 1
  • Joined: 26-April 09

Posted 26 April 2009 - 06:08 PM

View Postdennis123123, on Jul 11 2008, 05:59 PM, said:

EDIT: someone requested a compiled version of my app, its here: Attachment hidesrh_...s123123_.zip :)



OMG.. Works like a charm on XP.. can't wait to test it at my Vista machine. I have been looking for a solution in a long time.

This is absolutely the best solution. THANKS!!!!

#56 User is offline   bill857 

  • Group: Members
  • Posts: 1
  • Joined: 27-June 09

Posted 27 June 2009 - 12:42 PM

Thanks dennis this worked perfectly!

#57 User is offline   jiljung 

  • Group: Members
  • Posts: 1
  • Joined: 14-February 10

Posted 15 February 2010 - 12:10 AM

Work Thank :hello:

#58 User is offline   Slycer 

  • Group: Members
  • Posts: 9
  • Joined: 28-July 06

Posted 24 June 2011 - 04:47 AM

Want to bump this because it deserves it. Thank you Dennis, great tool!!

Share this topic:


  • 3 Pages +
  • « First
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy