Click to See Complete Forum and Search --> : SC Manager


James Sluiter
March 22nd, 2000, 03:26 PM
Hi all,

I am attempting to perform the following in Windows 2000 and am getting back error code 997 (ERROR_IO_PENDING) along with an invalid handle. The line in question works without error on NT machines. ANy ideas would be much appreciated.

SC_HANDLE scman = OpenSCManager(NULL, NULL, SC_MANAGER_CONNECT);

James

CKane73
March 23rd, 2001, 12:54 PM
I actually encountered this same problem two days ago. The app in question is using the document/view architecture. I have three different views. I found that the problem occurs only if the view that calls OpenSCManager is the first view opened. If I default to open one of the other views first and then open the services view it works fine. I also found that on NT4 it doesn't matter; it always works. I'll let you know if I find anything out.

Chris