473,324 Members | 2,456 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,324 software developers and data experts.

usb flash disk

hello

Can somebody give me a tipp, how i can get an event on inserting a usb flash
disk device?

thanks
Nemenyi Zoltan
Nov 21 '05 #1
3 1359
Nemenyi,

In this newsgroup is yesterday a question from steve (wab signal strenght)
that he answered today himself, probably that is with your device as well an
answer on your question.

I hope this helps?

Cor

"Nemenyi Zoltan"
hello

Can somebody give me a tipp, how i can get an event on inserting a usb flash disk device?

thanks
Nemenyi Zoltan

Nov 21 '05 #2
Drive letter change notifications are automatically broadcast to all
top-level windows as WM_DEVICECHANGE messages, using DEV_BROADCAST_VOLUME.
You do not have to register to receive them. They are broadcast with event
types of DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE.

The DEV_BROADCAST_VOLUME structure will contain a dbcv_unitmask field. This
is a logical unit mask identifying one or more logical units. Each bit in
the mask corresponds to one logical drive. Bit 0 represents drive A, bit 1
represents drive B, and so on.

Marc Reinig
System Solutions

"Nemenyi Zoltan" <zo************@funworld.com> wrote in message
news:O1**************@TK2MSFTNGP12.phx.gbl...
hello

Can somebody give me a tipp, how i can get an event on inserting a usb
flash disk device?

thanks
Nemenyi Zoltan

Nov 21 '05 #3
Drive letter change notifications are automatically broadcast to all
top-level windows as WM_DEVICECHANGE messages, using DEV_BROADCAST_VOLUME.
You do not have to register to receive them. They are broadcast with event
types of DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE.

The DEV_BROADCAST_VOLUME structure will contain a dbcv_unitmask field. This
is a logical unit mask identifying one or more logical units. Each bit in
the mask corresponds to one logical drive. Bit 0 represents drive A, bit 1
represents drive B, and so on.

Marc Reinig
System Solutions

"Nemenyi Zoltan" <zo************@funworld.com> wrote in message
news:O1**************@TK2MSFTNGP12.phx.gbl...
hello

Can somebody give me a tipp, how i can get an event on inserting a usb
flash disk device?

thanks
Nemenyi Zoltan

Nov 21 '05 #4

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

Similar topics

8
by: tmb | last post by:
1 - Can you build an entire web page or site with Java... sorta like you can with Flash? 2 - Can you do... .. Drag & Drop .. Push Buttons .. Hot Spot .. Hot Object .. Pull Down's (combo...
3
by: Ray Lavelle | last post by:
I have a utility I wrote which can backup/restore my database as well as schedule backups. This has always worked pretty well except when I try to backup to a USB Flash Disk. When I use one of...
9
by: Kelvin | last post by:
Hi, group: I am intermediate in C programming, basically I programmed in Unix for digital signal processing... Now I need to write a C++ program to read/write the whole volume of a FAT...
2
by: Jim Lewis | last post by:
I need to upload files to a Web server from Flash MX. Flash does not have the ability to upload files. I have an example that uses a PHP page in the back ground to upload files...
3
by: Mike Joyce | last post by:
I am trying to write a portable script that will find removable media, such as compact flash, sd card, usb, etc. drive and then upload files from the media. I want this to be portable so that I can...
3
by: Putty | last post by:
Is there such a thing as a special version of python that I can run more efficiently from a flash drive? I'll be at college for hours every day with hours of free time for the next few months, but...
3
by: dan | last post by:
Hi all, I have a question about flash-memory lifespan. My database consists of 1 table, the table has 50 fields of 10 bytes each, thus each record will have 500bytes. There are 1000 records in...
2
by: tmWin | last post by:
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a...
0
Chrisjc
by: Chrisjc | last post by:
<Excerpted from this thread> All of these questions and answers are great. But it comes down to this I have seen this more than enough times to know better... From my experience at home and as...
0
by: Shaikh shahnawaz | last post by:
Hi, I have implement multiple file uploading progress bar with the help of flash and .net file is upload on my local machine but not working with server it's give error while uploading image on...
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...
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: 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
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.