Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6543397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:20:32+00:00 2026-05-25T11:20:32+00:00

In the registry there is one ( or more ) key depending how many

  • 0

In the registry there is one ( or more ) key depending how many monitors you have HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL404C\{Some Unique ID}\Device Parameters\EDID which is a REG_BINARY key. In my case this is :

00 FF FF FF FF FF FF 00 10 AC 4C 40 53 43 34 42 34 14 01 03 0A 2F 1E 78 EE EE 95 A3 54
4C 99 26 0F 50 54 A5 4B 00 71 4F 81 80 B3 00 01 01 01 01 01 01 01 01 01 01 21 39 90 30 
62 1A 27 40 68 B0 36 00 DA 28 11 00 00 1C 00 00 00 FF 00 34 57 31 4D 44 30 43 53 42 34 
43 53 0A 00 00 00 FC 00 44 45 4C 4C 20 50 32 32 31 30 0A 20 20 00 00 00 FD 00 38 4B 1E 
53 10 00 0A 20 20 20 20 20 20 00 FA

This reg_binary value contains information (such as Serial Number and Type) about the connected monitor. I only need these two values. My question is how can i read these values using C or C++?

I have a VB script which can do this:
‘you can tell If the location contains a serial number If it starts with &H00 00 00 ff
strSerFind=Chr(&H00) & Chr(&H00) & Chr(&H00) & Chr(&HfF)

‘or a model description If it starts with &H00 00 00 fc

strMdlFind=Chr(&H00) & Chr(&H00) & Chr(&H00) & Chr(&Hfc)

This link also contains information about EDID: http://en.wikipedia.org/wiki/Extended_display_identification_data

Could someone help me, how can i do this in C? I can find only VB script examples, but unfortunately i don’t understand them, and also it would be very important for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:20:32+00:00Added an answer on May 25, 2026 at 11:20 am
       DWORD GetLocalMachineProfileBuffer(BYTE* pBuffer, DWORD nMaxLength )
        {
            CString szSubKey = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\DISPLAY\DEL404C{Some Unique ID}\Device Parameters\EDID";
    
            DWORD   rc; 
            DWORD   dwType; 
            HKEY    hOpenedKey;
    
            if( ERROR_SUCCESS == RegOpenKeyEx (
                    HKEY_LOCAL_MACHINE, // handle of open key 
                    szSubKey,               // address of name of subkey to open 
                    0,                  // reserved 
                    KEY_READ,       // security access mask 
                    &hOpenedKey            // address of handle of open key 
                    ) )
            {
                rc = RegQueryValueEx( 
                    hOpenedKey, 
                    (const char*)szValueName, 
                    0, 
                    &dwType, 
                    (LPBYTE)pBuffer, 
                    &nMaxLength ); 
                if( rc != ERROR_SUCCESS ) 
                { 
                    return (DWORD)-1;
                } 
                else 
                { 
                    ASSERT( dwType == REG_BINARY ); 
                } 
    
                RegCloseKey( hOpenedKey );
                return nMaxLength; 
            }
            else
            {
                return (DWORD)-1;
            }   
        }
    

    call it like this:

    BYTE Buffer[20000];
    DWORD nLength = GetLocalMachineProfileBuffer( Buffer, sizeof( Buffer ) );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any difference in behavior of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry key, when an user Logs
I know there is a registry key indicating the install directory, but I don't
Is there some way to create a custom (WoW64) shared registry key? By default
Is there a simple way to add one or more content files path's to
There was a registry fix for Visual Studio 2005 to prevent it from checking
Is there any equivalent to the Registry class from StructureMap in Unity? I like
Is there a way to get the built-in Everyone registry security object in a
I have these registrations in a registry and am trying to figure out the
I have an online registry of professionals with about 300 members. These are smart
Where is a reliable registry key to find install location of Excel 2007?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.