Here's a question that came from a customer.
This particular example involves managed code,
but don't let that distract you from the point of the exercise. I am trying to create a FileStream
object using the constructor that takes an IntPtr as input.
In my .cs file,
I create the native file handle using CreateFile,
as shown below. Then ...