I use this all the time. Which subfunction are you trying to call?
Here's a snippet of my code calling subfunction 1. The BTRV call is
hidden behind CallBtrv, and the parameters are hidden in the BUFF
structure, but you should get the general idea...
/* Try to make the Extended Stat Call for More Info */
strncpy((char *)StatExtd1Buffer.Call.Signature,"ExSt",4);
StatExtd1Buffer.Call.SubFunction=1;
StatExtd1Buffer.Call.Namespace=0;
StatExtd1Buffer.Call.MaxFiles=100;
StatExtd1Buffer.Call.FirstFileSequence=0;
Buff[fn].buflen=sizeof(StatExtd1Buffer);
Buff[fn].databuf=(BYTE *)&StatExtd1Buffer;
Buff[fn].keynum=0;
Buff[fn].operation=BTRV_STAT_EXTENDED;
Status=CallBtrv(&Buff[fn]);
if(Status==0)
...
The inbound structure is:
typedef struct
{
BTI_BYTE Signature[4];
BTI_LONG SubFunction;
BTI_LONG Namespace;
BTI_LONG MaxFiles;
BTI_LONG FirstFileSequence;
BTI_BYTE BufferSpace[4096];
} STATEXTD1CALLREC;
And the outbound structure is:
typedef struct
{
BTI_LONG NumberOfFiles;
BTI_LONG NumberOfExtensions;
BTI_BYTE BufferSpace[4096];
} STATEXTD1RETREC;
If this doesn't help, post YOUR code & we'll see what's wrong with it.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: September 16-18: See our web site for details!
Alexander Materukhin wrote:
Quote:
Have anybody experience with Btrieve function B_EXTENDED_STAT.
There are no one example in Pervasive SDK 
When I try to call B_EXTENDED_STAT, I constantly gave status 62 
Where I can get sample application or valid help?
Alexander,
Thank you! |