Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Convert CString to char array? Pin
Aescleal24-May-10 4:17
Aescleal24-May-10 4:17 
QuestionSplitter Window for MDI. Pin
janaswamy uday23-May-10 16:04
janaswamy uday23-May-10 16:04 
QuestionHow to include a dll and a lib files into a VS project Pin
Schehaider_Aymen23-May-10 11:18
Schehaider_Aymen23-May-10 11:18 
AnswerRe: How to include a dll and a lib files into a VS project Pin
Garth J Lancaster23-May-10 12:36
professionalGarth J Lancaster23-May-10 12:36 
GeneralRe: How to include a dll and a lib files into a VS project [modified] Pin
Schehaider_Aymen23-May-10 12:43
Schehaider_Aymen23-May-10 12:43 
GeneralRe: How to include a dll and a lib files into a VS project Pin
Garth J Lancaster23-May-10 12:56
professionalGarth J Lancaster23-May-10 12:56 
GeneralRe: How to include a dll and a lib files into a VS project Pin
Schehaider_Aymen23-May-10 12:57
Schehaider_Aymen23-May-10 12:57 
QuestionStarting a password protected NT Service [modified] Pin
pubis23-May-10 9:13
pubis23-May-10 9:13 
Hi, I am a C++ beginner. I have an NT Service I need to publish on the net for download but I don't want any one to be able to start except me or the one I authorize. When you download the service executable you could install the service but you should not be able to start it. One of the ideas is to protect the service executable with password, this way, in theory, only the one who has the password can start the service. Lots of EXE Password protectors on the net, but once I use one of them to protect the service executable the service doesn't start at all. The reason is obvious; NT services has no message pipe a user could use to enter the password. I even used Themida to protect the service as described on their KB (they say their software can protect NT Services) but looks like Themida actually corrupts the service executable too as it doesn't start anymore. I have the source code of the service and I use [service /i] and [service /u] to install/uninstall the service, but I don't know how to pass the password as a command line parameter to the service when I start it. the SCM attempt to start it.

If the password protecting is a bad idea, could some one guide me on how to reach my goal, my goal is: my service should not be started by anyone except me.

Thanks

modified on Sunday, May 23, 2010 3:52 PM

AnswerRe: Starting a password protected NT Service Pin
Aescleal23-May-10 9:59
Aescleal23-May-10 9:59 
GeneralRe: Starting a password protected NT Service Pin
pubis23-May-10 10:15
pubis23-May-10 10:15 
GeneralRe: Starting a password protected NT Service Pin
Aescleal23-May-10 10:24
Aescleal23-May-10 10:24 
GeneralRe: Starting a password protected NT Service Pin
pubis23-May-10 10:56
pubis23-May-10 10:56 
QuestionWM_QUERYENDSESSION problem on C++ Builder 2010 Pin
Member 88968923-May-10 7:06
Member 88968923-May-10 7:06 
AnswerRe: WM_QUERYENDSESSION problem on C++ Builder 2010 Pin
ARopo24-May-10 6:26
ARopo24-May-10 6:26 
GeneralRe: WM_QUERYENDSESSION problem on C++ Builder 2010 Pin
Member 88968924-May-10 13:36
Member 88968924-May-10 13:36 
QuestionC++ String Creation Pin
sikas_Cisco23-May-10 4:57
sikas_Cisco23-May-10 4:57 
AnswerRe: C++ String Creation Pin
Dr.Walt Fair, PE23-May-10 5:18
professionalDr.Walt Fair, PE23-May-10 5:18 
AnswerRe: C++ String Creation Pin
John R. Shaw23-May-10 7:21
John R. Shaw23-May-10 7:21 
GeneralRe: C++ String Creation Pin
sikas_Cisco23-May-10 8:55
sikas_Cisco23-May-10 8:55 
AnswerRe: C++ String Creation Pin
Aescleal23-May-10 9:36
Aescleal23-May-10 9:36 
QuestionIntel Compiler IA-32 11.0.061 installation on VS 2010 question Pin
Chesnokov Yuriy23-May-10 4:07
professionalChesnokov Yuriy23-May-10 4:07 
QuestionOLE interface for Crichedit Pin
ForNow22-May-10 19:27
ForNow22-May-10 19:27 
Questionnew vs free and malloc vs delete Pin
msr_codeproject22-May-10 18:24
msr_codeproject22-May-10 18:24 
AnswerRe: new vs free and malloc vs delete Pin
loyal ginger22-May-10 19:01
loyal ginger22-May-10 19:01 
AnswerRe: new vs free and malloc vs delete Pin
Stephen Hewitt22-May-10 22:11
Stephen Hewitt22-May-10 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.