This commit is contained in:
mgkim 2026-03-26 20:09:23 +09:00
parent f17518f3fd
commit 715bc361da
432 changed files with 187682 additions and 200077 deletions

View File

@ -426,6 +426,9 @@ begin
exit;
end;
if sSrcPath = '' then
exit;
if IntBlockNewFile.mode = abkNone then
exit
else if IntBlockNewFile.mode = abkBlock then

View File

@ -3,7 +3,7 @@
interface
const
BUILD_DT = '2026-03-26 17:32:45';
BUILD_DT = '2026-03-26 19:57:43';
implementation

View File

@ -2819,7 +2819,8 @@ begin
exit;
end;
//sBlkSerial := EjectDrive2(sDrive, ModePolicy.IgrUsbSerialList, true, true);
//mgkim 커널드라이브 차단만 사용하려니,, 알람부터 결제까지 수정할게 많네..
sBlkSerial := EjectDrive2(sDrive, ModePolicy.IgrUsbSerialList, true, true);
if bNoLogPop then
exit;
@ -5517,7 +5518,7 @@ begin
begin
_Trace('[MGKIM] Usb ReadOnly!!!! .. (%s) <> (%s)',[sExceptUsbDevKn_, PO.IgrUsbSerialsKn]);
//_Trace('[MGKIM] Usb ReadOnly!!!! .. (%s) <> (%s)',[sExceptUsbDevKn_, PO.IgrUsbSerialsKn]);
if sExceptUsbDevKn_ <> PO.IgrUsbSerialsKn then
begin
sExceptUsbDevKn_ := PO.IgrUsbSerialsKn;
@ -5527,7 +5528,6 @@ begin
if not (FltCtrlPolicy_ = DWORD(dsReadOnly)) then
begin
FltCtrl_.SetPolicy(DWORD(BDC_USB_DISK), DWORD(dsReadOnly), 1);
FltCtrl_.SetPolicy(DWORD(BDC_EXTERNALHDD), DWORD(dsReadOnly), 1);
FltCtrlPolicy_ := DWORD(dsReadOnly);
@ -7577,7 +7577,7 @@ begin
DeviceGuard_.AddUsbPortExcept(InfoList[0], InfoList[1],InfoList[2]);
//DeviceGuard_.AddUsbPortExcept(InfoList[0], InfoList[1],InfoList[2]);
if (vid <> 0) and (pid <> 0) then
begin
// _Trace('[MGKIM] UpdateIgrUsbSerial4FltCtr.. Port PID: %x, VID: %x, Serial: %s',[vid, pid,InfoList[2]]);
@ -7726,31 +7726,31 @@ begin
DRIVE_FIXED,
DRIVE_REMOVABLE :
begin
// if nType = DRIVE_REMOVABLE then // Fixed 도 적용 되도록 롤백 (4005) 25_0917 17:39:41 kku
begin
if ModePolicy.UsbBlockKind = ubkReadOnly then
begin
if ThdUsbMonRO_ = nil then
begin
if IsReadOnlyByWriteProbe(sDrive) <> 1 then
begin
GetDriveDetail(sDrive, @DriveInfo);
SetReadOnly(sDrive, DriveInfo.nDiskNum, false);
end;
end else
ThdUsbMonRO_.AddDrive(sDrive);
end else
if ModePolicy.UsbBlockKind <> ubkBlock then
begin
if IsReadOnlyByWriteProbe(sDrive) = 1 then
begin
_Trace('읽기전용 속성 감지됨 .. Drive=%s', [sDrive], 2);
GetDriveDetail(sDrive, @DriveInfo);
SetReadOnly(sDrive, DriveInfo.nDiskNum, false);
_Trace('읽기전용 속성 해제 .. Drive=%s', [sDrive], 2);
end;
end;
end;
// if nType = DRIVE_REMOVABLE then // Fixed 도 적용 되도록 롤백 (4005) 25_0917 17:39:41 kku , MGKIM
// begin
// if ModePolicy.UsbBlockKind = ubkReadOnly then
// begin
// if ThdUsbMonRO_ = nil then
// begin
// if IsReadOnlyByWriteProbe(sDrive) <> 1 then
// begin
// GetDriveDetail(sDrive, @DriveInfo);
// SetReadOnly(sDrive, DriveInfo.nDiskNum, false);
// end;
// end else
// ThdUsbMonRO_.AddDrive(sDrive);
// end else
// if ModePolicy.UsbBlockKind <> ubkBlock then
// begin
// if IsReadOnlyByWriteProbe(sDrive) = 1 then
// begin
// _Trace('읽기전용 속성 감지됨 .. Drive=%s', [sDrive], 2);
// GetDriveDetail(sDrive, @DriveInfo);
// SetReadOnly(sDrive, DriveInfo.nDiskNum, false);
// _Trace('읽기전용 속성 해제 .. Drive=%s', [sDrive], 2);
// end;
// end;
// end;
try
if UsbConnList_.IndexOf(sDrive) = -1 then

Some files were not shown because too many files have changed in this diff Show More