We help IT Professionals succeed at work.

RegisterServiceProcess

Lucidity
Lucidity asked
on
Medium Priority
289 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
Comment
Watch Question

Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
will something like this work ?

MyFunc =  GetProcAddress(RegisterServiceProcess(blah,blah);

after I have loaded the DLL?

Commented:
Yeah, it should work.

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

Davide Marcato.

Author

Commented:
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?

Commented:
Yes, I get Qpoints*2 instead of Qpoints*3.

Davide Marcato.

Author

Commented:
terribly sorry about that, will give you an A in the future.


Lucidity
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.