开发者

WSCInstallProviderAndChains Always Fails

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜