MCPcopy Create free account
hub / github.com/bumptop/BumpTop / GetShortPathName

Method GetShortPathName

trunk/win/Source/BT_WindowsOS.cpp:5961–5972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5959}
5960
5961bool WindowsSystem::GetShortPathName( QString fullPathName, QString &shortPathName )
5962{
5963 TCHAR shortFilePath[MAX_PATH + 1];
5964 // GetShortPathName will return 0 if it fails
5965 int success = ::GetShortPathName((LPCWSTR) fullPathName.utf16(), (LPWSTR) &shortFilePath, MAX_PATH + 1);
5966 if (success)
5967 {
5968 shortPathName = QString::fromUtf16((const ushort *) shortFilePath);
5969 return true;
5970 }
5971 return false;
5972}
5973
5974// Returns the absolute path of the HTML source for the shared folder widget.
5975QString WindowsSystem::GetSharingWidgetPath()

Callers 2

setFilePathMethod · 0.80
invokeCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected