MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / GetFilePath

Method GetFilePath

src/Setup/wtl90/atldlgs.h:951–963  ·  view source on GitHub ↗

Operations - get file path after dialog returns

Source from the content-addressed store, hash-verified

949
950// Operations - get file path after dialog returns
951 HRESULT GetFilePath(LPWSTR lpstrFilePath, int cchLength)
952 {
953 T* pT = static_cast<T*>(this);
954 ATLASSERT(pT->m_spFileDlg != NULL);
955
956 ATL::CComPtr<IShellItem> spItem;
957 HRESULT hRet = pT->m_spFileDlg->GetResult(&spItem);
958
959 if(SUCCEEDED(hRet))
960 hRet = GetFileNameFromShellItem(spItem, SIGDN_FILESYSPATH, lpstrFilePath, cchLength);
961
962 return hRet;
963 }
964
965 HRESULT GetFileTitle(LPWSTR lpstrFileTitle, int cchLength)
966 {

Callers

nothing calls this directly

Calls 1

GetResultMethod · 0.80

Tested by

no test coverage detected