Home: Perl Programming Help: Win32 Programming Help:
uid in Win32


May 1, 2007, 2:06 AM

Views: 5481
uid in Win32

Hi All,

I am looking for some code to change the UID of the current running process.

I have an app running as a Win32 service, as SystemLocal. At some point, this app forks a new process which calls Win32 API to manipulate files in the IE cache.

My problem is that the API to manipulate the cache does so for the current user (uid of the process). In my case, I'd like to manipulate the cache of the currently logged in user and not that of SystemLocal.

I guess there is a way to change the UID of the running process (something like $< = ... in Unix) but how ????