Inheritance: OperationArgs
Example #1
0
        private static void WriteDeleteOutput(DeleteArgs args)
        {
            // try copy pe
            TryCopySource(args.SourcePath, args.OutputPath);

            // update pe
            var updateHandle = BeginUpdateResource(args.OutputPath);

            using (var updateDisposable = new PInvoke.DisposableHandle(updateHandle,
                                                                       h => PInvoke.DiscardUpdateResource(updateHandle)))
            {
                DeleteResource(updateHandle, args.ResourceType,
                               args.ResourceName, args.OutputPath);

                CompleteUpdateResource(updateHandle, args.OutputPath);

                updateDisposable.SuppressDispose();
            }
        }
Example #2
0
 private static void ValidateDeleteArgs(DeleteArgs args)
 {
     ValidateOperationArgs(args);
 }
Example #3
0
        private static void WriteDeleteOutput(DeleteArgs args)
        {
            // try copy pe
            TryCopySource(args.SourcePath, args.OutputPath);

            // update pe
            var updateHandle = BeginUpdateResource(args.OutputPath);

            using (var updateDisposable = new PInvoke.DisposableHandle(updateHandle,
                h => PInvoke.DiscardUpdateResource(updateHandle)))
            {
                DeleteResource(updateHandle, args.ResourceType,
                    args.ResourceName, args.OutputPath);

                CompleteUpdateResource(updateHandle, args.OutputPath);

                updateDisposable.SuppressDispose();
            }
        }
Example #4
0
 private static void ValidateDeleteArgs(DeleteArgs args)
 {
     ValidateOperationArgs(args);
 }