Hi, i'm trying to install a Layered Service Provider on Windows NT 4
Service Pack 6, but itīs failing at WSPInstallProvider() Function.
My Code to install a Provider is something like that:
WSAPROTOCOL_INFOW LayeredProtocolInfoBuff, ProtocolChainProtoInfo,
BaseProtocolInfoBuff;
// Retrieve BaseProtocolInfoBuff using WSCEnumProtocols
Memcpy (&LayeredProtocolInfoBuff , &BaseProtocolInfoBuff,
sizeof(WSAPROTOCOL_INFO));
LayeredProtocolInfoBuff.dwProviderFlags = PFL_HIDDEN;
LayeredProtocolInfoBuff.ProviderId = LayeredProviderGuid;
LayeredProtocolInfoBuff.dwCatalogEntryId = 0; // to be filled in by system
LayeredProtocolInfoBuff.ProtocolChain.ChainLen = LAYERED_PROTOCOL;
WSCInstallProvider(
&LayeredProviderGuid,
L"c:\winnt\system32\lsp.dll", // lpszProviderDllPath
&LayeredProtocolInfoBuff, // lpProtocolInfoList
1, // dwNumberOfEntries
& install_error // lpErrno
);
The Strange thing is that LSP is running at windows XP and Windows 2000.
Does Anyone knows why ? maybe some changes at WSAPROTOOCOL_INFOW
STRUCTURE ?
Reguards,
VP
|