WSCInstallProviderAndChains Allways Fails

I am trying to use a function WSCInstallProviderAndChainswith the following parameters:

First I load ws2_32.dll using Loadlibrary, then I call the function:

rc = lpInstallProviderAndChains(
        providerGuid,        //guid
        lpszLspPathAndFile,  //filename
        lpszLspName,         //name        
        ( IfsProvider ? XP1_IFS_HANDLES : 0 ),  //flags
        NULL,
        NULL,
        NULL,
        &error //error code
    );

It always fails with an error WSAEINVALIDPROCTABLE. I really don't know what to do with this. I run the console as an administrator and use Windows 7.

+3
source share

Source: https://habr.com/ru/post/1754554/


All Articles