Private Enum CopyProgressCallbackReason As UInteger CALLBACK_CHUNK_FINISHED = &H0 CALLBACK_STREAM_SWITCH = &H1 End Enum
Private Enum CopyProgressResult As UInteger PROGRESS_CONTINUE = 0 PROGRESS_CANCEL = 1 PROGRESS_STOP = 2 PROGRESS_QUIET = 3 End Enum
Private Delegate Function CopyProgressRoutine(ByVal TotalFileSize As Long, _ ByVal TotalBytesTransferred As Long, _ ByVal StreamSize As Long, _ ByVal StreamBytesTransferred As Long, _ ByVal dwStreamNumber As System.UInt32, _ ByVal dwCallbackReason As CopyProgressCallbackReason, _ ByVal hSourceFile As IntPtr, _ ByVal hDestinationFile As IntPtr, _ ByVal lpData As IntPtr) _ As CopyProgressResult
<DllImport("kernel32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _ Private Shared Function MoveFileWithProgress( _ ByVal lpExistingFileName As String, _ ByVal lpNewFileName As String, _ ByVal lpProgressRoutine As CopyProgressRoutine, _ ByVal lpData As IntPtr, _ ByVal dwFlags As MoveFileFlags) As Boolean End Function
分類:[.NET]
DVDにデータを移動する進捗を出したいのでMoveFileWithProgressというWIN32API
を使おうと思ったのですが、WIN32API自体も使ったことがない為よくわかりません。
WEB上での情報集めも限界を感じたのでどなたか少しでも良いので情報をもらえないでしょうか