wmi - Obtaining %appdata% from windows service [C++] -
as in topic - there way logged user appdata environment variable?
in application there no problem shgetfolderpath() or getenv("appdata") in service these methods doesn't work. runs "system" account.
i think should way obtain %appdata% using wmi i'm not sure that.
%userprofile% second point of interest handle when %appdata%.
from service viewpoint, there's no such thing "the" logged-on user. there might zero, 1 or more. furthermore, indicates design error if service needs it. real problem you're trying solve?
Comments
Post a Comment