Folks,

I have written a Delphi DLL which is executed from exit points within a
Virtual Printer Driver. The resulting dialogs in the DLL are all working
fine except that they do not appear themed (ie. In the Windows XP look -
more like the Win2000 look). I am also trying to start another application
from the DLL using CreateProcess and am getting a weird authorization error.

>From what I can tell, the DLL is being called under the print spooler
process (SPOOLSV), which does not appear to be adopting the security
settings of the currently logged in user. I am guessing that the DLL is
actually being called in the process owned by the profile used to start the
print spooler (LocalSystem or Administrator or something).

Does this sound feasible ?
How can I determine what security the SPOOLSV process is running under at
run-time ?
How can I get my application, although initiated by the SPOOLSV process, to
operate in the current user's process ?

If there is no current user I can always assume the current process (for
when no one is logged in and the spooler is still handling jobs). 

Any ideas ?

Thanks in advance,
Darren

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/2005
 


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to