OSDGetPathName

This function allows getting the full path to the file selected by the user in OSDialog.

OSDRET OSDGetPathName(HANDLE hDialog, char* buf, int* size);

Parameters

  • hDialog - Dialog window descriptor.
  • 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.
  • Returned value - Returns operation result of OSDRET type.

Notes

If the dialog allowed selection of several files, their paths are available through OSDGetStartPosition() andOSDGetNextPathName() functions.

Sample

OSDGetPathName(hDialog, szFileBuff,&nSize);