WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

user and secirity context with windows 2000 printer driver

 
   Home -> Windows Other -> Print RSS
Next:  Would windows reprint a single page ?  
Author Message
Hans-Peter Hofreiter

External


Since: Mar 16, 2006
Posts: 1



(Msg. 1) Posted: 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
Login to vote
Display posts from previous:   
       Home -> Windows Other -> 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
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET