Oops sorry that was bit incomplete. Best thing is to spawn a process
which does the job and communicate back to the
Component in the spooler. Wait on the spawned process and once done,
checkout the memory mapped file where the results are put. Else you may
try to impersonate as logged in user and retreive the values. I haven’t
tried the impersonation myself,but that should work.
When I faced this problem I did the spawning. But what if you are
printing and rendering happens on the server, you are on for a toss!!
You will be accessing the registry of the server machine and not on the
machine where the print was initiated.Might be
ImpersonatePrinterClient(…) then, but still untried. I hope you have
thought of this remote rendering issue. I assume you are trying to
access the registry during rendering of the job.
Thanks
Vipin
[Post replies only in the newsgroup]
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Santhosh
Brahmappa (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Sent: Thursday, July 22, 2004 7:27 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Reading HKCU in Local System Account
Hi,
The spooler service on Windows NT runs in the “Local System” account.
From my GUI which is loaded by the spooler, I would like to read a
registry key under HKCU (Current User). However The RegOpenKey API fails
because of which I will not be able to read the registry key under HKCU
when I am in the “Local System” account or context.
Question
Can a “Local System” account read the reg keys / data under HKCU on
Windows NT / Windows 2000?
Regards,
Santhosh
-----Original Message-----
From: Santhosh Brahmappa (WT01 - EMBEDDED & PRODUCT ENGINEERING
SOLUTIONS)
Sent: Thursday, July 22, 2004 7:24 PM
To: ‘xxxxx@lists.osr.com’
Subject: Reading HKCU in Local System Account
Hi,
The spooler service on Windows NT runs in the “Local System” account.
From my GUI which is loaded by the spooler, I would like to read a
registry key under HKCU (Current User). However The RegOpenKey to read
the registry key under HKCU when I am in the “Local System” account or
context.
Question
Can a “Local System” account read the reg keys / data under HKCU on
Windows NT / Windows 2000?
Regards,
Santhosh
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com