OSDGetFileExt

This function allows getting the extension of the user-specified file.

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

Parameters

  • hDialog - Dialog window descriptor.
  • buf - Points to the text buffer to save file name.
  • size - Specifies text buffer size when the function is called and saved name length when the function work is through.
  • Returned value - Returns operation result of OSDRET type.

Notes

OSDGetFileName() and OSDGetFileTitle() are also used to work with file names.

Sample

OSDGetFileExt(hDialog, szFileBuff,&nSize);