Solved

RegisterServiceProcess

Posted on 1997-09-02
6
247 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

13 Experts available now in Live!

Get 1:1 Help Now