PDA

View Full Version : كنترل Port USB



sabair
جمعه 19 مهر 1387, 17:13 عصر
دوستان سلام
چگونه مي توانيم پورت USBرا كنترل كنيم
به عنوان مثال
من مي خواهم با يك كليك پورت تمام USB من قفل شود در VB6
با تشكر

اگر سورسي در اين زمينه داريد لطفا آپلود نمايد
با تشكر

mpmsoft
جمعه 19 مهر 1387, 17:46 عصر
Open the Windows Registry and open the following key
HKEY_LOCAL_MACHINE\System\CurrentControlSet\ Control\StorageDevicePolicies

Now add a new DWORD called WriteProtect and put the value as 0 to disable write privileges to the USB port. To reverse the step, either delete the WriteProtect REG_DWORD or toggle the value to 1 which will enable the port.

Remember that the above trick works only with Windows XP SP2

mpmsoft
جمعه 19 مهر 1387, 17:51 عصر
اگر قبلي جواب نداد از اين استفاده كن


On the registry:
Click HKEY_LOCAL_MACHINE > SYSTEM > CurrentContolSet > Services > USBSTOR

Choose the Start Modify the value data 3 to 4 Hexadecimal

3= Enable
4= Disable

sabair
جمعه 26 مهر 1387, 09:03 صبح
دوست عزيز كار نكرد لطفا سورس آن را براي من آپلود نمايد
با تشكر

javid_debugger
دوشنبه 27 آبان 1387, 16:51 عصر
اقای MPMSOFT کار نمیکنه میشه سورس برنامه رو اپلود کنی چون من خیلی گیرم هرجا گشتم پیدا نکردم