ofWrite = 0x00000001, // Open scope for write.
static extern IntPtr fwrite(byte[] buffer, IntPtr size, IntPtr number, IntPtr file);
Declare Function fwrite Lib "msvcrt.dll" (byte[] buffer, IntPtr size, IntPtr number, IntPtr file) As IntPtr