[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.SafeHandle)] public static extern SafeMailslotHandle CreateMailslot( string lpName, uint nMaxMessageSize, uint lReadTimeout, IntPtr lpSecurityAttributes );
Microsoft documentation: Link
Last updated 1 year ago