View Single Post
  #1 (permalink)  
Old 05-28-2006, 09:42 AM
roger roger is offline
Newbie
 
Join Date: May 2006
Posts: 16
Credits: 0
Rep Power: 10
roger is on a distinguished road
Arrow ListAll not working?

Has anyone successfully used the ListAll() function under Linux?

No matter what I do it always returns -1 and fails to fill in the parameters. Immediately before it I'm doing a GetFirmwareVersion() which gives the right result.

Here's the code:

long productIDList[127];
long serialnumList[127];
long localIDList[127];
long powerList[127];
long calMatrix[127][20];
long numberFound;
long res1, res2;

memset(productIDList, 0, 127*sizeof(long));
memset(serialnumList, 0, 127*sizeof(long));
memset(localIDList, 0, 127*sizeof(long));
memset(powerList, 0, 127*sizeof(long));
memset(calMatrix, 0, 127*20*sizeof(long));
numberFound = 0;
res1 = 0;
res2 = 0;

long res = ListAll(productIDList, serialnumList, localIDList, powerList, calMatrix, &numberFound, &res1, &res2);
Reply With Quote

Sponsored Links