Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello all!

I need to protect SD cards by password on Windows. I’ve tried to use SFF ioctl “IOCTL_SFFDISK_DEVICE_PASSWORD”, but in the best case I’ve got system error 87 (invalid argument) from “DeviceIoControl”.

Has somebody any working code where is is used DeviceIoControl with the control code IOCTL_SFFDISK_DEVICE_COMMAND ?

Even part of working sample with only DeviceIoControl call and its parameters is welcome. I can’t find invalid parameter in my code.

Thank you all!
Posted
Comments
Sergey Alexandrovich Kryukov 21-Mar-12 17:56pm    
Why not using with data encryption instead of protecting the access to the whole device?
--SA
nv3 21-Mar-12 18:19pm    
... or put a TrueCrypt archive on it. It presents itself as a normal file system, just with encryption and password access.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900