video display driver

hi i m back,

now i had implemented my usb display gadget and it works fine in winxp well.

i have few problems currently

my RGB bytes are swapped one , it always invertes blue and red…i m giving the mask bits for colors but doen’t makes an effect on data… is there any other configuration except the bits in video mode information structure…

another things ,

i had developed this driver using windows 2000 Display driver model , will it work on higher version of windows OS or i need to switch to vista display driver model ???

any guidance is mostly accepted …

xxxxx@slscorp.com wrote:

now i had implemented my usb display gadget and it works fine in winxp well.

i have few problems currently

my RGB bytes are swapped one , it always invertes blue and red…i m giving the mask bits for colors but doen’t makes an effect on data… is there any other configuration except the bits in video mode information structure…

Are you setting the GDIINFO ulPrimaryOrder value?

i had developed this driver using windows 2000 Display driver model , will it work on higher version of windows OS or i need to switch to vista display driver model ???

It will work, although you won’t see the “Aero” 3D desktop effects. If
you switch to WDDM, you’ll need Direct3D support.


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

yes i had given ulPrimaryOrder PRIMARY_ORDER_CBA ( my order is BGR byte 0 is B,1st is G and R is 3rd one…) and also masks accordingly

hi my display driver wokrs well in xp but when i move for vista then i faced following problems:

  1. my adapter came in device manager under display devices branch…and also shows the two installed drivers (gdi display driver and miniport driver) and drivers instlled successfully, its status was working properly.

but when i am opening display settings it doesn’t shows my adapter device in monitors list.

  1. i had seen debug messages and found that my miniport driver was called by kernel but my GDI display driver didn’t get any call from kernel as getting call in XP

what may be the problem ,

my installation file is as follows :

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

[Version]
Signature=“$CHICAGO$”
Provider=%Microsoft%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=06/01/1999,1.0

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

;
; Driver information
;

[Manufacturer]
%Microsoft% = sls_dd.Mfg,NTx86,NTamd64

[sls_dd.Mfg.NTx86]
%sls_device% = sls_dd, SLS_VGA_DEVICE

[sls_dd.Mfg.NTamd64]
%sls_device% = sls_dd, SLS_VGA_DEVICE

;
; General installation section
;

[sls_dd.NTx86]
CopyFiles=sls_dd.Miniport, sls_dd.Display

[sls_dd.NTamd64]
CopyFiles=sls_dd.Miniport, sls_dd.Display

;[DefaultInstall]
;AddService = sls_dd, 0x00000002, sls_dd_Service_Inst, sls_dd_EventLog_Inst
;CopyFiles=sls_dd.Miniport, sls_dd.Display

;
; File sections
;

[sls_dd.Miniport]
sls_dd.sys

[sls_dd.Display]
sls_dd.dll

;
; Service Installation
;

[sls_dd.NTx86.Services]
AddService = sls_dd, 0x00000002, sls_dd_Service_Inst, sls_dd_EventLog_Inst

[sls_dd.NTamd64.Services]
AddService = sls_dd, 0x00000002, sls_dd_Service_Inst, sls_dd_EventLog_Inst

[sls_dd_Service_Inst]

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

[sls_dd_EventLog_Inst]
AddReg = sls_dd_EventLog_AddReg

[sls_dd_EventLog_AddReg]
HKR,EventMessageFile,0x00020000,“%SystemRoot%\System32\IoLogMsgs.dll;%SystemRoot%\System32\drivers\sls_dd.sys”
HKR,TypesSupported,0x00010001,7

;
; Software Installation
;

[sls_dd.SoftwareSettings]
AddReg = sls_dd_SoftwareDeviceSettings

[sls_dd_SoftwareDeviceSettings]
HKR, MirrorDriver, %REG_DWORD%, 0
HKR, InstalledDisplayDrivers, %REG_MULTI_SZ%, sls_dd
HKR, VgaCompatible, %REG_DWORD%, 0
HKR, Attach.ToDesktop, %REG_DWORD%, 1

[sls_dd.OpenGLSoftwareSettings]
AddReg = sls_dd_OpenGLSoftwareSettings

[sls_dd_OpenGLSoftwareSettings]

;
; Not currently used:
;

;[sls_dd.GeneralConfigData]
;MaximumNumberOfDevices = 1
;KeepExistingDriverEnabled = 1

;
; Source file information
;

[SourceDisksNames]
1 = %DiskId%,“”

;[SourceDisksNames.NTamd64]
;1 = %DiskId%,“”

[SourceDisksFiles]
sls_dd.sys = 1
sls_dd.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 = “sls_dd Installation DISK (VIDEO)”
GraphAdap = “Graphics Adapter”
Microsoft = “SLS”
sls_device = “SLS Graphics Adapter”

is this inf file problematic or any other things i am still missing ?

any help i stucked here…

I’m not a specialist in display drivers, but I believe it’s been reported
that WDDM and XPDM display drivers can’t coexist. Since your driver is from
XP, it must be a XPDM driver.

Vista I believe also doesn’t support two WDDM display drivers for different
kinds of display adapters. Windows 7 I believe does support two WDDM (1.1)
display drivers for different hardware, but still not a WDDM and a XPDM
display driver.

I looked into the effort to write a new WDDM driver a little while ago, and
it seemed quite likely to be a VERY large project. I believe both Vista/Win
7 can still use a XPDM driver if it’s the only display adapter, although you
won’t get Aero display, or any of the other WDDM features.

I believe Vista/Win 7 don’t officially support USB display adapters,
although you should do your own research on this.

Jan

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-409892-
xxxxx@lists.osr.com] On Behalf Of xxxxx@slscorp.com
Sent: Friday, April 30, 2010 4:39 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] video display driver

hi my display driver wokrs well in xp but when i move for vista then i
faced following problems:

  1. my adapter came in device manager under display devices branch…and
    also shows the two installed drivers (gdi display driver and miniport
    driver) and drivers instlled successfully, its status was working
    properly.

but when i am opening display settings it doesn’t shows my adapter
device in monitors list.

  1. i had seen debug messages and found that my miniport driver was
    called by kernel but my GDI display driver didn’t get any call from
    kernel as getting call in XP

what may be the problem ,

my installation file is as follows :

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

[Version]
Signature=“$CHICAGO$”
Provider=%Microsoft%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
DriverVer=06/01/1999,1.0

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

;
; Driver information
;

[Manufacturer]
%Microsoft% = sls_dd.Mfg,NTx86,NTamd64

[sls_dd.Mfg.NTx86]
%sls_device% = sls_dd, SLS_VGA_DEVICE

[sls_dd.Mfg.NTamd64]
%sls_device% = sls_dd, SLS_VGA_DEVICE

;
; General installation section
;

[sls_dd.NTx86]
CopyFiles=sls_dd.Miniport, sls_dd.Display

[sls_dd.NTamd64]
CopyFiles=sls_dd.Miniport, sls_dd.Display

;[DefaultInstall]
;AddService = sls_dd, 0x00000002, sls_dd_Service_Inst,
sls_dd_EventLog_Inst
;CopyFiles=sls_dd.Miniport, sls_dd.Display

;
; File sections
;

[sls_dd.Miniport]
sls_dd.sys

[sls_dd.Display]
sls_dd.dll

;
; Service Installation
;

[sls_dd.NTx86.Services]
AddService = sls_dd, 0x00000002, sls_dd_Service_Inst,
sls_dd_EventLog_Inst

[sls_dd.NTamd64.Services]
AddService = sls_dd, 0x00000002, sls_dd_Service_Inst,
sls_dd_EventLog_Inst

[sls_dd_Service_Inst]

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

[sls_dd_EventLog_Inst]
AddReg = sls_dd_EventLog_AddReg

[sls_dd_EventLog_AddReg]
HKR,EventMessageFile,0x00020000,“%SystemRoot%\System32\IoLogMsgs.dll;%
SystemRoot%\System32\drivers\sls_dd.sys”
HKR,TypesSupported,0x00010001,7

;
; Software Installation
;

[sls_dd.SoftwareSettings]
AddReg = sls_dd_SoftwareDeviceSettings

[sls_dd_SoftwareDeviceSettings]
HKR, MirrorDriver, %REG_DWORD%, 0
HKR, InstalledDisplayDrivers, %REG_MULTI_SZ%, sls_dd
HKR, VgaCompatible, %REG_DWORD%, 0
HKR, Attach.ToDesktop, %REG_DWORD%, 1

[sls_dd.OpenGLSoftwareSettings]
AddReg = sls_dd_OpenGLSoftwareSettings

[sls_dd_OpenGLSoftwareSettings]

;
; Not currently used:
;

;[sls_dd.GeneralConfigData]
;MaximumNumberOfDevices = 1
;KeepExistingDriverEnabled = 1

;
; Source file information
;

[SourceDisksNames]
1 = %DiskId%,“”

;[SourceDisksNames.NTamd64]
;1 = %DiskId%,“”

[SourceDisksFiles]
sls_dd.sys = 1
sls_dd.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 = “sls_dd Installation DISK (VIDEO)”
GraphAdap = “Graphics Adapter”
Microsoft = “SLS”
sls_device = “SLS Graphics Adapter”

is this inf file problematic or any other things i am still missing ?

any help i stucked here…


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

thanks jan,

you r right in vista and win7 xpdm and wddm can’t live at a time.

so , i tested it by disabling currently wddm in vista and win7 and it works as expected one…

but now i did another test on multipoint OS and can’t figure out how to do same thing ( disabling existing wddm and usb display driver ) to enable our usb monitor … and i also dont know whether it will support xpdm or not???

because my main goal is to make it work on multipoint os…

thanks in advance for any suggestion…