Mirror Driver 64-bit systems

What changes meed to be made for making the mirror driver work on 64-bit machines? I am succesful in making the mirror driver work in 32 bit machines.
I suppose the changes should be in INF file. Please provide some pointers to this.

Thanks.

Hi
I have built the sys and dll files for 64 bit windows. Also i have decorated the INF file with model name as suggested in http://www.microsoft.com/whdc/archive/64inf_reqs.mspx. Still, when i try to install the driver iam getting an error " The required line was not found in the INF".

Please suggest anything that iam missing.

Thanks.

xxxxx@gmail.com wrote:

I have built the sys and dll files for 64 bit windows. Also i have decorated the INF file with model name as suggested in http://www.microsoft.com/whdc/archive/64inf_reqs.mspx. Still, when i try to install the driver iam getting an error " The required line was not found in the INF".

Please suggest anything that iam missing.

That suggests that your version decorations are incorrect. Try posting
your INF and we’ll take a look.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

make sure you use the chkinf tool from the wdk it catches a good majority of
inf problems

On Tue, Nov 16, 2010 at 3:46 AM, wrote:

> Hi
> I have built the sys and dll files for 64 bit windows. Also i have
> decorated the INF file with model name as suggested in
> http://www.microsoft.com/whdc/archive/64inf_reqs.mspx. Still, when i try
> to install the driver iam getting an error " The required line was not found
> in the INF".
>
> Please suggest anything that iam missing.
>
> Thanks.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hi Tim
I think i got that error because iam not using CatalogFile?. Now i added Catalog file and used INF2CAT to generate catalog file.

Now, the previous error is resolved, but iam getting an error" The driver selected for this device doesn’t support this version of windows". Iam working on Win7 64 bit and i have generated fresh dll and sys file for 64 bit windows. Iam not able to get what exactly iam missing. Please suggest something.

Iam pasting the INF file iam using here.

; mirror.inf
;
; Installation inf for the Mirror graphics adapter.
;
; Copyright (x) 1995-1999 Microsoft Corporation. All rights reserved
;

[Version]
Signature=“$CHICAGO$”
Provider=%Microsoft%
CatalogFile=mirror.cat
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=03/05/2010,5.00.2072

[DestinationDirs]
DefaultDestDir = 11
mirror.Miniport = 12 ; drivers
mirror.Display = 11 ; system32

;
; Driver information
;

[Manufacturer]
%Microsoft% = Mirror,NTamd64

[Mirror.NTamd64]
%Mirror% = mirror, Microsoft_Mirror_Sample1

;
; General installation section
;

[mirror]
CopyFiles=mirror.Miniport, mirror.Display

;
; File sections
;

[mirror.Miniport]
mirror.sys

[mirror.Display]
mirror.dll

;
; Service Installation
;

[mirror.Services]
AddService = mirror, 0x00000002, mirror_Service_Inst, mirror_EventLog_Inst

[mirror_Service_Inst]

ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 1 ; SERVICE_SYSTEM_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary = %12%\mirror.sys

[mirror_EventLog_Inst]
AddReg = mirror_EventLog_AddReg

[mirror_EventLog_AddReg]
HKR,EventMessageFile,0x00020000,“%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\mirror.sys”
HKR,TypesSupported,0x00010001,7

;
; Software Installation
;

[mirror.SoftwareSettings]
AddReg = mirror_SoftwareDeviceSettings

[mirror_SoftwareDeviceSettings]
HKR, MirrorDriver, %REG_DWORD%, 1
HKR, InstalledDisplayDrivers, %REG_MULTI_SZ%, mirror
HKR, VgaCompatible, %REG_DWORD%, 0
HKR, Attach.ToDesktop, %REG_DWORD%, 1

[mirror.OpenGLSoftwareSettings]
AddReg = mirror_OpenGLSoftwareSettings

[mirror_OpenGLSoftwareSettings]

;
; Not currently used:
;

[mirror.GeneralConfigData]
MaximumNumberOfDevices = 1
KeepExistingDriverEnabled = 1

;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId%,“”

[SourceDisksFiles]
mirror.sys = 1
mirror.dll = 1

[Strings]

;
; Non-Localizable Strings
;

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
SERVICEROOT = “System\CurrentControlSet\Services”

;
; Localizable Strings
;

DiskId = “Mirror Installation DISK (VIDEO)”
GraphAdap = “Graphics Adapter”
Microsoft = “Microsoft”
Mirror = “Microsoft Mirror Driver”

Thanks.

Double check to see if you built 64 bit versions of t he DLL and SYS files.

Gary G. Little

----- Original Message -----
From: xxxxx@gmail.com
To: “Windows System Software Devs Interest List”
Sent: Tuesday, November 16, 2010 8:46:25 AM
Subject: RE:[ntdev] Mirror Driver 64-bit systems

Hi Tim
I think i got that error because iam not using CatalogFile?. Now i added Catalog file and used INF2CAT to generate catalog file.

Now, the previous error is resolved, but iam getting an error" The driver selected for this device doesn’t support this version of windows". Iam working on Win7 64 bit and i have generated fresh dll and sys file for 64 bit windows. Iam not able to get what exactly iam missing. Please suggest something.

Iam pasting the INF file iam using here.

; mirror.inf
;
; Installation inf for the Mirror graphics adapter.
;
; Copyright (x) 1995-1999 Microsoft Corporation. All rights reserved
;

[Version]
Signature=“$CHICAGO$”
Provider=%Microsoft%
CatalogFile=mirror.cat
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=03/05/2010,5.00.2072

[DestinationDirs]
DefaultDestDir = 11
mirror.Miniport = 12 ; drivers
mirror.Display = 11 ; system32

;
; Driver information
;

[Manufacturer]
%Microsoft% = Mirror,NTamd64

[Mirror.NTamd64]
%Mirror% = mirror, Microsoft_Mirror_Sample1

;
; General installation section
;

[mirror]
CopyFiles=mirror.Miniport, mirror.Display

;
; File sections
;

[mirror.Miniport]
mirror.sys

[mirror.Display]
mirror.dll

;
; Service Installation
;

[mirror.Services]
AddService = mirror, 0x00000002, mirror_Service_Inst, mirror_EventLog_Inst

[mirror_Service_Inst]

ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 1 ; SERVICE_SYSTEM_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary = %12%\mirror.sys

[mirror_EventLog_Inst]
AddReg = mirror_EventLog_AddReg

[mirror_EventLog_AddReg]
HKR,EventMessageFile,0x00020000,“%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\mirror.sys”
HKR,TypesSupported,0x00010001,7

;
; Software Installation
;

[mirror.SoftwareSettings]
AddReg = mirror_SoftwareDeviceSettings

[mirror_SoftwareDeviceSettings]
HKR, MirrorDriver, %REG_DWORD%, 1
HKR, InstalledDisplayDrivers, %REG_MULTI_SZ%, mirror
HKR, VgaCompatible, %REG_DWORD%, 0
HKR, Attach.ToDesktop, %REG_DWORD%, 1

[mirror.OpenGLSoftwareSettings]
AddReg = mirror_OpenGLSoftwareSettings

[mirror_OpenGLSoftwareSettings]

;
; Not currently used:
;

[mirror.GeneralConfigData]
MaximumNumberOfDevices = 1
KeepExistingDriverEnabled = 1

;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId%,“”

[SourceDisksFiles]
mirror.sys = 1
mirror.dll = 1

[Strings]

;
; Non-Localizable Strings
;

REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
SERVICEROOT = “System\CurrentControlSet\Services”

;
; Localizable Strings
;

DiskId = “Mirror Installation DISK (VIDEO)”
GraphAdap = “Graphics Adapter”
Microsoft = “Microsoft”
Mirror = “Microsoft Mirror Driver”

Thanks.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

xxxxx@gmail.com wrote:

Hi Tim
I think i got that error because iam not using CatalogFile?. Now i added Catalog file and used INF2CAT to generate catalog file.

No, a catalog file is not required until you submit for WHQL, unless
that’s how you plan to do the signing.

Now, the previous error is resolved, but iam getting an error" The driver selected for this device doesn’t support this version of windows". Iam working on Win7 64 bit and i have generated fresh dll and sys file for 64 bit windows. Iam not able to get what exactly iam missing. Please suggest something.

How are you installing this?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Gary,
I have built the dll and sys file for 64 bit windows only.

Tim,

Iam installing the INF file using Device Manager–> Action–>Add Legacy Hardware…

Regarding Catalog file… Does it mean that catalog file entry in the version section of iNF file is not compulsory if we are just trying to load driver for test purpose ? without that line iam getting the error " The required line was not found in the INF".

Thanks.

xxxxx@gmail.com wrote:

Iam installing the INF file using Device Manager–> Action–>Add Legacy Hardware…

Regarding Catalog file… Does it mean that catalog file entry in the version section of iNF file is not compulsory if we are just trying to load driver for test purpose ? without that line iam getting the error " The required line was not found in the INF".

The CatalogFile line is not required. Were you getting that error from
Device Manager, or from chkinf? Chkinf insists on it, because it thinks
you are preparing a submission for WHQL.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Hi Tim,
The error iam getting is from Device manager. As i told you in my previous post the current error is " The driver selected for this device doesn’t support this version of windows".

Thanks.

xxxxx@gmail.com wrote:

The error iam getting is from Device manager. As i told you in my previous post the current error is " The driver selected for this device doesn’t support this version of windows".

I don’t know. Send me the whole driver package (binary and INF) in a
zip via private email, and I’ll see if anything is unusual.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

My guess is still something is missing in your INF file. Better to post your
INF file here or try to find out what is missing in your INF file.

/sarbojit

On Wed, Nov 17, 2010 at 11:51 PM, Tim Roberts wrote:

> xxxxx@gmail.com wrote:
> > The error iam getting is from Device manager. As i told you in my
> previous post the current error is " The driver selected for this
> device doesn’t support this version of windows".
>
> I don’t know. Send me the whole driver package (binary and INF) in a
> zip via private email, and I’ll see if anything is unusual.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hi Sarbojit,
I have already posted my inf file in my previous post. I tried to find what exactly iam missng, but everything seemed ok for me. Kindly go through it and suggest anything that iam missing.

Thanks.

Yup… I missed it. INF file seems ok to me.
What was the exact cmd that u had used to create .cat file?
Had you created your .cat file with new INF file (i.e. after adding “NTamd64”
flag)?

/sarbojit

On Thu, Nov 18, 2010 at 11:26 AM, wrote:

> Hi Sarbojit,
> I have already posted my inf file in my previous post. I tried to find what
> exactly iam missng, but everything seemed ok for me. Kindly go through it
> and suggest anything that iam missing.
>
> Thanks.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Sarbojit,

I created the .cat file after adding NTamd64 flag in my inf file.
The command i used for inf2cat was
Inf2Cat.exe /v /driver:C:\mirrordriver /os:7_X64

assuming my binaries and my inf file are on C:\mirrordriver folder.

Thanks.