Desktop Functions: Smart Device Functions:
|
Search Results for "SHFILEOPSTRUCT" in [All]Structures
struct SHFILEOPSTRUCT
Public Structure SHFILEOPSTRUCT
Public Type SHFILEOPSTRUCT Under x64, the SHFILEOPSTRUCT must be declared without the Pack = 1 parameter, or it will fail. This is a real pain if you want your code to be platform independent, as you have to declare two separate structures, one with Pack = 1, and one without. You then have to declare two different SHFileOperation calls, one for each of the structures. Then you have to decide which one to call depending on whether you are running on 32 or 64 bit. Don't declare a value for the Pack size. If you omit it, the correct value is used when marshaling and a single SHFILEOPSTRUCT can be used for both 32-bit and 64-bit operation. Constants2: ShellAPI
public const int FOF_WANTMAPPINGHANDLE = 0x0020; // Fill in SHFILEOPSTRUCT.hNameMappings 3: ShellAPI
public const int FOF_WANTMAPPINGHANDLE = 0x0020; // Fill in SHFILEOPSTRUCT.hNameMappings Enums5: FILEOP_FLAGS
shell32
static extern int SHFileOperation([In] ref SHFILEOPSTRUCT lpFileOp);
Public Function SHFileOperation(<MarshalAs(UnmanagedType.Struct)>ByRef lpFileOp As SHFILEOPSTRUCT) As Integer
(lpFileOp As SHFILEOPSTRUCT) As Long
struct SHFILEOPSTRUCT
static extern int SHFileOperation([In, Out] ref SHFILEOPSTRUCT lpFileOp);
private SHFILEOPSTRUCT _ShFile;
this._ShFile = new SHFILEOPSTRUCT();
FOF_WANTMAPPINGHANDLE = 0x0020, // Fill in SHFILEOPSTRUCT.hNameMappings |