Junfeng Zhang's Windows Programming Notes

Win32, Fusion, CLR, .Net Framework, and others

December, 2008

  • Junfeng Zhang's Windows Programming Notes

    Exception Filter

    • 7 Comments
    C# does not support exception filter. However, VB and IL support it. To add exception filter to C#, we can build a function in VB or IL, then call it in C#. The example below is one way we may implement the function to support exception filter. It...
  • Junfeng Zhang's Windows Programming Notes

    ThreadPool.BindHandle

    • 8 Comments
    I mentioned that we can use ThreadPool.BindHandle to implement asynchronous IO. Here are roughly the steps necessary to make it happen: 1. Create an overlapped file handle SafeFileHandle handle = CreateFile( filename, Win32.GENERIC_READ_ACCESS...
Page 1 of 1 (2 items)