Hello,
I am currently programming in Windows XP. I would like to make a program I created continue running even after users have logged off. The MSDN documentation on this function i.e:
http://msdn.microsoft.com/library/de...5func_3t0z.asp
tells me that:
"To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call RegisterServiceProcess"
and I quote (to the letter!). This is what I did:
------------------------------------------------------------------------
HMODULE hMod;
FARPROC ServiceProcess;
hMod = LoadLibrary("location-of-kernel32.dll");
if(!hMod) {
// Never reaches here, always, the module is loaded
}
// The problematic stage
ServiceProcess = GetProcAddres(hMod, "RegisterServiceProcess");
//ServiceProcess is always NULL
----------------------------------------------------------------------
Does anyone have an idea what the problem could be, is it that the MSDN documentation is rather inaccurate in this or are there permissions in Windows XP that even an administrator (as I am)has to have before loading the library?
Gerald.