We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.

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