473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Safely remove usb device W2k?

ja
I am trying to write a program that will allow me to unplug a USB mass storage device from a Windows 2000 box without getting the "Unsafe Removal of Device" warning

I tried the following program (as is)
http://support.microsoft.com/default...kb;en-us;16572

The output says "Media in Drive H can be safely removed.
But I still get the warning dialoge when I unplug the device

Is FSCTL_DISMOUNT_VOLUME the wrong command to use for this problem

Thanks
Jul 21 '05 #1
0 1208

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: sanjana | last post by:
hi i wanna detect if a anything is connected to the usb port I am using system.management class for tht purpose this is my code class usbdetect { public static void Main() { usbdetect we =...
7
by: sanjana | last post by:
hi i wanna detect if a anything is connected to the usb port I am using system.management class for tht purpose this is my code class usbdetect { public static void Main() {
0
by: Joe Cool | last post by:
When you plug a flash drive into a USB port on your XP Pro PC, a System Tray Icon shows up for an application called Safely Remove Hardware. If you left click on it, a list of USB devices appears...
15
by: ais523 | last post by:
I was just wondering whether there was a portable way to use gets() safely, and came up with this: #include <stdio.h> #include <stdlib.h> int main() { FILE* temp; char buf;
2
by: wanglei0214 | last post by:
I compiles a program in SLOS, but there is a warning i donot know how to remove? here is the framework of the code: typedef struct device_tree { ...... union {
1
by: Steve B. | last post by:
Hi, I'm building a web site that can render html from various user input. The problem is that the html cannot be trusted, so I need to ensure it does not contain script attack injection. That's...
12
by: prism via DotNetMonster.com | last post by:
question: how do we safely remove a USB device in vb.net? for example, in the vb.net application, we open some files from a usb device, and after that, we want to "safely remove" it without...
3
by: Richard | last post by:
Hi, We have a few development dbs version 8, but really doesnt matter, that are non-recoverable ( LOGRETAIN OFF). How do I trim the log space ? db2 get db cfg for MYDB | grep 'First active log...
4
AmberJain
by: AmberJain | last post by:
Hello, After a successful installation of Xubuntu, I am posting this question. In Windows XP we select option "Safely remove hardware" before we remove a USB drive (or Pen drive) from a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.