But when I reoot the OS, the "IPSEC Services" can't start and all network connections are error. Then I start "IPSEC Services" manually, and everything is OK. What shall I do?
Another problem is I never watch the debug messages , "IPFilter WSPStartup ..." and "SendTo..." , on the DbMon. Does it means the WSPStartup and WSPSendTo function of my LSP DLL worked incorrectly?
My OS is Win server 2003 standard edition. VC++ 6.0
Please help me. Thank you very much.
Last edited by yukuang; August 17th, 2006 at 03:40 AM.
If ipsec service failed to start then it must have reported the error/reason in event viewer, does your LSP work fine with the browsers ?
I got the error message from event viewer/ microsoft.com.
It is:
Details
Product: Windows Operating System
Event ID: 7023
Source: Service Control Manager
Version: 5.0
Component: System Event Log
Symbolic Name: EVENT_SERVICE_EXIT_FAILED
Message: The %1 service terminated with the following error:
%2
Explanation
The specified service stopped unexpectedly with the error indicated in the message. The service closed safely.
User Action
To troubleshoot the error:
Review the error information displayed in the message.
To display the WIN32_EXIT_CODE error that SCM encountered, at the command prompt, type
sc query service name
The information displayed can help you troubleshoot possible causes for the error.
Version: 5.2
Symbolic Name: EVENT_SERVICE_EXIT_FAILED
Message: The %1 service terminated with the following error:
%2
Explanation
The specified service stopped unexpectedly with the error indicated in the message. The service closed safely.
User Action
To troubleshoot the error:
Review the error information displayed in the message.
To display the WIN32_EXIT_CODE error that SCM encountered, at the command prompt, type
sc query service name
The information displayed can help you troubleshoot possible causes for the error.
Not only my browser, but also other programs can't connect to network.
Thanks for you reply.
I'm so sorry for my harum-scarum. I've used CODE TAG.
Originally Posted by j0nas
Shouldn't you implement all functions?! Or memcpy the previous provider's dispatch table and override the WSPSendTo function.
That's all my code here. I only implemnt 2 functions, WSAStarup and WSASendTo, and I don't know if I memcpy the previous provider's dispatch table and override the WSPSendTo function.
Originally Posted by j0nas
It is also important to install it correctly. Pls attach a screenshot on SpOrder.exe from your system.
I attached a screenshot.
Originally Posted by j0nas
WSPStartup should be called if you have installed your LSP correctly.
I think you need to implement few more funcitons, why dont you use the LSP sample on MSDN or Platform SDK as base and then add your code in it.
Do you mean "layered.zip" on MSDN? I 'll try it.
I can't build the sample "layered " of 2003 Platform SDK in my enviorment (Windows 2003, vc++6.0), and do you know the reason? Someone told me to use VC++ 7.0 to build it...
Your installation (according to SpOrder) doesn't look right to me.
I haven't been doing LSP programming for a long-time, so I could be wrong, but shouldn't SpOrder show one entry for the LSP and additional once for each chain. In your case, I can only see the chains (one for udp and one for tcp).
I think there is a new WSC-function for LSP-installation which both installs the LSP and any chain. Don't remember the name of it, but have a look in MSDN online library (http://msdn.microsoft.com/library).
The standard and documented way is the implement, at least stubs, every function in the dispatch table... but I have successfully developed a LSP (over TCP only) which only implemented 4-5 functions... (no stubs)... The way I solved it, was to copy the dispatch-table from the next provider in line (mstcp in my case) using memcpy. I first copied the whole dispatch-table and then override those functions I had to "see" or intercept.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.