Article View: borland.public.cppbuilder.multimedia
Article #378Re: How to find number of monitors attached to a PC?
From: Marcelo R. Lopez, Jr.
Date: Fri, 08 Oct 2004 18:48
Date: Fri, 08 Oct 2004 18:48
35 lines
2005 bytes
2005 bytes
Remy Lebeau (TeamB) wrote:
><Monitor> wrote in message news:411cd0e6@newsgroups.borland.com...
>
>
>
>>Most of the new generation graphics cards
>>support two monitor outputs.
>>
>>How to find number of monitors attached to a PC?
>>
>>
>
>Which version of BCB are you using? The global TScreen object in BCB 5 and
>6 has MonitorCount and Monitors[] properties.
>
>
>Gambit
>
>
>
>
Alternatively ....you'll have to get familiar with the following Win32
API call:
BOOL EnumMonitors(
LPTSTR pName, // pointer to server name
DWORD Level, // structure level
LPBYTE pMonitors, // pointer to structure array
DWORD cbBuf, // size, in bytes, of buffer
LPDWORD pcbNeeded, // addr. of variable with no. of bytes copied
(or required)
LPDWORD pcReturned // addr. of variable with no. of job info.
structures copied
);
Technical Details
Message-ID:
<4166e274$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411cd0e6@newsgroups.borland.com> <411cf6c2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,9f0dbb0729078769 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 08 Oct 2004 14:48:50 -0400 From: "Marcelo R. Lopez, Jr." <mlopez@voicerite.com> User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: How to find number of monitors attached to a PC? References: <411cd0e6@newsgroups.borland.com> <411cf6c2$1@newsgroups.borland.com> In-Reply-To: <411cf6c2$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.80.150.32 Message-ID: <4166e274$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097261684 66.80.150.32 (8 Oct 2004 11:54:44 -0700) Lines: 35 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail