HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows Vista

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-16-2007, 06:48 PM
P P
Guest
 
Posts: n/a
Default Installing service as Admin

I need to install service on vista with all the privileges as it gets when it
runs as localsystem on XP. When I install on Vista, the service is unable to
call OpenProcess successfully for the processes that run under different user
account.

I tried changing privileges with ChangeServiceConfig2 but after running it,
it not only does not work, I am also not able to uninstall service.

servicePrivileges.pmszRequiredPrivileges =
(L"SeTakeOwnershipPrivilege\0"
L"SeAssignPrimaryTokenPrivilege\0"
L"SeImpersonatePrivilege\0"
L"SeCreateGlobalPrivilege\0");

BOOL fRet = ChangeServiceConfig2(
hService,
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO,
&servicePrivileges);

Can someone tell me how can I install service that can get all the rights
since I need to monitor processes running in other user's space.

Thanks,

P
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT. The time now is 08:20 AM.


Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger