RE: ZwSetSecurityObject returns STATUS_INVALID_OWNER

As a followup on this.

Neal Said:

Have you tried temporarily granting yourself
SE_TAKE_OWNERSHIP_PRIVILEGE. I have not verified this but it is
possible that system threads don’t have this privilege enabled by
default.

It appears that in XP they did, but in Vista they don’t.