Solved

RegisterServiceProcess

Posted on 1997-09-02
6
249 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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…

815 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

12 Experts available now in Live!

Get 1:1 Help Now