launching application on loading driver using Walter's Autolaunch service gives error 1053

Hi all,

I had built a driver for pcmcia card in which i use the Autolaunch
project from “PROGRAMMING THE MS WDM” by “WALTER ONEY” for popping up the
application upon loading the driver when the pcmcia card is inserted…

Sometimes the application gets poped up properly and remain popping up
every time i insert the card…

But when i installed the same package into another win2k system, it
doesn’t pop’s up the applciation…

I noticed that, when I clicked on the Autolaunch.exe at c:\winnt\
directory, the application gets poped up…
so when I manually click the autolaunch.exe, then, the application gets
poped up on insertion of the card.

i doubt in the statement “rundll32 StartService,StartService AutoLaunch”
the Startservice.dll is not starting the autolaunch.exe…

When I manually go to the "Administrative tools–>services and make to
start , then it gives me

Error 1053: could not start the service…timeout error.

please advice where I am going wrong…

I am attaching the INF file for your kind ref:

[Version]
Signature=$CHICAGO$
Class=Unknown
ClassGuid={4D36E97E-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%

[Manufacturer]
%MFGNAME%=DeviceList

[DestinationDirs]
DefaultDestDir=10,System32\Drivers
AutoLaunchCopyFiles=10
AutoLaunch98CopyFiles=10

[SourceDisksFiles]
pdg.sys=1
AutoLaunch.exe=1
alnch98.exe=1
pdg.exe=1
StartService.dll=1
pdg_dll.dll=1

[SourceDisksNames]
;1=%INSTDISK%,debug\i386
1=%INSTDISK%,.\

[DeviceList]
%DESCRIPTION%=DriverInstall,*WCO1204

;------------------------------------------------------------------------------

; Windows 2000 Sections
;------------------------------------------------------------------------------

[DriverInstall.NT]
CopyFiles=DriverCopyFiles,AutoLaunchCopyFiles
AddReg=DriverAddReg.NT

[DriverAddReg.NT]
HKLM,%RUNONCEKEYNAME%,AutoLaunchStart,“rundll32 StartService,StartService
AutoLaunch”

[DriverCopyFiles]
pdg.sys,2

[DriverInstall.NT.Services]
AddService=pdg,2,DriverService
AddService=AutoLaunch,AutoLaunchService

[AutoLaunchCopyFiles]
AutoLaunch.exe,0x60 ; replace newer, suppress dialog
;pdg.exe,0x10 ; don’t replace
pdg.exe,0x60 ; replace
StartService.dll,0x60
pdg_dll.dll,0x60

[AutoLaunchService]
ServiceType=16
StartType=2
DisplayName=“AutoLaunch Service”
ErrorControl=1
ServiceBinary=%10%\AutoLaunch.exe

[DriverService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\pdg.sys

[DriverInstall.nt.hw]
AddReg=DriverHwAddReg

[DriverHwAddReg]
HKR,SampleInfo,“%wdmbook%\chap12\AutoLaunch\AutoLaunch.htm”
HKR,FriendlyName,%FRIENDLYNAME%
HKR,AutoLaunch,%AUTOLAUNCHCOMMAND%

;------------------------------------------------------------------------------

; Windows 98 Sections
;------------------------------------------------------------------------------

[DriverInstall]
AddReg=DriverAddReg
CopyFiles=DriverCopyFiles,AutoLaunch98CopyFiles

[DriverAddReg]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,pdg.sys
HKLM,%RUNKEYNAME%,“AutoLaunchService”,alnch98.exe
HKLM,%RUNONCEKEYNAME%,AutoLaunchStart,“alnch98”

[DriverInstall.HW]
AddReg=DriverHwAddReg

[AutoLaunch98CopyFiles]
alnch98.exe,0x60
pdg.exe,0x10

;------------------------------------------------------------------------------

; String Definitions
;------------------------------------------------------------------------------

[Strings]
MFGNAME=“ABC”
INSTDISK=“ABC Installation Disc”
DESCRIPTION=“ABC PRODUCT”
FRIENDLYNAME=“ABC”
AUTOLAUNCHCOMMAND=“%windir%\pdg.exe %s %s”
RUNKEYNAME=“Software\Microsoft\Windows\CurrentVersion\Run”
RUNONCEKEYNAME=“Software\Microsoft\Windows\CurrentVersion\RunOnce”

THANX,

shiv