How to program IShellFolder::GetUIObjectOf |
Anjali A posted on Wednesday, December 30, 2009 2:20 AM
|
I am getting System>AccessViolationException while debugging the below code. Can anyone please help me...
ShellLib.IShellFolder pShellFolder;
pShellFolder = ShellLib.ShellFunctions.GetDesktopFolder();
string sPath = "C:\\Documents and settings\\giji\\Desktop\\gg.doc";
uint var = (uint)sPath.Length;
IntPtr pidlchild;
uint pdw=0;
pShellFolder.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, sPath, ref var, out pidlchild,ref pdw);
Guid riid = new Guid("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1");
IntPtr ppv;
uint len = 1;
uint reser = 0;
IntPtr[] arry = { pidlchild };
pShellFolder.GetUIObjectOf(IntPtr.Zero, len,arry, riid, ref reser, out ppv); |
 |
|
|
|
|
|
|
Didn't Find The Answer You Were Looking For? |
| View Platform SDK Shell Posts Ask A New Question |
|
| EggHeadCafe has experts online right now that may know the answer to your question. We pay them a bonus for answering as many questions as they can. So, why not help them and yourself by becoming a member (free) and ask them your question right now? |
| Create Account & Ask Question In Live Forum |
|
| Previous Platform SDK Shell conversation. |