Querying whether a path is a folder or directory is quite simple in C ++ BOOL IsThePathFolderLPCTSTR pfad { ifpfadreturn FALSE; DWORD dwAttr = GetFileAttributespfad; With your own trim string in cpp, simply shorten the strings individually ////////////////////////////////////////////////// ////////////////////// // // The solution is very simple to fix the error code: "was ended with code -1073741701 0xc000007b error message" Mostly there are errors in the * .manifest Here is the solution to make an RGB pixel a negative RGB PIXEL BYTE R = 255-R; BYTE G = 255-G; BYTE B = 255-B; Or with gray scaling: BYTE gray_value The solution is very simple to find out in ListView Get Item Image and List View GetI Subtem Image ////////////////////////////////////////////////// ////////////////////// The solution is very easy to start with the ShellExecuteEx function, search for File in in LPCITEMIDLIST BOOL SearchCmdLPCITEMIDLIST LPCITEMIDLIST item, |