OSDGetNextPathName

This function allows getting the full path to the next file in the list.

OSDRET OSDGetNextPathName(HANDLE hDialog, OSD_POSITION* pos, char* buf, int* size);

Parameters

  • hDialog - Dialog window descriptor.
  • pos - Points at the file descriptor received when calling OSDGetStartPosition() (OSD_POSITION type is equivalent to standard POSITION type).
  • buf - Points at the text buffer used to save file path to.
  • size - When the function is called, it specifies text buffer size. When the function quits its work, it specifies length of the saved path. If 0 is returned, end of file list is encountered.
  • Returned value - Returns operation result of OSDRET type.

Notes

OSDGetNextFileHBITMAP() and OSDGetNextPathNameAndFileHBITMAP() functions are also used to work with the file list.

Sample

OSDGetNextPathName(hDialog,&position,szFileBuff,&nSize);