CreateFileMapping Function - Windows API

Purpose



Declaration

C#

[DllImport("Kernel32.dll", EntryPoint = "CreateFileMapping", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern IntPtr CreateFileMapping(IntPtr hFile, uint lpAttributes, uint flProtect, 
    uint dwMaximumSizeHigh, uint dwMaximumSizeLow, string lpName);