SFFDISK_DEVICE_PASSWORD_DATA structure (sffdisk.h)
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.
Syntax
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;
Members
Size
The size, in bytes, of this structure.
Reserved
Reserved.
Command
Contains a structure of type SFFDISK_DPCMD that defines the type of operation.
Information
On output, this member contains the return value for the operation.
PasswordLength
The length, in bytes, of the current password.
NewPasswordLength
The 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.
Requirements
Requirement | Value |
---|---|
Header | sffdisk.h |