Hey, I'm trying to figure out how to install/register a service class, but when I call WSAInstallServiceClass() it returns SOCKET_ERROR. Checking WSAGetLastError() for WSAEACCES and the other 'known' error codes gives no result; the value returned by WSAGetLastError() is 5, which I don't believe actually corresponds to any Winsock error code (they're all 100xxx or something like that). Does anybody know what 5 means?

Looking the function up on MSDN, it says that for "server", you need Windows2003 Server or Windows2000 Server or WindowsNT 3.51 Server. Here, I'm running Windows 2000 (not sure which version)... does this mean that I need a special OS to use the function?