News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Full screen mode under Windows 7-32

Started by Gunther, October 17, 2014, 08:23:04 AM

Previous topic - Next topic

nidud

#15
deleted

Gunther

Hi nidud,

the application seems not to work with a virtual machine.

Gunther
You have to know the facts before you can distort them.

TouEnMasm

This one use SetConsoleDisplayMode

_APISET_MMISC_VER equ 99h
include sdk32.inc
include conio.sdk
include stdio.sdk
include macros.inc

.const
includelib  msvcrt.lib ;libcmtd.lib ;
EXTERNDEF _FPinit:dword ; to load floating point library
invalid_parameter PROTO C :DWORD,  :DWORD,  :DWORD,  :DWORD,  :DWORD
.data
invalid db "invalid parameter",0
hConsoleOutput dd 0
consoleScreenBufferInfo CONSOLE_SCREEN_BUFFER_INFO <>
coord COORD <>

.code
;################################################################
invalid_parameter PROC C expression:DWORD,function,file,line,pReserved
Local  retour:DWORD
mov retour,1
;all parameters expression:DWORD,function,file,line,pReserved are NULL
invoke MessageBox,NULL,ADDR invalid,NULL,MB_OK
Findeinvalid_parameter:
mov eax,retour
ret
invalid_parameter endp

;################################################################

main PROC C argc:DWORD,pargv:DWORD
;pour les fonctions sécurisées sprintf_s ......
invoke _set_invalid_parameter_handler,invalid_parameter
invoke GetStdHandle,STD_OUTPUT_HANDLE
mov hConsoleOutput,eax
invoke SetConsoleDisplayMode,hConsoleOutput,CONSOLE_FULLSCREEN_MODE,addr coord
invoke printf,TXT("Full Screen Mode with SetConsoleDisplayMode",13,10)
invoke _getch

mov eax,0
ret
main endp

end 


In some cases, the graphic card need to be disable to access full screen

Fa is a musical note to play with CL