Layered Service Provider - WSCInstallProvider problem!
-
Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }
-
Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }
Just in case you haven't already read it, the following is from the documentation of Windows Sockets Error Codes[^] in MSDN:
WSAEACCES 10013 Permission denied. An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST). Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4 SP4 or later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4 SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.
See also: Windows Sockets Network Programming - Appendix C: Error Reference[^] Hope that helps, -- jlr http://jlamas.blogspot.com/[^]
-
Hi, I got error code 10013 for the follow fuction. But I can't fix the problem, some body help , please!!! if(WSCInstallProvider( &filterguid, (unsigned short *)filter_path, &iplayerinfo, 1, &errorcode) == SOCKET_ERROR) { AfxMessageBox( "WSCInstallProvider Error : " + itos( errorcode ) ); return; }
Besides, what's the type of
filter_path
? Why do you need a cast to(unsigned short*)
? Hint: if filter_path is achar*
, as I suspect, simply casting to(unsigned short*)
won't work. -- jlr http://jlamas.blogspot.com/[^]