Code: Select all
#include "madShell.h" _di_IShortCut shortCut = NewShortCut("D:\\Desktop\\test.exe"); shortCut->WorkingDir = "D:\\Desktop"; shortCut->ShowCmd = SW_SHOWMAXIMIZED; shortCut->Save("D:\\desktop\\test.lnk");
Thanks for the tip and sorry for not replying sooner...
Using the LMD shell notify component, I'm getting a PItemIDList for, say, the Drive Add event.
I use this code to get the _di_IIDList:
_di_IIDList list = IDList(aPIDL);
But I can't get any useful info from this. For example, if I try:
_di_IIDList b = list->GetPath();
String c = b->GetStrBuf();
to get some info about the Drive that's been added, variable c is null. The _di_IIDList returned by GetPath(); seems to be a valid object.
The docs on IIDList seem to indicate that GetPath and GetStrBuf should return what I'm after, but I can't make them work...
For example, if you were to ask properties about a folder named "Bla", then you would not get any useful results, unless you provide the full path (e.g. "C:\Program Files\Bla"), not just the relative path "Bla".