Discussion:
Vista and categorizing LSPs
(too old to reply)
Viviana Vc
2007-08-06 10:09:12 UTC
Permalink
Hi all,

I am aware of the following 2 articles about Vista and LSP:
http://blogs.msdn.com/wndp/archive/2006/02/09/529031.aspx
and
http://blogs.msdn.com/wndp/archive/2006/10/05/Debugging-Winsock-LSPs.aspx

Questions:
1) Is there a tool with which one could detect the flags of an LSP? I
mean I install an app that installs an LSP and then I want to see the
flags for that LSP. Is there already a tool, like sporder.exe, that
gives that info?

2) Also, is there a tool that shows me a specific application which LSPs
is loading? I know I could find that out by creating a tool which calls
the WSCGetApplicationCategory and then I could follow the theory of
"Determining Which LSPs Get Loaded" to find out, but maybe there is
already a tool (provided by MS), like sporder.exe, that is doing that?

Thx,
Viv
Mick
2007-08-08 18:00:01 UTC
Permalink
Post by Viviana Vc
1) Is there a tool with which one could detect the flags of an LSP? I
mean I install an app that installs an LSP and then I want to see the
flags for that LSP. Is there already a tool, like sporder.exe, that
gives that info?
If you double-click an item in SPOrder, it should display all of the catalog
information for that provider.
Post by Viviana Vc
2) Also, is there a tool that shows me a specific application which LSPs
is loading? I know I could find that out by creating a tool which calls
the WSCGetApplicationCategory and then I could follow the theory of
"Determining Which LSPs Get Loaded" to find out, but maybe there is
already a tool (provided by MS), like sporder.exe, that is doing that?
Sorry, I don't know of anything. That doesn't mean there isn't one
somewhere, just that I don't know about it.
Viviana Vc
2007-08-09 11:19:13 UTC
Permalink
Hi Mick,

sporder.exe provides you with a lot of info, but not with the LSP flags
for Vista (see http://msdn2.microsoft.com/en-us/library/bb513664.aspx).

Thx,
Viv
Post by Mick
Post by Viviana Vc
1) Is there a tool with which one could detect the flags of an LSP? I
mean I install an app that installs an LSP and then I want to see the
flags for that LSP. Is there already a tool, like sporder.exe, that
gives that info?
If you double-click an item in SPOrder, it should display all of the catalog
information for that provider.
Post by Viviana Vc
2) Also, is there a tool that shows me a specific application which LSPs
is loading? I know I could find that out by creating a tool which calls
the WSCGetApplicationCategory and then I could follow the theory of
"Determining Which LSPs Get Loaded" to find out, but maybe there is
already a tool (provided by MS), like sporder.exe, that is doing that?
Sorry, I don't know of anything. That doesn't mean there isn't one
somewhere, just that I don't know about it.
Mick
2007-08-09 15:42:01 UTC
Permalink
Okay, I see what you're after now. You meant the LSP category flags that are
returned from a call to WSCGetProviderInfo for LSPs and
WSCGetApplicationCategory for applications. I should have read your post more
carefully.

It shouldn't be too difficult to write a utility that calls
WSCGetProviderInfo to retrieve the LSPs category flags. All you need is the
GUID for the provider.

To determine which LSPs would be loaded for a specific application, you
would need to call WSCGetApplicationCategory for the application, and then
call WSCGetProviderInfo for each provider in the catalog and compare the bits
for each provider to those of the application.
Post by Viviana Vc
sporder.exe provides you with a lot of info, but not with the LSP flags
for Vista (see http://msdn2.microsoft.com/en-us/library/bb513664.aspx).
Viviana Vc
2007-08-16 11:15:19 UTC
Permalink
Yes Mick, thx, I know that ... I just thought that MS already provided
such tools like they provided the sporder.exe along with the LSP.

Viv
Post by Mick
Okay, I see what you're after now. You meant the LSP category flags that are
returned from a call to WSCGetProviderInfo for LSPs and
WSCGetApplicationCategory for applications. I should have read your post more
carefully.
It shouldn't be too difficult to write a utility that calls
WSCGetProviderInfo to retrieve the LSPs category flags. All you need is the
GUID for the provider.
To determine which LSPs would be loaded for a specific application, you
would need to call WSCGetApplicationCategory for the application, and then
call WSCGetProviderInfo for each provider in the catalog and compare the bits
for each provider to those of the application.
Post by Viviana Vc
sporder.exe provides you with a lot of info, but not with the LSP flags
for Vista (see http://msdn2.microsoft.com/en-us/library/bb513664.aspx).
Loading...