public static Guid CreateProvider( IntPtr sessionHandle, DisplayData displayData) { var id = Guid.Empty; AssertSuccess(() => PInvoke.CreateProvider( sessionHandle, ref displayData, ref id)); return(id); }
public static Guid CreateProvider( IntPtr sessionHandle, DisplayData displayData, bool persistent = false, Guid id = new Guid()) { AssertSuccess(() => PInvoke.CreateProvider( sessionHandle, ref displayData, (uint)(persistent ? 1 : 0), ref id)); return(id); }