|
Prev: where to find a sample RNDIS driver code
Next: Application compiled with Win2K/XP DDK works fine. But doesnt work with WIN98 DDK
From: Lela on 12 Sep 2005 01:47 Hi NG, during development and testing of my printer driver which is based on MS plotter, I discovered that with XP Prof SP1 the spooler is running under the context of "system" user. With XP Prof SP2 and W2K SP4 the spooler is running under the logged on user account. I determined this by using "GetUserName()" within "DrvEnablePDEV(...)". The problem I'm faced with is that if the spooler is running under "system" user account I'm not able to write to an network path. Thanks for your posts, Lela
From: Lela on 16 Sep 2005 01:21 Hi NG, aren't there any MS guys which can answer this question. Please let me know wether I should clearify my problem more detailed or not. Thanks, Lela "Lela" <lela_dd(a)hotmail.com> wrote in message news:us$6n11tFHA.3864(a)TK2MSFTNGP12.phx.gbl... > Hi NG, > > during development and testing of my printer driver which is based on MS > plotter, I discovered that with XP Prof SP1 the spooler is running under > the context of "system" user. With XP Prof SP2 and W2K SP4 the spooler is > running under the logged on user account. I determined this by using > "GetUserName()" within "DrvEnablePDEV(...)". > > The problem I'm faced with is that if the spooler is running under > "system" user account I'm not able to write to an network path. > > Thanks for your posts, Lela >
From: Sekhar Sirigiri on 21 Sep 2005 07:14 hi, the spooler always runs under the "System" account..... on NT,2K and XP......it is the threads running in the spooler context.....which can run as user.....using Impersonation.....in windows 2k sp3 and xp SP 1.......the threads under the spooler like the print processor thread was not impersonated and hence ran using "System" account credentials.....this was acknlwodeged by MS and later from XP SP2 and win 2K SP4.....the behavior has been changed so that print processor threads run as users (using impersonation) the bottom line......you cannot write to network paths when running under "System" account because the network paths/printers are credentials valid only for user accounts...not the "System" account......may be try EnumPrinters to enumerate the network printers .....when running under "System" account.....the api returns 0 printers. - Sekhar "Lela" <lela_dd(a)hotmail.com> wrote in message news:%23uPw05nuFHA.2880(a)TK2MSFTNGP12.phx.gbl... > Hi NG, > > aren't there any MS guys which can answer this question. Please let me know > wether I should clearify my problem more detailed or not. > > Thanks, Lela > > "Lela" <lela_dd(a)hotmail.com> wrote in message > news:us$6n11tFHA.3864(a)TK2MSFTNGP12.phx.gbl... > > Hi NG, > > > > during development and testing of my printer driver which is based on MS > > plotter, I discovered that with XP Prof SP1 the spooler is running under > > the context of "system" user. With XP Prof SP2 and W2K SP4 the spooler is > > running under the logged on user account. I determined this by using > > "GetUserName()" within "DrvEnablePDEV(...)". > > > > The problem I'm faced with is that if the spooler is running under > > "system" user account I'm not able to write to an network path. > > > > Thanks for your posts, Lela > > > >
From: Lela on 21 Sep 2005 09:47
Hi Sekhar, thanks for your high quality answer. I thought that something as you described in your answer would be the cause of my problems. I finally got it done through Impersonation. Thanks a lot, Lela "Sekhar Sirigiri" <smshekar(a)yahoo.com> wrote in message news:eobsX2pvFHA.3548(a)tk2msftngp13.phx.gbl... > hi, > > the spooler always runs under the "System" account..... on NT,2K and > XP......it is the threads running in the spooler context.....which can run > as user.....using Impersonation.....in windows 2k sp3 and xp SP > 1.......the > threads under the spooler like the print processor thread was not > impersonated and hence ran using "System" account credentials.....this was > acknlwodeged by MS and later from XP SP2 and win 2K SP4.....the behavior > has > been changed so that print processor threads run as users (using > impersonation) > > > the bottom line......you cannot write to network paths when running under > "System" account because the network paths/printers are credentials valid > only for user accounts...not the "System" account......may be try > EnumPrinters to enumerate the network printers .....when running under > "System" account.....the api returns 0 printers. > > - Sekhar > > > "Lela" <lela_dd(a)hotmail.com> wrote in message > news:%23uPw05nuFHA.2880(a)TK2MSFTNGP12.phx.gbl... >> Hi NG, >> >> aren't there any MS guys which can answer this question. Please let me > know >> wether I should clearify my problem more detailed or not. >> >> Thanks, Lela >> >> "Lela" <lela_dd(a)hotmail.com> wrote in message >> news:us$6n11tFHA.3864(a)TK2MSFTNGP12.phx.gbl... >> > Hi NG, >> > >> > during development and testing of my printer driver which is based on >> > MS >> > plotter, I discovered that with XP Prof SP1 the spooler is running >> > under >> > the context of "system" user. With XP Prof SP2 and W2K SP4 the spooler > is >> > running under the logged on user account. I determined this by using >> > "GetUserName()" within "DrvEnablePDEV(...)". >> > >> > The problem I'm faced with is that if the spooler is running under >> > "system" user account I'm not able to write to an network path. >> > >> > Thanks for your posts, Lela >> > >> >> > > |