Home > Net >  C # files in the operating system folder
C # files in the operating system folder

Time:09-22

I am operating c: \ Windows \ system32 folder file encountered the following problem: I use A program in the folder to generate A binary file file1. Then I use A program to modify the file1. B B shown in the program modification is successful, but found in the program A file1 value or the value of the original program A and B have been requireAdministrator permissions, could you tell me how to deal with this, I want to use the program changes the value of the file1 B

CodePudding user response:

Is likely to trigger system file protection mechanism WFP
https://support.microsoft.com/en-us/help/222193/description-of-the-windows-file-protection-feature

CodePudding user response:

File1 in program modified B, B use Flush: no, before the application A obtain file1 values, stream objects have shut down? The value of the procedure to obtain A of the file1 try to use the new new file stream object, rather than using the original one

CodePudding user response:

reference 1st floor fanruinet response:
could trigger system file protection mechanism WFP
https://support.microsoft.com/en-us/help/222193/description-of-the-windows-file-protection-feature

Yes triggered, the problem is how to solve,

CodePudding user response:

refer to the second floor zxy2847225301 response:
file1 B after modification, the program application B use Flush: no, before the application A obtain file1 values, stream objects have shut down? Program to obtain file1 values, A try to use the new new file stream object, rather than using the original

Is not above circumstance, two unrelated applications,

CodePudding user response:

reference xsff1024 reply: 3/f
Quote: refer to 1st floor fanruinet response:

Is likely to trigger system file protection mechanism WFP
https://support.microsoft.com/en-us/help/222193/description-of-the-windows-file-protection-feature

Yes triggered, the problem is how to solve,

The WFP is probably the reason, the nature will first try to disable the WFP
  •  Tags:  
  • C#
  • Related