예제 #1
0
        public static Guid CreateAppFilter(IntPtr sessionHandle,
                                           Guid providerId,
                                           Guid sublayerId,
                                           DisplayData displayData,
                                           Layer layer,
                                           Action action,
                                           uint weight,
                                           Guid calloutId,
                                           Guid providerContextId,
                                           string appPath)
        {
            var id = Guid.Empty;

            AssertSuccess(() => PInvoke.CreateAppFilter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref calloutId,
                              ref providerContextId,
                              appPath,
                              ref id));

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

            return(id);
        }