SecureBlackbox 2020 C++ Edition

Questions / Feedback?

FindNext Event

This event retrieves the next entry of a custom file listing.

Syntax

ANSI (Cross Platform)
virtual int FireFindNext(SFTPServerFindNextEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Handle;
int OperationStatus; int reserved; } SFTPServerFindNextEventParams; Unicode (Windows) virtual INT FireFindNext(SFTPServerFindNextEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Handle;
INT OperationStatus; INT reserved; } SFTPServerFindNextEventParams;
- (void)onFindNext:(long long)connectionID :(NSString*)handle :(int*)operationStatus;
#define EID_SFTPSERVER_FINDNEXT 28

virtual INT SECUREBLACKBOX_CALL FireFindNext(LONG64 &lConnectionID, LPSTR &lpszHandle, INT &iOperationStatus);

Remarks

This event is fired repeatedly after FindFirst to retrieve the directory contents entry-by-entry. Please see the FindFirst topic for more details about implementing a handler of this event.

Remember to set OperationStatus to ostEOF when there are no more entries left to close the listing operation. If there are more entries to pass, set it to ostOK. Other possible values are given in the table below:

ostOk1
ostNoSuchFile2
ostAccessDenied3
ostWriteProtect4
ostUnsupported5
ostInvalidParameter6
ostEOF7

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]