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 6671409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:23:06+00:00 2026-05-26T03:23:06+00:00

I’ve been searching for the last 12 hours or so and don’t think I’m

  • 0

I’ve been searching for the last 12 hours or so and don’t think I’m even on the right track at this point or if I’m wording my searches properly. I’m hoping someone can point me in the right direction here.

I’m attempting to access a function in an unmanaged library that takes as one of it’s parameters a fixed size DWORD array and I’m not sure how to specify this in the declaration or call. I’m also not sure if the documentation for the function is correct (or if I understand it).

int EloGetScreenInfo(DWORD dwMonNum[32], int iScrCnt)

Parameters:
dwMonNum [in]: Array of DWORD to receive the Windows monitor number associated with the touchscreens.

iScrCnt [out]: It retrieves the total number of Elo touchscreens found.

Return Values: Returns EloSuccess if the call succeeds, it returns an error code otherwise. See Error Codes section for list of error values.

Remarks:

It returns the list of Windows monitor numbers associated with the touchscreens where, the index is the touchscreen number and the value is the Windows monitor number.

Touchscreens are 0 based and Windows monitor numbers are 1 based.

If a touchscreen is not calibrated, the windows monitor is returned as -1.

Maximum of 32 touchscreens are supported.

Notice in the description it states that it returns a list of monitor numbers which would suggest that it would be the populated value, yet in the parameter descriptions it shows that as an [in] and the count parameter as an [out] unless i’m misinterpreting the descriptions.
In a See Also Sample link it shows an example of usage in which both seem to be populated

    DWORD dwEnumMon[MAX_SUPPORTED_SCR] ;
    int iScrCnt, iRet ;

    ZeroMemory( dwEnumMon, MAX_SUPPORTED_SCR ) ;
    ZeroMemory( dwMonParam, MAX_SUPPORTED_SCR ) ;

    // Get the list of all Elo Serial & USB screen and monitor association
    iRet = EloGetScreenInfo(dwEnumMon,iScrCnt) ;
    if(iRet != EloSuccess ){
        printf( "Error Code = %d \n", iRet ) ;
        return EloFailure;
    }
    else
    if(iScrCnt<0){
        printf( "No Elo touchscreens found\n" ) ;
        return EloFailure;
    }

    // Process Commandline
    ProcessCmdLine( argc, argv ) ;

    // For all screens of matching monitor number enable / disable touch
    for( int i=0; i<dwMonParamCnt; i++ ){
        // where j is the screen number associated with the monitor number
        for( int j=0; j<iScrCnt; j++ ){
            if( dwMonParam[i] == dwEnumMon[j] ){
                // Enables / Disables touch depending on the bFlag
                // where j is the screen number
                if( (iRet = EloSetTouchReportingState( bEnable , j )) == EloSuccess )
                    printf( "EloSetTouchReportingState Returned success\n" );
                else
                    printf( "EloSetTouchReportingState Returned failed. Error \ Code=%d\n", iRet );
               }
           }
      }

      return EloSuccess;

TIA for any direction or help you can provide

  • 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-26T03:23:06+00:00Added an answer on May 26, 2026 at 3:23 am

    You should be able to call this with a normal array of UInt32. Your managed prototype would be:

    [DLLImport "DllName"]
    static extern int EloGetScreenInfo(UInt32[] dwMonNum, out int iScrCnt);
    

    And to call it, just specify the marshaling:

    UInt32[] MonitorNumbers = new UInt32[32];
    int iScrCnt = 0;
    
    int rslt = EloGetScreenInfo(
        [MarshalAs(UnmanagedType.LPArray, SizeConst=32)] MonitorNumbers,
        out iScrCnt);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have this code to decode numeric html entities to the UTF8 equivalent character.
This could be a duplicate question, but I have no idea what search terms
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I know there's a lot of other questions out there that deal with this

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.