How can I open a file in boot process by ZwOpenFile, such as ZwOpenFile(“\??\C:\a.txt”,…);
How can I open a file in boot process by ZwOpenFile, such as ZwOpenFile(“??\C:\a.txt”,…);
It depends on the particular boot stage…
During the early stages of the boot process this task is infeasible, because reading a file requires both storage stack and filesystems to be up and running, and this is not yet the case at the early stages of the boot process. Therefore, I am afraid you have to wait until the stage 3 if you want to be 100% sure that it actually works…
Anton Bassov