blue background, bigger resolution

  • Thread starter Thread starter Karoly Vaczko (FM)
  • Start date Start date
K

Karoly Vaczko (FM)

Gentlemen,

I created a DOS shell-based Minlogon image. After adding some networking
components into the design, I realized that some components require
dialog boxes to show. But it is not a problem at all.

However, once it became like that, the DOS screen resolution from 80x25
changed to (don't know exactly) app. 132x80. First question: Is there a
way to change it back to 80x25?

Second issue: whenever XPe shows something on the GUI (for instance
rundll32 netshell.dll hrrenameConnection - typo in the line) it turns to
the GUI, shows the error dialog. This is again OK (however, I don't like
that). Question: Is there a way to get rid of the GUI part without
making too much trouble OR if not, is there a way, to replace at least
the blue background of the GUI to a bitmap? I tried already to catch
with regmon an XPPro background replacement, but it replaces a key which
(seem to) belong to Plus! that is obviously not in my image.

Thanks for your replies in advance.

Best regards,


Karoly
 
Karoly,

1) Are you talking about the text full-screen mode of Windows console?
Don't know why you see the issue with the changing dimensions but you can easy fix it with API call.
SetConsoleDisplayMode( ..., CONSOLE_FULLSCREEN_MODE, <new COORDS>) will do that for you. Just make sure to pass the required the new
dimensions of the screen buffer, in characters (80x25).
Also, for debugging purposes you can test the current screen buffer dimensions for the console with a call to GetConsoleDisplayMode.

To get a hnadle to the required console with AttachConsole, or with CreateConsoleScreenBuffer/SetConsoleActiveScreenBuffer pair. Or
create the console from your own app (would be the best from control point of view) - AllocConsole/CreateConsoleScreenBuffer/etc..

Some helpful info about the console APIs: http://msdn.microsoft.com/library/en-us/dllproc/base/console_functions.asp

2) Windows is GUI OS so, theoretically, you can't get rid of the all GUI stuff (unless you don't work in Win32).
However, you can make your life easier if you at least get read of all the errors/message boxes/etc.. Read this tip page:
http://msdn.microsoft.com/embedded/community/community/tips/xp/popups/default.aspx

As to the background, you should set (change) the following reg.value: [HKEY_USERS\.DEFAULT\Control Panel\Desktop],"Wallpaper". Set
it to the path of your bitmap.

Also setting [HKLM\SOFTWARE\Microsoft\Wind­ows\CurrentVersion\policies\s­ystem], "DisableStatusMessages"=dword:­1 value would help
you to get rid of MS startup and shutdown messages ("Loading ...", "Shutting down ..").

You may also want to remove MS Boot Logo screen. Then play with /bootlogo switch in boot.ini (search NG for more info).
 
I'm having a similar problem - I have a custom shell with MinLogon. I
was able to turn off the Windows startup displays, but for about 20
seconds before my custom shell starts, there is a blue background. I
would like it to be black. How can I force windows so stay black?

Thanks
MJ
 
MJ,

See my previous post in this thread for more details info.
Provide a black bitmap image for the [HKEY_USERS\.DEFAULT\Control Panel\Desktop],"Wallpaper".
 
Back
Top