Is there a windows api to detect whether or not my dll is running in a system service or a normal user process?
Previously I was looking at the current username and ignoring "SYSTEM", "LOCAL SERVICE" and "NETWORK SERVICE". But now I am seeing GetUsername return machine_name$ in cases where svchost gets run in certain situations before anyone is logged in. Also, I cannot find any documentation for the machine_name$ result from GetUsername in vista, has anyone seen this behavior?