Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT Service pop up window

Status
Not open for further replies.

jkh1978

IS-IT--Management
Feb 20, 2002
4
US
I wrote a C program to act as a NT service to start a java program. However, i need to prompt the user for a password. How do I create a pop-up box? All the samples I see say to create a new MFC project. All I want is one box to have one edit field and a ok/cancel buttons. I am new to C (java programmer) so any assistance I would appreciate.
 
NT Services ("Windows Services" in .NET) are not designed to interact with the logged-on user. They are designed to be run in a "lights-out" situation, where the server is remotely administered, and potentially no-one ever logs in to the console. Imagine a server in a datacenter behind locked cage doors waiting for someone to click "OK" (It's usually $200 minimum for datacenter personnel to do something like that for you).

So, throwing a dialog box up is a bad idea. If you need to store userid/password info, I would suggest storing it encrypted in the registry or a text file. You'd write a small utility to change it when needed.

Chip H.
 
I'm sure thats why i cant find any resources on how to do it. However, the program that the service starts needs a password. We understand that this is unconventional, but its what we need to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top