What do you mean by "works"? I tried the file with "access denied". The first call to RmGetList returned 5, the arguments remained unchanged. Even without sleep between the second call of 0, when pnProcInfoNeeded, pnProcInfo and lpdwRebootReasons are set to zero. That way you don't seem to get interesting information ...
It looks like an error, or at least an undocumented function.
source
share