Ejemplo n.º 1
0
        private void Dispose(bool disposing)
        {
            if (!disposed)
            {
                disposed = true;

                if (disposing)
                {
                    if (shellLink != null)
                    {
                        Marshal.ReleaseComObject(shellLink);
                        shellLink = null;
                    }
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShellLink"/> class.
 /// </summary>
 public ShellLink()
 {
     shellLink = (NativeInterfaces.IShellLinkW) new ShellLinkCoClass();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShellLink"/> class.
 /// </summary>
 public ShellLink()
 {
     shellLink = (NativeInterfaces.IShellLinkW) new ShellLinkCoClass();
     disposed  = false;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShellLink"/> class.
 /// </summary>
 public ShellLink()
 {
     shellLink = new NativeInterfaces.NativeShellLink();
     disposed  = false;
 }