Beispiel #1
0
        public static Guid CreateLoopbackFilter(
            IntPtr sessionHandle,
            Guid providerId,
            Guid sublayerId,
            DisplayData displayData,
            Layer layer,
            Action action,
            uint weight)
        {
            var id = Guid.Empty;

            AssertSuccess(() => PInvoke.CreateLoopbackFilter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref id));

            return(id);
        }
Beispiel #2
0
        public static Guid CreateLoopbackFilter(
            IntPtr sessionHandle,
            Guid providerId,
            Guid sublayerId,
            DisplayData displayData,
            Layer layer,
            Action action,
            uint weight,
            bool persistent = false,
            Guid id         = new Guid())
        {
            AssertSuccess(() => PInvoke.CreateLoopbackFilter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              (uint)(persistent ? 1 : 0),
                              ref id));

            return(id);
        }