示例#1
0
        public static Guid CreateProvider(
            IntPtr sessionHandle,
            DisplayData displayData)
        {
            var id = Guid.Empty;

            AssertSuccess(() => PInvoke.CreateProvider(
                              sessionHandle,
                              ref displayData,
                              ref id));

            return(id);
        }
示例#2
0
        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);
        }