Hi!
I have build a UI Plug-in for Windows server 2003 AMD 64. But when i install
it driver does not get install and gives some error.
I have sorted out that the problem is only due to UI Plug-in dll because it
gets install fine if I remove UI dll and just use gpd.
Pls. let me know how I can find what is going wrong. I tried to see debug
messages using WinDbg but I did not get any.
How to debug or what can go wrong. Same code and 32 bit dll works fine on 32
bit machines.

Thanks
Naveen

Re: AMD 64 Printer driver instalation by Bart

Bart
Thu Jan 13 15:06:37 CST 2005

Get and build with Windows Server 2003 SP1 DDK RC1 from MSDN.

Run the SETENV.BAT like so:

C:\WINDDK\3790.1289\bin\setenv C:\WINDDK\3790.1289 chk AMD64 WNET

Build the DLL.

Update the INF using the "decorations", or add the
DisableDecoratedModelsCheck in the Registry.

Ensure that the Security Policy allows "unsigned drivers" to be installed.

If you are already doing all that, then... uh oh.


"Naveen" <Naveen @discussions.microsoft.com> wrote in message
news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> Hi!
> I have build a UI Plug-in for Windows server 2003 AMD 64. But when i
install
> it driver does not get install and gives some error.
> I have sorted out that the problem is only due to UI Plug-in dll because
it
> gets install fine if I remove UI dll and just use gpd.
> Pls. let me know how I can find what is going wrong. I tried to see debug
> messages using WinDbg but I did not get any.
> How to debug or what can go wrong. Same code and 32 bit dll works fine on
32
> bit machines.
>
> Thanks
> Naveen



Re: AMD 64 Printer driver instalation by Naveen

Naveen
Thu Jan 13 17:57:01 CST 2005

Hi!
Yeah I have already done all that... dll is built all fine and printer is
also installing fine if I dont use Ui Plug-in so inf is also fine.
I also have renderer dll and that even does not have any problems.Printer
gets insatlled fine if I use Renderer dll and just gpd but as soon as I
include UI plug-in it does not install.

Thanks
Naveen

"Bart Crane" wrote:

> Get and build with Windows Server 2003 SP1 DDK RC1 from MSDN.
>
> Run the SETENV.BAT like so:
>
> C:\WINDDK\3790.1289\bin\setenv C:\WINDDK\3790.1289 chk AMD64 WNET
>
> Build the DLL.
>
> Update the INF using the "decorations", or add the
> DisableDecoratedModelsCheck in the Registry.
>
> Ensure that the Security Policy allows "unsigned drivers" to be installed.
>
> If you are already doing all that, then... uh oh.
>
>
> "Naveen" <Naveen @discussions.microsoft.com> wrote in message
> news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> > Hi!
> > I have build a UI Plug-in for Windows server 2003 AMD 64. But when i
> install
> > it driver does not get install and gives some error.
> > I have sorted out that the problem is only due to UI Plug-in dll because
> it
> > gets install fine if I remove UI dll and just use gpd.
> > Pls. let me know how I can find what is going wrong. I tried to see debug
> > messages using WinDbg but I did not get any.
> > How to debug or what can go wrong. Same code and 32 bit dll works fine on
> 32
> > bit machines.
> >
> > Thanks
> > Naveen
>
>
>

Re: AMD 64 Printer driver instalation by Naveen

Naveen
Thu Jan 13 20:43:03 CST 2005

Hi!
Looking in the setupapi.log it gives me
#V039 Opened INF "D:\WINDOWS\INF\printupg.inf", PNF not created (Language =
0409).

I have added the registry key need to log verbose msg

Any Idea what is this all about.
Naveen


"Naveen" wrote:

> Hi!
> Yeah I have already done all that... dll is built all fine and printer is
> also installing fine if I dont use Ui Plug-in so inf is also fine.
> I also have renderer dll and that even does not have any problems.Printer
> gets insatlled fine if I use Renderer dll and just gpd but as soon as I
> include UI plug-in it does not install.
>
> Thanks
> Naveen
>
> "Bart Crane" wrote:
>
> > Get and build with Windows Server 2003 SP1 DDK RC1 from MSDN.
> >
> > Run the SETENV.BAT like so:
> >
> > C:\WINDDK\3790.1289\bin\setenv C:\WINDDK\3790.1289 chk AMD64 WNET
> >
> > Build the DLL.
> >
> > Update the INF using the "decorations", or add the
> > DisableDecoratedModelsCheck in the Registry.
> >
> > Ensure that the Security Policy allows "unsigned drivers" to be installed.
> >
> > If you are already doing all that, then... uh oh.
> >
> >
> > "Naveen" <Naveen @discussions.microsoft.com> wrote in message
> > news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> > > Hi!
> > > I have build a UI Plug-in for Windows server 2003 AMD 64. But when i
> > install
> > > it driver does not get install and gives some error.
> > > I have sorted out that the problem is only due to UI Plug-in dll because
> > it
> > > gets install fine if I remove UI dll and just use gpd.
> > > Pls. let me know how I can find what is going wrong. I tried to see debug
> > > messages using WinDbg but I did not get any.
> > > How to debug or what can go wrong. Same code and 32 bit dll works fine on
> > 32
> > > bit machines.
> > >
> > > Thanks
> > > Naveen
> >
> >
> >

Re: AMD 64 Printer driver instalation by Naveen

Naveen
Thu Jan 13 23:55:03 CST 2005

Hi!
I got it installed. I dont know why but if I build the dll with Windows
server DDK 3790 using Windows Server 2003 AMD 64 bit chkd build it does not
install. However if I build it using LDK 4074 it builds and installs fine.

Did any one else faced similar problem whats the difference between the two
enviornment?

Naveen

"Naveen" wrote:

> Hi!
> Looking in the setupapi.log it gives me
> #V039 Opened INF "D:\WINDOWS\INF\printupg.inf", PNF not created (Language =
> 0409).
>
> I have added the registry key need to log verbose msg
>
> Any Idea what is this all about.
> Naveen
>
>
> "Naveen" wrote:
>
> > Hi!
> > Yeah I have already done all that... dll is built all fine and printer is
> > also installing fine if I dont use Ui Plug-in so inf is also fine.
> > I also have renderer dll and that even does not have any problems.Printer
> > gets insatlled fine if I use Renderer dll and just gpd but as soon as I
> > include UI plug-in it does not install.
> >
> > Thanks
> > Naveen
> >
> > "Bart Crane" wrote:
> >
> > > Get and build with Windows Server 2003 SP1 DDK RC1 from MSDN.
> > >
> > > Run the SETENV.BAT like so:
> > >
> > > C:\WINDDK\3790.1289\bin\setenv C:\WINDDK\3790.1289 chk AMD64 WNET
> > >
> > > Build the DLL.
> > >
> > > Update the INF using the "decorations", or add the
> > > DisableDecoratedModelsCheck in the Registry.
> > >
> > > Ensure that the Security Policy allows "unsigned drivers" to be installed.
> > >
> > > If you are already doing all that, then... uh oh.
> > >
> > >
> > > "Naveen" <Naveen @discussions.microsoft.com> wrote in message
> > > news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> > > > Hi!
> > > > I have build a UI Plug-in for Windows server 2003 AMD 64. But when i
> > > install
> > > > it driver does not get install and gives some error.
> > > > I have sorted out that the problem is only due to UI Plug-in dll because
> > > it
> > > > gets install fine if I remove UI dll and just use gpd.
> > > > Pls. let me know how I can find what is going wrong. I tried to see debug
> > > > messages using WinDbg but I did not get any.
> > > > How to debug or what can go wrong. Same code and 32 bit dll works fine on
> > > 32
> > > > bit machines.
> > > >
> > > > Thanks
> > > > Naveen
> > >
> > >
> > >

Re: AMD 64 Printer driver instalation by Bart

Bart
Fri Jan 14 12:47:51 CST 2005

I am using the Windows Server 2003 SP1 DDK RC1 -- 3790.1289, not the 3790.
I was using the 3790 and having problems with the install, and now the
install is working, but I have not gone back to rebuild with 3790 to see if
it made a difference.
http://www.microsoft.com/whdc/driver/foundation/WhichDDK.mspx


"Naveen" <Naveen@discussions.microsoft.com> wrote in message
news:250810CB-B1AF-4BBF-AC23-962CAA44FAAE@microsoft.com...
> Hi!
> I got it installed. I dont know why but if I build the dll with Windows
> server DDK 3790 using Windows Server 2003 AMD 64 bit chkd build it does
not
> install. However if I build it using LDK 4074 it builds and installs fine.
>
> Did any one else faced similar problem whats the difference between the
two
> enviornment?
>
> Naveen
>
> "Naveen" wrote:
>
> > Hi!
> > Looking in the setupapi.log it gives me
> > #V039 Opened INF "D:\WINDOWS\INF\printupg.inf", PNF not created
(Language =
> > 0409).
> >
> > I have added the registry key need to log verbose msg
> >
> > Any Idea what is this all about.
> > Naveen
> >
> >
> > "Naveen" wrote:
> >
> > > Hi!
> > > Yeah I have already done all that... dll is built all fine and printer
is
> > > also installing fine if I dont use Ui Plug-in so inf is also fine.
> > > I also have renderer dll and that even does not have any
problems.Printer
> > > gets insatlled fine if I use Renderer dll and just gpd but as soon as
I
> > > include UI plug-in it does not install.
> > >
> > > Thanks
> > > Naveen
> > >
> > > "Bart Crane" wrote:
> > >
> > > > Get and build with Windows Server 2003 SP1 DDK RC1 from MSDN.
> > > >
> > > > Run the SETENV.BAT like so:
> > > >
> > > > C:\WINDDK\3790.1289\bin\setenv C:\WINDDK\3790.1289 chk AMD64
WNET
> > > >
> > > > Build the DLL.
> > > >
> > > > Update the INF using the "decorations", or add the
> > > > DisableDecoratedModelsCheck in the Registry.
> > > >
> > > > Ensure that the Security Policy allows "unsigned drivers" to be
installed.
> > > >
> > > > If you are already doing all that, then... uh oh.
> > > >
> > > >
> > > > "Naveen" <Naveen @discussions.microsoft.com> wrote in message
> > > > news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> > > > > Hi!
> > > > > I have build a UI Plug-in for Windows server 2003 AMD 64. But when
i
> > > > install
> > > > > it driver does not get install and gives some error.
> > > > > I have sorted out that the problem is only due to UI Plug-in dll
because
> > > > it
> > > > > gets install fine if I remove UI dll and just use gpd.
> > > > > Pls. let me know how I can find what is going wrong. I tried to
see debug
> > > > > messages using WinDbg but I did not get any.
> > > > > How to debug or what can go wrong. Same code and 32 bit dll works
fine on
> > > > 32
> > > > > bit machines.
> > > > >
> > > > > Thanks
> > > > > Naveen
> > > >
> > > >
> > > >



Re: AMD 64 Printer driver instalation by Bart

Bart
Tue Jan 18 14:10:04 CST 2005

If you have not already discovered the problem, then maybe this is it: the
checked-build version of your driver probably links to MSVCRTD.DLL, which is
not present on the system.

I am booting with the checked-build of the OS and installing our free-build
version of our drivers without a problem. But, when installing our
checked-build version of our driver, I got this in the debugger:

LDR: LdrLoadDll - failing because
LdrpLoadDll(D:\WINDOWS\system32\spool\DRIVERS\x64\3\MLUT__UI.DLL) returned
status c0000139
ERR oemutil.c (536): LoadLibrary failed for OEM module
'D:\WINDOWS\system32\spool\DRIVERS\x64\3\MLUT__UI.DLL': 127
ERR oemutil.c (595): Failed to load OEM module
'D:\WINDOWS\system32\spool\DRIVERS\x64\3\MLUT__UI.DLL': 127
ERR driverui.c (257): Cannot load OEM plugins: 127

Error C0000139 is:
ntstatus.h:#define STATUS_ENTRYPOINT_NOT_FOUND ((NTSTATUS)0xC0000139L)

Our SOURCES says:

DLLENTRY=_DllMainCRTStartup
USE_MSVCRT=1

I checked and found that MSVCRTD.DLL is not present on either the free- or
checked-build of the OS.


"Naveen" <Naveen @discussions.microsoft.com> wrote in message
news:8ADDE82E-849C-4ED9-8B84-94C84C263FDA@microsoft.com...
> Hi!
> I have build a UI Plug-in for Windows server 2003 AMD 64. But when i
install
> it driver does not get install and gives some error.
> I have sorted out that the problem is only due to UI Plug-in dll because
it
> gets install fine if I remove UI dll and just use gpd.
> Pls. let me know how I can find what is going wrong. I tried to see debug
> messages using WinDbg but I did not get any.
> How to debug or what can go wrong. Same code and 32 bit dll works fine on
32
> bit machines.
>
> Thanks
> Naveen