<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div><br></div><style><!--

@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:HelveticaNeue;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:DengXian;}
.MsoChpDefault
        {mso-style-type:export-only;}

@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal" style="text-align:left;line-height:150%" align="left"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">Hello, I write a demo under windows unsing
<b>spice-client-glib only</b>, I can get usb devices from UsbManager. but hotplug is not working. no device change event recieved.</span></p><p class="MsoNormal" style="line-height:150%"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">I found the function g_udev_client_initable_init in win-usb-dev.c create a hidden window to monitor WM_DEVICECHANGE message. but I could
 not found the corresponding message loop</span><span style="color:#333333">(</span><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">GetMessage/DispatchMessage...). Where is the message loop(gtk)? Does it depends on some higher library(gtk)</span><span style="color:#333333">?</span><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">How
 can I get usb hotplug working?</span></p><p class="MsoNormal" style="line-height:150%"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US"> </span></p><p class="MsoNormal" style="line-height:150%"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">I resent this message because I found that I am not a subscriber to the mailing list. Thanks.</span></p><p class="MsoNormal" style="line-height:150%"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US"> </span></p><p class="MsoNormal" style="line-height:150%"><span style="font-family:"HelveticaNeue",serif;color:#333333" lang="EN-US">best regards</span></p></div></blockquote><div>Normally the main thread should have an event message loop. Either GTK or other. In Windows messages are queued to threads so the thread that call <span style="font-family: 'HelveticaNeue',serif; color: #333333;" data-mce-style="font-family: 'HelveticaNeue',serif; color: #333333;" lang="EN-US">g_udev_client_initable_init</span> should handle messages.<br></div><div><br></div><div>Frediano</div><div><br></div></div></body></html>