LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

prevent windows from opening a window

Hello,

by adding a memory-stick to the system (usb-stick) windows starts to open an
explorer window that shows the contents of the stick. Is there anyway to
keep windows from opening this window from CVI f.e. by capturing a windows
message ?


Norbert


0 Kudos
Message 1 of 4
(3,638 Views)

Hey,

Have you tried to disable the Shell Hardware Detection service on windowsxp ?

0 Kudos
Message 2 of 4
(3,615 Views)
> Have you tried to disable the Shell Hardware Detection service on
> windowsxp ?

No, not yet, can i do this programmatically ?

"captainst" <x@no.email> schrieb im Newsbeitrag
news:1164550217928-445538@exchange.ni.com...
> Hey,
> Have you tried to disable the Shell Hardware Detection service on
> windowsxp ?


0 Kudos
Message 3 of 4
(3,606 Views)
Thanks for your tip captainst,

that's how i got it to work:

sprintf(command_str,"command.com /c net stop ShellHWDetection");
status = LaunchExecutableEx (command_str, LE_HIDE, NULL);

i used "LaunchExecutableEx" instead of LaunchExecutable or system, because
with the parameter LE_HIDE i can hide the command window.




"captainst" <x@no.email> schrieb im Newsbeitrag
news:1164550217928-445538@exchange.ni.com...
> Hey,
> Have you tried to disable the Shell Hardware Detection service on
> windowsxp ?


0 Kudos
Message 4 of 4
(3,580 Views)