Hello,
I have a problem on Windows Service in 2K. Please help me out.
I am creating a service, with " SERVICE_WIN32_OWN_PROCESS |
SERVICE_INTERACTIVE_PROCESS" as the service type and i want this service to
run in my local system account(so that i can give some information based on
the login acccount) so i also pass “.\login” and “password”. But the
CreateService() fails returning “Incorrect Parameter”. Now, if I do the
same process just by not using “SERVICE_INTERACTIVE_PROCESS” in the
CreateService(), with user account information the API succeeds and the
service starts running,(the Service Window show the account information)
but i donot get the UI, in whihc i want to give inputs.
Please give me any information or piece of code by which both the options
of “SERVICE_INTERACTIVE_PROCESS” and “Running in a System Account” can be
done. I would be really grateful to you for any information.
thanks in advance and regards,
Venkat.
This email may contain confidential or privileged information for the
intended recipient(s). If you are not the intended recipient, please do not
use or disseminate the information, notify the sender and delete it from
your system. Thanks.
IIRC this is impossible at all.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Venkat R”
To: “Windows System Software Devs Interest List”
Sent: Saturday, November 22, 2003 5:11 PM
Subject: [ntdev] Windows Service Problem
> Hello,
>
> I have a problem on Windows Service in 2K. Please help me out.
>
> I am creating a service, with " SERVICE_WIN32_OWN_PROCESS |
> SERVICE_INTERACTIVE_PROCESS" as the service type and i want this service to
> run in my local system account(so that i can give some information based on
> the login acccount) so i also pass “.\login” and “password”. But the
> CreateService() fails returning “Incorrect Parameter”. Now, if I do the
> same process just by not using “SERVICE_INTERACTIVE_PROCESS” in the
> CreateService(), with user account information the API succeeds and the
> service starts running,(the Service Window show the account information)
> but i donot get the UI, in whihc i want to give inputs.
>
> Please give me any information or piece of code by which both the options
> of “SERVICE_INTERACTIVE_PROCESS” and “Running in a System Account” can be
> done. I would be really grateful to you for any information.
>
> thanks in advance and regards,
> Venkat.
>
> This email may contain confidential or privileged information for the
> intended recipient(s). If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system. Thanks.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com