I'm working with some COM objects in C#, one of them has a function called SetLogFile that takes an IntPtr. How can I create the file in C# then pass it as an IntPtr to that COM function?
EDIT: The function requires an open file handle: http://msdn.microsoft.com/en-us/library/aa915939.aspx