Solved

RegisterServiceProcess

Posted on 1997-09-02
6
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 70
Doc'in system (example?) BA 7 125
matchUp  challenge 9 131
Windows shortcut location resolution on double click open 4 73
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

742 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