php - How can I convert an absolute system path to an IShellFolder? -


i preface saying have absolutely 0 experience using coms, let alone using them through php's com extension.

as part of larger project, need ishellfolder represents given absolute system path. i've done lot of googling , of solutions ran involved utilizing shgetdesktopfolder, combination of syntax differences (since examples i've seen in .net language or other) , fact desktop not ancestor of path looking confusing me.

in case relevant answer, end goal use ishellfolder retrieve iextractimage given file within ishellfolder , display image on server script running on.

i don't know if there special facilities in php, in c or c++ raymond chen recommends using shparsedisplayname convert absolute path pidl, , shbindtoparent gives both ishellfolder pointer , pcuitemid_child of file within folder.

(his example function getuiobjectoffile goes mile , binds object itself, though may not want)

however, since makes deal pidl in addition rest, may worse shgetdesktopfolder method.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -