Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

Service installs on W2K, but does not load

已查看 59 次
跳至第一个未读帖子

QuasiCodo

未读,
2002年3月27日 10:59:292002/3/27
收件人
I've taken an NT 4 NDIS driver and service module and ported them into W2K.
When I install, the driver and service both install correctly. The driver
loads and runs, but the service does not load. When I open Control Panel |
Administrative Tools | Services, I see the service listed, but not started.
I then right click on the service and select "Start". I then get an error:

Could not start <My Service>.

Error 1083: The executable program that this service is configured to run
in does not implement the service.

I can manual install and run the service on the command line:

cmd> myservice -install
cmd> myservice -debug

This is based on the SDK's Sample/Winbase/Winnt/Service example and I
haven't changed the service interface at all.

Here is the service installation parts of my INF file:

[MyDriver.ndi.Services]
AddService = MyDriver, 2, MyDriver.Service, MyDriver.EventLog
AddService = MyService,, MyService.Service, MyService.EventLog

[MyService.Service]
DisplayName = %MyService.Service.DispName%
ServiceType = 0x20 ;%SERVICE_WIN32_SHARE_PROCESS%
StartType = 2 ;%SERVICE_AUTO_START%
ErrorControl = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary = %11%\MyService.exe
LoadOrderGroup = NDIS
Description = %MyService.Service.DispName%

[MyService.EventLog]
AddReg = MyService.AddEventLog.reg

[MyService.AddEventLog.reg]
HKR,, TypesSupported, 0x00010001, 0x00000007


Any ideas what's wrong? Perhaps the ServiceType should be 0x10
SERVICE_WIN32_OWN_PROCESS?

((&-<


QuasiCodo

未读,
2002年3月27日 13:27:312002/3/27
收件人
Found the problem.

It works when ServiceType is 0x10 SERVICE_WIN32_OWN_PROCESS.

((&->

"QuasiCodo" <Quas...@Yahoo.com> wrote in message
news:B%lo8.122622$af7.65073@rwcrnsc53...

0 个新帖子