Advantage Client Engine
Close a find handle and free all resources associated with it
UNSIGNED32 ENTRYPOINT AdsFindClose( ADSHANDLE hConnect, SIGNED32 lHandle );
hConnect (I) |
Handle of connection. |
lHandle (I) |
Find handle to close. |
usLen = ADS_MAX_TABLE_NAME;
strcpy( (char*)aucTableMask, "x:\\data\\*.adt" );
ulRetVal = AdsFindFirstTable( hConn, aucTableMask, aucTable,
&usLen, &hFindHandle );
if ( (ulRetVal != AE_NO_FILE_FOUND) && (ulRetVal != AE_SUCCESS) )
return ulRetVal;
while ( ulRetVal != AE_NO_FILE_FOUND )
{
// Do your work with the tablename, which is now in the aucTable buffer.
// now get the next table
usLen = ADS_MAX_TABLE_NAME;
ulRetVal = AdsFindNextTable( hConn, hFindHandle,
aucTable, &usLen );
if ( (ulRetVal != AE_NO_FILE_FOUND) && (ulRetVal != AE_SUCCESS) )
return ulRetVal;
}
AdsFindClose( hConn, hFindHandle );