Ejemplo n.º 1
0
 public static extern IntPtr CreateFile(
     string Filename,
     int DesiredAccess,
     int ShareMode,
     [In][MarshalAs(UnmanagedType.LPStruct)] SecurityAttributes SecAttr,
     int CreationDisposition,
     int FlagsAndAttributes,
     IntPtr TemplateFile);
Ejemplo n.º 2
0
 public static extern IntPtr CreateConsoleScreenBuffer(
     int dwDesiredAccess,
     int dwShareMode,
     [In, Out][MarshalAs(UnmanagedType.LPStruct)] SecurityAttributes lpSecurityAttributes,
     int dwFlags,
     IntPtr lpScreenBufferData);