开发者

WSCInstallProviderAndChains Always Fails

开发者 https://www.devze.com 2023-01-07 10:08 出处:网络
I am trying to use the WSCInstallProviderAndChains function with the following parameters: First, I load the ws2_32.dll with Loadlibrary, then I call the function:

I am trying to use the WSCInstallProviderAndChains function with the following parameters:

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

rc = lpInstallProviderAndChains(
        providerGuid,        //guid
        lpszLspPathAndFile,  //filename
        lpszLspName,         //name        
        ( IfsProvider ? XP1_IFS_HANDLES : 0 ),  //flags
        NULL,
        NULL,
        NULL,
        &am开发者_运维技巧p;error //error code
    );

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

0

精彩评论

暂无评论...
验证码 换一张
取 消