VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

It's time to test a code which can change your display settings, which you usually do from the

Ayan Chaudhuri  (8 Submissions)   Windows API Call/Explanation   VB 6.0   Unknown Difficulty   Tue 2nd April 2002   Mon 8th February 2021

*** It's time to test a code which can change your display settings, which you usually do from the display properties of Windows-OS *** Try

API Declarations


'*** in DEVMODE declaration ***

' dmPanningWidth As Long
' dmPanningHeight As Long

Public Type DEVMODE
dmDeviceName As String * 32
dmSpecVersion As Integer
dmDriverVersion As Integer
dmSize As Integer
dmDriverExtra As Integer
dmFields As Long
dmOrientation As Integer
dmPaperSize As Integer
dmPaperLength As Integer
dmPaperWidth As Integer
dmScale As Integer
dmCopies As Integer
dmDefaultSource As Integer
dmPrintQuality As Integer
dmColor As Integer
dmDuplex As Integer
dmYResolution As Integer
dmTTOption As Integer
dmCollate As Integer
dmFormName As String * 32
dmUnusedPadding As Integer
dmBitsPerPixel As Integer
dmPelsWidth As Long
dmPelsHeight As Long
dmDisplayFlags As Long
dmDisplayFrequency As Long
dmICMMethod As Long
dmICMIntent As Long
dmMediaType As Long
dmDitherType As Long
dmReserved1 As Long
dmReserved2 As Long
End Type
Public Declare Function EnumDisplaySettings Lib "user32.dll" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As String, _
ByVal iModeNum As Long, lpDevMode As DEVMODE) As Long
Public Const ENUM_CURRENT_SETTINGS = -1
Public Declare Function ChangeDisplaySettings Lib "user32.dll" Alias "ChangeDisplaySettingsA" (lpDevMode As Any, ByVal dwFlags _
As Long) As Long
Public Const CDS_UPDATEREGISTRY = &H1
Public Const CDS_TEST = &H2
Public Const DISP_CHANGE_SUCCESSFUL = 0
Public Const DISP_CHANGE_RESTART = 1


Rate It's time to test a code which can change your display settings, which you usually do from the (1(1 Vote))
It's time to test a code which can change your display settings, which you usually do from the .bas

It's time to test a code which can change your display settings, which you usually do from the Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters