<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Let me clarify this a bit more on the blocking case. Inside the guest
you need to create a (kernel) thread that calls the host HGCM service
and waits for an answer, which it will get when the host service
detects a directory change. As the host service is single threaded, you
need to create a separate thread that monitors for directory changes.
That additional host thread will asynchronously complete the HGCM
service call the guest makes. <br>
This means the HGCM service call made by the guest is not completed
inside the svcCall handler (by calling g_pHelpers->pfnCallComplete).<br>
<br>
Sander<br>
<br>
Sander van Leeuwen wrote:
<blockquote cite="mid:487C57BF.6010603@sun.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
There's is no such reversed callback mechanism for HGCM. You'd either
have to poll or make a guest thread block in a wait for directory
change HGCM call. The latter<br>
is not that easy as an HGCM client is single threaded.<br>
  <br>
Sander<br>
  <br>
  <br>
Huihong Luo wrote:
  <blockquote cite="mid:783024.86224.qm@web34304.mail.mud.yahoo.com"
 type="cite">
    <table border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr>
          <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
 valign="top">
          <p>Are there any APIs that can invoke vm's functions from
host
(opposite to <font size="2">VbglHGCMCall which does vm to host calls)?</font><br>
          </p>
          <p>I am trying to implement directory change notification
features on windows shared folders. Basically, when files change in a
host folder, I want the host to invoke a callback function inside vm.</p>
          <p> </p>
          <p>Thanks,</p>
          <p> </p>
          <p>Huihong<br>
          </p>
          </td>
        </tr>
      </tbody>
    </table>
    <pre wrap=""><hr size="4" width="90%">
_______________________________________________
vbox-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
  </pre>
  </blockquote>
  <br>
  <br>
  <pre class="moz-signature" cols="72">-- 
Kind regards / Mit freundlichen Gruessen / Met vriendelijke groet

--

Sun Microsystems GmbH        Sander van Leeuwen
Werkstrasse 24               Senior Staff Engineer, VirtualBox
71384 Weinstadt, Germany     <a moz-do-not-send="true"
 class="moz-txt-link-freetext" href="mailto:Sander.Vanleeuwen@sun.com">mailto:Sander.Vanleeuwen@sun.com</a>


================================================
Sitz der Gesellschaft: Sun Microsystems GmbH,
Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder,
Wolfgang Engels, Dr. Roland Boehmer
Vorsitzender des Aufsichtsrates: Martin Haering
================================================</pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
vbox-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>
<a class="moz-txt-link-freetext" href="http://vbox.innotek.de/mailman/listinfo/vbox-dev">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Kind regards / Mit freundlichen Gruessen / Met vriendelijke groet

--

Sun Microsystems GmbH        Sander van Leeuwen
Werkstrasse 24               Senior Staff Engineer, VirtualBox
71384 Weinstadt, Germany     <a class="moz-txt-link-freetext" href="mailto:Sander.Vanleeuwen@sun.com">mailto:Sander.Vanleeuwen@sun.com</a>


================================================
Sitz der Gesellschaft: Sun Microsystems GmbH,
Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder,
Wolfgang Engels, Dr. Roland Boehmer
Vorsitzender des Aufsichtsrates: Martin Haering
================================================</pre>
</body>
</html>