problem in porting 32 bit application in x64...

M

mani

hi...
i m using an 32 bit allication to load a driver ...but when i m trying
this application in X64,its failing at
SetupDiCallClassInstaller(DIF_REGISTERDEVICE,
DeviceInfoSet,
&DeviceInfoData)
with error code e0000235()....i compiled the application in
xp(professional 64 bit addition),but its still giving the same
error...
can any body plz tell me y its happening so????
Regards
mani
 
W

Willy Denoyette [MVP]

mani said:
hi...
i m using an 32 bit allication to load a driver ...but when i m trying
this application in X64,its failing at
SetupDiCallClassInstaller(DIF_REGISTERDEVICE,
DeviceInfoSet,
&DeviceInfoData)
with error code e0000235()....i compiled the application in
xp(professional 64 bit addition),but its still giving the same
error...
can any body plz tell me y its happening so????
Regards
mani


Wrong NG, please post device driver related questions to the DDK NG. That
said, it looks like you are trying to install a 32 bit driver on 64 bit
Windows, this is not supported, 64 bit Windows requires a 64 bit driver AND
a 64 bit installer.

Willy.
 
M

mani

Willy said:
Wrong NG, please post device driver related questions to the DDK NG. That
said, it looks like you are trying to install a 32 bit driver on 64 bit
Windows, this is not supported, 64 bit Windows requires a 64 bit driver AND
a 64 bit installer.

Willy.


thanks Willy...
actualy i m trying to install virtual COM port driver and i m trying
with 64 bit driver only ..can u plz tell me do i need to rewrite the
application..
do i need to do changes in inf????
this is the inf which i m using ...
; GLPORTS.INF

; GLPORTS.INF


[version]
LayoutFile=layout.inf
Signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%OE%
DriverVer=04/12/2006,1.0.0.1

[DestinationDirs]
ComPort.NT.Copy = 12 ;DIRID_DRIVERS

; Install class "Ports"
;----------------------------------------------------------

[ClassInstall32]
Addreg=VSerialClassReg

;[VSerialClassReg]
;HKR,,,0,%ClassName%
;HKR,,Icon,,-25
;HKR,,SilentInstall,,1
;HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"
;HKR,,EnumPropPages32,,"MSPORTS.dll,SerialPortPropPageProvider"




[ComPort.NT.AddReg]

HKR,,,0,%ClassName%
HKR,,Icon,,-25
HKR,,SilentInstall,,1

HKR,,Installer32,,"MsPorts.Dll,PortsClassInstaller"
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
HKR,,LocationInformationOverride,,%LocationOverride%


; Drivers
;----------------------------------------------------------
[Manufacturer]
%OE%=OE


[OE]

%*PNP0500.DeviceDesc% = ComPort,VirtualCom,

; COM sections
;----------------------------------------------------------

[ComPort.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
;LogConfig=c14,c1a,c23,c2a,c34,c3a,c43,c4a,caa
;SyssetupPnPFlags = 1


; MultiPort COM Sections;
; -------------------------------------------------------

[MultiComPort.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
;LogConfig=cm1,cm2,cm3,cm4,dg1,dga,cma
;SyssetupPnPFlags = 1



[ComPort.NT.Copy]
glvsp.sys


[ComPort.Copy]
serial.vxd
serialui.dll


; The serial enumerator by itself, so that other INFs can install
serenum w/out virtuals.sys
; -------------------------------------------------------

;-------------- Service installation
; Port Driver (function driver for this device)
[ComPort.NT.Services]
AddService = VirtualCom, 0x00000002, Serial_Service_Inst
; -------------- Serial Port Driver install sections
[Serial_Service_Inst]
DisplayName = %Serial.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 1 ; SERVICE_SYSTEM_START (this driver
may do detection)
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary = %12%\glvsp.sys
LoadOrderGroup = Extended base




; User readable strings
;----------------------------------------------------------
[Strings]

GRACE = "GRACE"

OE = "OE"
LocationOverride = "Ethernet"
PortsClassName = "VirtualPorts (COM )"

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


*PNP0500.DeviceDesc="VirtualCom"
Serial.SVCDESC="VirtualPorts"

ClassName = "Virtual Serial Ports"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top