Layered Service Provider Under Windows NT


V

Victor Pereira

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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top