Reading/ Writing Shell Links i.e. .url and .lnk

I know that a person can use WshShell or wrap the IShellLink API, but I am wondering if there has been anything added to the new framework which has this included? That is, is there any part of the API which has this in managed code?

Thanks

[242 byte] By [BHAB] at [2008-2-4]
# 1
BHAB wrote:
I know that a person can use WshShell or wrap the IShellLink API, but I am wondering if there has been anything added to the new framework which has this included? That is, is there any part of the API which has this in managed code?

Thanks


BHAB,

Unfortunately, from what I have seen of the Beta 2 documentation, there is no managed representation to do this. You could use WshShell, but I think that using COM interop to call the IShellLink interface implementation is better. I think there are a number of examples on the web that show how to do this.

Hope this helps.

- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

casperOne at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified