Beispiel #1
0
 //***************************************************************************
 // Class Constructors
 //
 /// <summary>
 /// Provides a managed class to access Windows' Shell32.dll,SHFileOperation unmanaged code.
 /// </summary>
 public InteropShellFileOperation()
 {
     this.fFlags        = new FILEOP_FLAGS();
     this._ShFile       = new SHFILEOPSSTRUCT();
     this._ShFile.hwnd  = IntPtr.Zero;
     this._ShFile.wFunc = FO_Func.FO_COPY;
     this._ShFile.pFrom = "";
     this._ShFile.pTo   = "";
     this._ShFile.fAnyOperationsAborted = false;
     this._ShFile.hNameMappings         = IntPtr.Zero;
     this._ShFile.lpszProgressTitle     = "";
 }
Beispiel #2
0
 //***************************************************************************
 // Class Constructors
 // 
 /// <summary>
 /// Provides a managed class to access Windows' Shell32.dll,SHFileOperation unmanaged code.
 /// </summary>
 public InteropShellFileOperation()
 {
     this.fFlags = new FILEOP_FLAGS();
     this._ShFile = new SHFILEOPSSTRUCT();
     this._ShFile.hwnd = IntPtr.Zero;
     this._ShFile.wFunc = FO_Func.FO_COPY;
     this._ShFile.pFrom = "";
     this._ShFile.pTo = "";
     this._ShFile.fAnyOperationsAborted = false;
     this._ShFile.hNameMappings = IntPtr.Zero;
     this._ShFile.lpszProgressTitle = "";
 }
Beispiel #3
0
 static extern int SHFileOperation([In] ref SHFILEOPSSTRUCT lpFileOp);