<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Arí Ricardo Ody wrote:
<blockquote cite="mid:20091216114858.151050@gmx.com" type="cite">
<title></title>
<meta http-equiv="Content-type" content="text/html; ">
<style type="text/css">p { margin:0px; padding:0px; }</style>
<p style="font-family: Verdana;"><font size="1">Hi!</font><span></span></p>
<p id="__paragraph__1260963962000"><br>
<font style="font-family: Verdana;" size="1"><span></span></font></p>
<p id="__paragraph__1260963962000"><font style="font-family: Verdana;"
size="1"><span>Suppose you connect a Handheld running windows mobile
via USB cable to a windows machine. <br>
</span></font></p>
<p id="__paragraph__1260963962000"><font style="font-family: Verdana;"
size="1"><span><br>
</span></font></p>
<p id="__paragraph__1260963962000"><font style="font-family: Verdana;"
size="1"><span>Is there a way that I can recognize the new disk added
to the system, e.g., determine what of the disks existing in the
windows machine is the disk added when I connected the handheld?</span></font><span></span></p>
<p id="__paragraph__1260964170000"><br>
<font style="font-family: Verdana;" size="1"><span></span></font></p>
<p id="__paragraph__1260964170000"><font style="font-family: Verdana;"
size="1"><span>Greetings from Sao Paulo - Brazil</span></font><span></span></p>
<p id="__paragraph__1260964185000"><br>
<font style="font-family: Verdana;" size="1"><span></span></font></p>
<p id="__paragraph__1260964185000"><font style="font-family: Verdana;"
size="1"><span>Ricardo<br>
</span></font></p>
<pre wrap="">
<hr size="4" width="90%">
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
</blockquote>
<br>
Hi,<br>
<br>
There are two different events that may occur if you attach new mass
storage to your PC.<br>
Some devices will trigger WMDeviceChange (flash drives, extrernal HDD
etc.), and others will trigger file-system change events (media
inserted into CD-ROM/DVD-ROM SDcard inserted into card reader etc.).<br>
<br>
You can't detect new device if it uses some special driver (e.g. Nokia
phones if Nokia PC Suite is installed, because PC Suite will overtake
the control over device before the device gets a device letter).<br>
<br>
Every device can be identified by unique GUID (can be read through
WinAPI).<br>
GUID is given to the device (on partition level - two partitions on the
same drive will have different GUID) at formating the drive.<br>
<br>
regards<br>
Boban bobby Spasic<br>
</body>
</html>