Cluster API

I have a Microsoft Cluster setup on two Windows 2000 servers. The Cluster presents a virtual server and file share to the client machines. From the client machines I am trying to get information about the health of the cluster.

I am trying to use the OpenCluster API call, however, I keep getting a NULL window handle returned. Calling GetLastError returns 1722

1722 The RPC server is unavailable.  RPC_S_SERVER_UNAVAILABLE

The only successful return value up to now is if I call the OpenCluster from one of the Cluster Servers passing a NULL parameter. This apparently returns a LPC rather than an RPC

Any ideas how I can get this to work?

LVL 1
philsmicronetAsked:
Who is Participating?
 
MadzCommented:
Try prepending "\\" to the virtual cluster node name before the call to OpenCluster. Does that work??

Madz
0
 
philsmicronetAuthor Commented:
I found the problem. It was in my conversion from LPSTR to LPWSTR. I didnt include the '\0' in the conversion.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.