News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

safely remove hardware icon

Started by azdps, May 29, 2009, 07:52:59 PM

Previous topic - Next topic

azdps

any idea's on how to prevent the safely remove hardware from showing. im sure i can just delete it from the tray after it shows but i would prefer to not have to go that route unless neccessary. what i would eventually like to do is prevent the icon from showing and have my own in its place.

jj2007

Cool idea. Recently I caught a virus transmitted via the USB stick. Probably when I clicked the tray icon "safely remove hardware"...

So explain a little bit more how we can help you: You want to put your icon in place. And then?

:bg

azdps

im trying to make a free alternative to a program called usb safely remove (http://safelyremove.com/). basically takes the place of the windows safely remove icon and does the job much easier. i actually have it working fine except now i would like to have the windows safely remove hardware icon not shown at all so my program can handle it.

Here is my program. It will list usb disk devices attached to your computer if you left click on the tray icon. To safely shutdown one of the devices listed just left click on it.If you right click on the tray icon it will shutdown the program. Also an icon won't show in the tray if there are no usb disk drives attached to computer. if a usb disk device is plugged in, my program will then place and icon in the tray. so if dont have any and need to shut it down just do it in the task manager. works in windows xp and haven't tested it in win2k or vista. i have a feel it will have some issues in vista.

[attachment deleted by admin]

dedndave

To Enable hot-plug filter but hide safe-remove icon ( i386 platform ):
Add and set registry: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xfilt\Parameter0"
To DWORD value "0x80000000"

To Enable hot-plug filter but hide safe-remove icon ( x64 platform ):
Add and set registry: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\xfiltx64\Parameter0"
To DWORD value "0x80000000"

http://www.tkarena.com/forums/ide-sata-raid-arena/39078-how-remove-safely-remove-hardware-icon.html

btw - can't believe they wanna charge for that - lol - software companies should always have a few freebies

jj2007

Quote from: azdps on May 29, 2009, 09:16:25 PM
Here is my program.

It looks clean in Olly. But you aware of the misuse potential, aren't you?
:wink

dedndave

i don't have my thinking cap on today Jochen - help me out - lol
what misuse ?

jj2007

Quote from: dedndave on May 29, 2009, 10:14:16 PM
i don't have my thinking cap on today Jochen - help me out - lol
what misuse ?

Well, the type of thing that happened to me: I caught a virus (conficker) transmitted via the USB stick. All you need is a virus running, and a fake icon "safely remove hardware". As it seems, azdps has only honest intentions, and there also other ways to infect the USB stick, but the potential is there...

dedndave

oh - i thought the OSs were somewhat prepared for the inevitable - pull it out before it's safe

azdps

jj2007 i'm familar with the virus you had since i had to manually remove it from my daughters computer. it was transfered via usb stick automatically from the computer to the usb stick without clicking on anything. was very an anoying problem. anyways my intentions are good and i explained it purpose above.

dedndave did you try your registry entry to see if it works? doesn't work for me. i didn't have the xfilt entry and had to manually enter it along with everything after that.

dedndave

did you re-boot after the change ?

zooba

Quote from: jj2007 on May 29, 2009, 09:09:36 PM
I caught a virus transmitted via the USB stick. Probably when I clicked the tray icon "safely remove hardware"...

I doubt it. The virus will have put an autorun.inf file on the USB. Disabling autorun for removable drives (except CD/DVD, unless you want it turned off for those too) is the best way to prevent the spread.

Cheers,

Zooba :U

PBrennick

So how did you get infeccted in the first place or is it a mystery? I sure like advance warnings so I can be careful.

Thanx,
P
The GeneSys Project is available from:
The Repository or My crappy website

dedndave


azdps

dedndave attached is my exported registry entry. Can you look it over to make sure it looks right. I've rebooted but the icon still shows in the tray.


PBrennick the only reason I got infected was because I used a usb thumb drive that had portable antivirus software and connected it to a computer that had the virius. The virius immediately moved onto my thumb drive without me knowing about it. Not sure how my daughter orginally got it though. She said her system was running sluggish so I checked it out. I was stupid and didn't have an antivirus installed on her system. Anyways she downloads alot from friends and videos etc from the internet. I have the free edition of Avira Antivirus on all my systems now. Works great.

[attachment deleted by admin]

UtillMasm