diversenok / NtUtilsLibrary

Delphi library for system programming on Windows using Native API
MIT License
106 stars 33 forks source link

In NtUtils.Processes.Create.Win32.pas, "if (Attributes.Mitigations <> 0) or (Attributes.Mitigations <> 0) then" #2

Closed SolsticeProjekt closed 4 years ago

SolsticeProjekt commented 4 years ago

if (Attributes.Mitigations <> 0) or (Attributes.Mitigations <> 0) then

Based on the code, should the latter be Mitigations2 ?

diversenok commented 4 years ago

That's a good point, thanks. I cannot believe someone is actually reading the code, considering that I keep waiting to document it =)

SolsticeProjekt commented 4 years ago

Not sure you want to know, but ... I've read through a lot of it. It's not fully supported by Free Pascal and I had to compile the latest trunk, but that's not enough.

I've spent a whole hour trying to get your code to run with free pascal lol ... but it didn't work out.

I am - at this point - desperately looking for a way to run child processes as low box app containers. I've tried on my own, but createprocess always ends with error 87.

I've found your "Restart as App Container" function and hoped I could get this to run, but nothing happens.

Would you be willing to help me?

SolsticeProjekt commented 4 years ago

Nevermind! Finally figured it out! I've accidentially passed the address of the pointer to the startupinfo, instead of the pointer.

Sorry, but thanks anyway! : D