sponsored links
Description

"Reading and writing files to shortcut the managed code."
indir.biz Editor: This example of how to read and to write managed code shows the shortcut file. It contains definitions and COM interfaces coclasses necessary. In addition, more. NET friendly wrapper class, a ShellShortcut, takes care of most of the so-called dirty work is included. ShellShortcut class, the use of a simple shortcut to display the form editor is included. To use the shortcuts in your own code, only the files included in your project ShellLinkNative.cs and ShellShortcut.cs.
Details
Shortcuts are created and COM API, is the most important part ShellLink coclass can be changed using. It (the two versions IShellLinkA as ANSI and Unicode IShellLinkW) is being used to commit himself and opening the shortcut, and shortcut to save the file there IPersistFile interface implements IShellLink interface. (Also, Do not Care about us and other interfaces) a number of additional data to store shortcuts IShellLinkDataList interface implements.
This managed code associated with the coclass and interfaces are two ways to access. First, a type library, then led him to declare them to create an assembly TlbImp tool use. The second way, in this example, the code used to declare all this ourselves. In this way, the advantages of doing, care about is to get a better erection. COM interop and marshaling but it also needs to understand the details. Mean
features and interfaces coclass is marked with ComImport and Guid. Also required attribute InterfaceType interface. Then some methods and method parameters need to provide the correct marshaling is connected. . NET interop documentation explains this quite well. Now you can download free ShellLink 1.0.

sponsored links

COMMENTS

Sign in or register to leave a comment.

Visitor rates

4 Star  
  41

Member rates

4 Star  
  39

Ortalama oy:

3,8

1  2  3  4  5
4.545