tags:

views:

64

answers:

2

A seemingly simple call returns an error, but I don't understand why. Can anyone please advise?

GUID * Guid = (assigned elsewhere)
INT ErrorCode, rc;

rc = WSCDeinstallProvider( Guid, &ErrorCode );
// rc == SOCKET_ERROR at this point and ErrorCode == 10014 (WSAEFAULT)

Thanks in advance!

A: 

According to MSDN:

WSCDeinstallProvider Function

WSAEFAULT The lpErrno parameter is not in a valid part of the user address space.

Remy Lebeau - TeamB
Yes, but what does that mean? I've tried allocation ErrorCode on the heap as well, but it's the same result :(
dennisV
A: 

Fixed the problem by changing the order in which LSPs are uninstalled.

dennisV