If(! connect(&writeThread,&WriteThread::error, this, &TransferThreadAsync::write_error, Qt::QueuedConnection)) If(! connect(&readThread,&ReadThread::error, this, &TransferThreadAsync::read_error, Qt::QueuedConnection)) If(! connect( this,&TransferThread::internalTryStartTheTransfer, this, &TransferThreadAsync::internalStartTheTransfer, Qt::QueuedConnection)) If(! connect( this,&TransferThread::internalStartPostOperation, this, &TransferThreadAsync::postOperation, Qt::QueuedConnection)) If(! connect( this,&TransferThread::internalStartPreOperation, this, &TransferThreadAsync::preOperation, Qt::QueuedConnection)) If(! connect( this,&TransferThreadAsync::internalStartPostOperation, this, &TransferThreadAsync::doFilePostOperation, Qt::QueuedConnection)) ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice," start: ")+QString::number((qint64)QThread::currentThreadId()))) TransferThreadAsync::TransferThreadAsync() : If (!::AdjustTokenPrivileges(hToken, FALSE, &tp, sizeof(TOKEN_PRIVILEGES), NULL, NULL)) throw ::GetLastError() Tp.Privileges.Attributes = SE_PRIVILEGE_ENABLED If (!::LookupPrivilegeValue(NULL, SE_RESTORE_NAME, &tp.Privileges.Luid)) throw ::GetLastError() If (!::OpenProcessToken(::GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken)) throw ::GetLastError() } REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER # define REPARSE_MOUNTPOINT_HEADER_SIZE 8 then do overwrite node function to not re-set the file name presume bug linked as multple paralelle inode to resume after "overwrite"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |