XP service model
Posted: 10-09-2003, 12:12 AM
I have an old communications analysis application that
relies on information provided by a low level service.
Suppose the name of this application is "MYAPP" and the
name of the service it utilizes is "MYSVC." Suppose that
MYAPP functions properly under Windows NT Workstation 4.0
and Windows 98. The setup instructions for this
application read as follows:
---
(1) If you plan to run under Windows 95, add the
following line to the [386enh] section of your SYSTEM.INI
file and reboot:
[386enh]
device=C:\myapp\mysvc.vxd
(2) If you plan to run under Windows NT, simply run the
program file myapp.exe. A dialog box pops up asking you
whether you wish to install the appropriate device
driver; answer "OK." This will automatically install the
corresponding MYSVC.SYS device driver into
C:\Windows\System32\Drivers and add the appropriate
registry keys to your system.
---
I am unable to run my application on Windows XP using
neither setup method (1) nor (2). So I tried the
following from a command prompt:
---
C:\>net start mysvc
System error 31 has occurred.
A device attached to the system is not functioning.
C:\>net stop mysyc
The MYAPP Application Driver service is not started.
More help is available by typing NET HELPMSG 3521.
---
I then opened up the Services administration tool and
fruitlessly searched for the "MYAPP Application Driver"
service. I did not locate the service. In the Windows
registry, I searched for MYSVC. I found it under the "My
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002
\Services\Mysvc" tree. Here are the data values:
---
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002
\Services\Mysvc
Name Type Data
DependOnService REG_MULTI_SZ NDIS
DisplayName REG_SZ MYAPP Appl. Driver
ErrorControl REG_DWORD 0x00000001 (1)
Start REG_DWORD 0x00000003 (3)
Type REG_DWORD 0x00000001 (1)
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002
\Services\Mysvc\Enum
Name Type Data
Count REG_DWORD 0x00000000 (0)
INITSTARTFAILED REG_DWORD 0x00000001 (1)
NextInstance REG_DWORD 0x00000000 (0)
---
I also find identical keys under ControlSet003 and
CurrentControlSet.
Does anyone understand the difference between the VXD
virtual device driver model and the service driver model?
Can anyone help me understand this problem so I can run
my application under Windows XP? Thanks for your help.
-j




Threaded Mode
