hidden hit counter
Help!

user and secirity context with windows 2000 printer driver

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Print RSS
Next:  Would windows reprint a single page ?  
Author Message
Hans-Peter Hofreiter
External


Since: Mar 16, 2006
Posts: 1



PostPosted: Thu Mar 16, 2006 12:39 pm    Post subject: user and secirity context with windows 2000 printer driver
Archived from groups: microsoft>public>windowsnt>print (more info?)

I am developing a windows 2000 based print monitor for a fax software.
Therefore the monitor has to start a dialog for entering the destination
number. To start the dialog program the monitor uses
OpenTreadToken(), DuplicateTokenEx() and finally CreateProcessAsUser()
to start the exe.
All is going fine, the resulting process is running with the actual
username (can be validated in the task manager). But if this program is
calling SHGetSpecialFolderLocation() to examine CSIDL_LOCAL_APPDATA,
the resulting path is (in german windows)
C:\Dokumente und Einstellungen\localservice\.....
and not the expected
C:\Dokumente und Einstellungen\actual username\.....

Where is the mistake?

Regards, Hans-Peter
Back to top
pimarc



Joined: Oct 13, 2007
Posts: 1



PostPosted: Sat Oct 13, 2007 3:00 am    Post subject: Re: user and secirity context with windows 2000 printer driv [Login to view extended thread Info.]

Hello,

I know your item as been posted a long time ago but I have the same issue here.
I'm writting a print monitor that should do some work and then run the internet explorer. The spooler impersonates the user that sends the print job but seems to not load its profile so the profile stays to system one. Trying to load the user profile fails (LoadUserProfile) because the user as not enough rights to run this function.

Did you finally find a solution to your problem ?
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Print All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum