V
Vivek
Hello everyone,
I am doing shell programming in c# for an application.
I am able to enumerate the IShellFolder object with IEnumIdList. But when I
try to use Next method on it, it does not return anything. I use the
definition for ComImport as follows for this method :
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("000214F2-0000-0000-C000-000000000046")]
[PreserveSig]
Int32 Next( UInt32 celt,
out IntPtr rgelt,
out UInt32 pceltFetched
);
Then, I call this method as:
ppenumlist.Next(2, out pidlItems, out celtFetched);
Can somebody tell, where am I wrong ? It will really be a great help !
Thanks in advance
I am doing shell programming in c# for an application.
I am able to enumerate the IShellFolder object with IEnumIdList. But when I
try to use Next method on it, it does not return anything. I use the
definition for ComImport as follows for this method :
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("000214F2-0000-0000-C000-000000000046")]
[PreserveSig]
Int32 Next( UInt32 celt,
out IntPtr rgelt,
out UInt32 pceltFetched
);
Then, I call this method as:
ppenumlist.Next(2, out pidlItems, out celtFetched);
Can somebody tell, where am I wrong ? It will really be a great help !
Thanks in advance