From: Tim Roberts on
SachinS <SachinS(a)discussions.microsoft.com> wrote:
>
>actually I have tried multiple wayes to install the mirrror driver like
>1. I have created one .inf file which I want to install by using right
>click. So I have included the [DefaultInstall] section into it. and I am
>getting able to start installation by right click but it just do registry
>setting in "CurrentControlset>class" and "CurrentControlset>service" it also
>copy the .dll,.sys at particular place but still by mirror drive is not
>installed. so please can you tell me which part of .inf I am missing?
>2. Secondly I have created one service for installing mirror driver by which
>I have created one service but when I am going to start that service it give
>error "device is not attached to this service" actully i have also tried to
>create device object in DriverEntry by useing its parameter "context1" but
>still not working.
>so can you tell me is there any replacement for DriverObject in mirror driver?

Did you check here?
http://msdn2.microsoft.com/en-us/library/ms797873.aspx

Have you looked at the mirror sample?
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: SachinS on
I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
when driver is loaded (mirror.sys) at boot time, and this can only happen
when we have installed the mirror driver using a given .inf file through Add
Legacy Device from device manager. Now I want to install this without device
manager's command. I just wanted to install it automatically so that
Mirror.exe can use the installed driver.
using DPinst.exe i am only able to put the package into driver store. so i
need to install it again from device manger.
Is this mirror driver a pnp or nonpnp?
Only pnp device drivers can be installed using "DifxDriverPackageInstall"?
Is there anything wrong with my .inf as given bellow (this is taked as it is
from microsoft's sample):

; mirror.inf
;
; Installation inf for the Mirror 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
mirror.Miniport = 12 ; drivers
mirror.Display = 11 ; system32

;
; Driver information
;

[Manufacturer]
%Microsoft% = Mirror.Mfg

[Mirror.Mfg]
%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"


Please let me know what should be needed for this installation.

--
SachinS


"Tim Roberts" wrote:

> SachinS <SachinS(a)discussions.microsoft.com> wrote:
> >
> >actually I have tried multiple wayes to install the mirrror driver like
> >1. I have created one .inf file which I want to install by using right
> >click. So I have included the [DefaultInstall] section into it. and I am
> >getting able to start installation by right click but it just do registry
> >setting in "CurrentControlset>class" and "CurrentControlset>service" it also
> >copy the .dll,.sys at particular place but still by mirror drive is not
> >installed. so please can you tell me which part of .inf I am missing?
> >2. Secondly I have created one service for installing mirror driver by which
> >I have created one service but when I am going to start that service it give
> >error "device is not attached to this service" actully i have also tried to
> >create device object in DriverEntry by useing its parameter "context1" but
> >still not working.
> >so can you tell me is there any replacement for DriverObject in mirror driver?
>
> Did you check here?
> http://msdn2.microsoft.com/en-us/library/ms797873.aspx
>
> Have you looked at the mirror sample?
> --
> Tim Roberts, timr(a)probo.com
> Providenza & Boekelheide, Inc.
>
From: Tim Roberts on
SachinS <SachinS(a)discussions.microsoft.com> wrote:
>
>I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
>when driver is loaded (mirror.sys) at boot time, and this can only happen
>when we have installed the mirror driver using a given .inf file through Add
>Legacy Device from device manager. Now I want to install this without device
>manager's command. I just wanted to install it automatically so that
>Mirror.exe can use the installed driver.

You can't do it silently. Imagine what a security risk that would be.

>using DPinst.exe i am only able to put the package into driver store. so i
>need to install it again from device manger.

Anything device manager can do, can also be done with devcon, and the
devcon source will show you how to do it in your own application.

>Is this mirror driver a pnp or nonpnp?

GDI drivers are not PnP.
--
Tim Roberts, timr(a)probo.com
Providenza & Boekelheide, Inc.
From: SachinS on
I used "devcon -r install ezmirror.inf" and it does nothing. i don't know how
to install mirror display driver using it. and i didn't get any help for this
on net.
:(
--
SachinS


"Tim Roberts" wrote:

> SachinS <SachinS(a)discussions.microsoft.com> wrote:
> >
> >I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
> >when driver is loaded (mirror.sys) at boot time, and this can only happen
> >when we have installed the mirror driver using a given .inf file through Add
> >Legacy Device from device manager. Now I want to install this without device
> >manager's command. I just wanted to install it automatically so that
> >Mirror.exe can use the installed driver.
>
> You can't do it silently. Imagine what a security risk that would be.
>
> >using DPinst.exe i am only able to put the package into driver store. so i
> >need to install it again from device manger.
>
> Anything device manager can do, can also be done with devcon, and the
> devcon source will show you how to do it in your own application.
>
> >Is this mirror driver a pnp or nonpnp?
>
> GDI drivers are not PnP.
> --
> Tim Roberts, timr(a)probo.com
> Providenza & Boekelheide, Inc.
>
From: SachinS on
After running DevCon it says DevCon failed, But in device manager i can see a
unknown device is installed but need to update/reinstall the driver. on
reboot windows ask for driver but it does not use my one. I just need to go
in device manager and update the driver.

--
SachinS


"Tim Roberts" wrote:

> SachinS <SachinS(a)discussions.microsoft.com> wrote:
> >
> >I think ChangeDisplaySettings and ChangeDisplaySettingsEx can be used only
> >when driver is loaded (mirror.sys) at boot time, and this can only happen
> >when we have installed the mirror driver using a given .inf file through Add
> >Legacy Device from device manager. Now I want to install this without device
> >manager's command. I just wanted to install it automatically so that
> >Mirror.exe can use the installed driver.
>
> You can't do it silently. Imagine what a security risk that would be.
>
> >using DPinst.exe i am only able to put the package into driver store. so i
> >need to install it again from device manger.
>
> Anything device manager can do, can also be done with devcon, and the
> devcon source will show you how to do it in your own application.
>
> >Is this mirror driver a pnp or nonpnp?
>
> GDI drivers are not PnP.
> --
> Tim Roberts, timr(a)probo.com
> Providenza & Boekelheide, Inc.
>