removable

How to tell if a network adapter is removable on Windows

Hello, community! How can I tell if a given network adapter retrieved through the Win32 GetAdaptersInfo() or GetAdaptersAddresses() functions is a removable one, like USB, SmartCard, etc? The documentation for these functions does not seem to contain any means of getting that information, so I'm assuming I have to go ask Windows for ea...

Network Shares of Removable Drives Disappear (Windows)

(Sorry if this sounds clumsy, I'm not always sure about the English terms for this) I have two removable drives. I can set the access rights so that they can be shared and used from another network computer, but when I start my main computer the next time and the drives are switched off, they seem to lose the share settings and I have t...

Detect USB mass storage eject/unmount in Linux

I'm using the g_file_storage gadget in Linux to export a partition as a removable USB mass storage device to host PC's (Windows, Linux, MAC). All of these host OS's (can) automatically mount the removable disk and access it without issues, and I'm looking for a way to detect that the host has ejected/unmounted the disk. The only way I...

How to find the unique serial number of a flash device?

I've found several snippets and .pas files that can detect when USB flash drives are inserted and removed. Some give all kind of good information, however what I need is the devices' unique serial number, not the volumes' serial number. My current .pas file (which I don't remember where I found) also seems to detect SD cards (which I li...

The best way to always detect a removable device

In my previous question "How to find the unique serial number of a flash device?" I ended up asking for a way to get the drive letter. That problem is solved. However, my initial question has not been answered. I wanted to be able to tell removable devices (USB drives, SD cards, (external HDDs?), etc.) apart and always be able to recogn...

Howto Flip Removable Bit on USB Drive in C#?

How do I Flip the Removable Bit of my USB Pen Drive or HDD in C# like this Tool does? Thanks in advance! ...

gdi+ removable device IO Safe problem

I am using gdi+ for image format checking. It is really surprising that gdi+ Image img(path); does not throw exception when a device is removed. for example, I am checking a list of image files on a removable device. I plug the disk off, Then My Application will crashed. How can I avoid such problem? Many Thanks! I am using c++ gdi+ wi...