我测试了一下,好像不行~~~~~不知道有没有其它的方法~~我现在需要等待一个文件句柄被关闭

解决方案 »

  1.   

    呵呵,不行
    The WaitForSingleObject function can wait for the following objects: Change notification 
    Console input 
    Event 
    Job 
    Mutex 
    Process 
    Semaphore 
    Thread 
    Waitable timer 
      

  2.   

    用Event Objects,文件句柄被关闭的时候SetEvent就是了。
      

  3.   

    呵呵,我以为可以~~这样就可以不使用Mutex或者Event对象了~~~~~~~
      

  4.   

    可以。
    被wait对象的基本结构在DDK里面有,是个dispatch_header,其他的mutex,file object,process object...都是由他继承的,所以都可以。
      

  5.   

    应该不行。试一下就知道了
    Table 3-10. Definitions of the Signaled State
     Object Type  Set to Signaled State When   Effect on Waiting Threads
     File         I/O completes                  All threads released
      

  6.   

    FileHandle肯定是内核对象,不用怀疑的。
      

  7.   

    内核对象行,但File Handle应该不是内核对象,windows是微内核。