// sffdisk.h
typedef struct _SFFDISK_DEVICE_PASSWORD_DATA {
USHORT Size;
USHORT Reserved;
SFFDISK_DPCMD Command;
ULONG_PTR Information;
UCHAR PasswordLength;
UCHAR NewPasswordLength;
UCHAR Data[0];
} SFFDISK_DEVICE_PASSWORD_DATA, *PSFFDISK_DEVICE_PASSWORD_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
The SFFDISK_DEVICE_PASSWORD_DATA structure is used in conjunction with an IOCTL_SFFDISK_DEVICE_PASSWORD to change the password on a Secure Digital (SD) card.
SizeThe size, in bytes, of this structure.
ReservedReserved.
CommandContains a structure of type SFFDISK_DPCMD that defines the type of operation.
InformationOn output, this member contains the return value for the operation.
PasswordLengthThe length, in bytes, of the current password.
NewPasswordLengthThe length, in bytes, of the new password.
Data[0]Buffer that the caller uses to pass in both the old and the new password. The current (old) password is at the beginning of the buffer and is immediately followed by the new password.