Detect User User Color Depth bits

From NSIS Wiki
Jump to navigationJump to search
Author: Joel (talk, contrib)


The Script

RequestExecutionLevel User
ShowInstDetails Show
 
Section
System::Call 'user32::GetDC(p0)p.r0'
System::Call 'gdi32::GetDeviceCaps(p r0, i 12)i.r1'
System::Call 'user32::ReleaseDC(p0, pr0)'
DetailPrint "Primary monitor: $1 bpp"
SectionEnd