File properties
-
I want to view / edit the properties of a file programmatically. By properties, I mean the properties you see under right click / properties / summary tab (title, author, summary, etc). I've been searching MSDN but no luck so far. Any suggestions ?
-
I want to view / edit the properties of a file programmatically. By properties, I mean the properties you see under right click / properties / summary tab (title, author, summary, etc). I've been searching MSDN but no luck so far. Any suggestions ?
GetFileAttributes / SetFileAttributes GetFileSize GetFileType GetFileInformationByHandle (could be the best one to research?) Just trying to keep the forces of entropy at bay
-
GetFileAttributes / SetFileAttributes GetFileSize GetFileType GetFileInformationByHandle (could be the best one to research?) Just trying to keep the forces of entropy at bay
Thanks, not really what I'm looking for. It's amazing that I've been searching for hours now and couldn't find any info on this. I was hoping for a simple API function.
-
Thanks, not really what I'm looking for. It's amazing that I've been searching for hours now and couldn't find any info on this. I was hoping for a simple API function.
That stuff only normally appears if it's a compound file (OLE "document"). I think there's a sample on MSDN that deals with examining these. Try looking for properties and "structured storage" or some such. Steve S [This signature space available for rent]
-
I want to view / edit the properties of a file programmatically. By properties, I mean the properties you see under right click / properties / summary tab (title, author, summary, etc). I've been searching MSDN but no luck so far. Any suggestions ?
I don't think its as simple as you think, i've been meaning to go through this for a while and do somthing similar (get the Map NetworkDrive dialog), heres what i have found so far, you need to get a IContextMenu handle and then fill a CMININVOKECOMMANDINFO structure like bellow. You need to fill in the correct verb, in the code (snipped from seashell project - see shell extentions section in CP.) bellow it sets the verb by T2CA(MAKEINTRESOURCE(iCmd - IDM_SHELLCTXFIRST)); SHELLCTXFIRST = 2000, the iCmd is the cmd id returned by the context menu command. I'm presuming that the value of iCmd will not change per platform. If you can find the value of iCmd that is the verb "properties" then i think you could bring up that dialog. To Get IContextMenu you call IShellFolder::GetUIObjectOf.. see msdn. 00336 CMINVOKECOMMANDINFO cmi; 00337 cmi.cbSize = sizeof(cmi); 00338 cmi.fMask = 0; 00339 cmi.hwnd = m_hWnd; 00340 cmi.lpVerb = T2CA(MAKEINTRESOURCE(iCmd - IDM_SHELLCTXFIRST)); 00341 cmi.lpParameters = NULL; 00342 cmi.lpDirectory = NULL; 00343 cmi.nShow = SW_SHOWNORMAL; 00344 cmi.dwHotKey = 0; 00345 cmi.hIcon = NULL; 00346 m_lpcm->InvokeCommand(&cmi); Asim Hussain e: asim@jawache.net w: www.jawache.net