Solved

RegisterServiceProcess

Posted on 1997-09-02
6
248 Views
Last Modified: 2013-11-20
oes anyone know which file I have to include to get the
definition for RegisterServiceProcess()? this is an MFC
function listed in the help files, but it neglects to specify where the definition is.

Lucidity
0
Comment
Question by:Lucidity
  • 3
  • 3
6 Comments
 
LVL 4

Accepted Solution

by:
davmarc earned 20 total points
ID: 1305495
It is not included in any header file in fact.
You have to explicitly copy the prototype from the documentation and dinamically call the function with a GetProcAddress() in module KERNEL32.DLL

Davide Marcato.
0
 

Author Comment

by:Lucidity
ID: 1305496
will something like this work ?

MyFunc =  GetProcAddress(RegisterServiceProcess(blah,blah);

after I have loaded the DLL?
0
 
LVL 4

Expert Comment

by:davmarc
ID: 1305497
Yeah, it should work.

BTW, I wonder why you gave me a C for a correct answer...

Davide Marcato.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Lucidity
ID: 1305498
Sorry,

I thought that I could change it later if you continued to help.
I should have given you a B. Does that affect the points you receive?
0
 
LVL 4

Expert Comment

by:davmarc
ID: 1305499
Yes, I get Qpoints*2 instead of Qpoints*3.

Davide Marcato.
0
 

Author Comment

by:Lucidity
ID: 1305500
terribly sorry about that, will give you an A in the future.


Lucidity
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now