struttura STORAGE_OFFLOAD_TOKEN (ntddstor.h)

La struttura STORAGE_OFFLOAD_TOKEN contiene un valore del token che funge da rappresentazione di un intervallo di set di dati all'interno di un file in un volume. Questa struttura viene utilizzata per eseguire operazioni di lettura e scrittura offload.

Sintassi

typedef struct _STORAGE_OFFLOAD_TOKEN {
  UCHAR TokenType[4];
  UCHAR Reserved[2];
  UCHAR TokenIdLength[2];
  union {
    struct {
      UCHAR Reserved2[STORAGE_OFFLOAD_TOKEN_ID_LENGTH];
    } StorageOffloadZeroDataToken;
    UCHAR Token[STORAGE_OFFLOAD_TOKEN_ID_LENGTH];
  } DUMMYUNIONNAME;
} STORAGE_OFFLOAD_TOKEN, *PSTORAGE_OFFLOAD_TOKEN;

Members

TokenType[4]

Tipo di token contenuto in questa struttura. TokenType è impostato su uno dei valori seguenti:

Valore Significato
STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA
Un formato di token noto è contenuto in Token. Il token rappresenta i dati considerati come tutti zeri.
Qualsiasi altro valore
Un formato di token specifico del fornitore è contenuto in Token.

Reserved[2]

Riservato.

TokenIdLength[2]

Lunghezza dei dati del token in Token.

DUMMYUNIONNAME

DUMMYUNIONNAME.StorageOffloadZeroDataToken

Valore del token quando i dati che rappresenta sono considerati come tutti zeri. Questo membro è valido quando TokenType è impostato su STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA.

DUMMYUNIONNAME.StorageOffloadZeroDataToken.Reserved2[STORAGE_OFFLOAD_TOKEN_ID_LENGTH]

Riservato.

DUMMYUNIONNAME.Token[STORAGE_OFFLOAD_TOKEN_ID_LENGTH]

Valore del token fornito dal fornitore che rappresenta un intervallo di set di dati per un'operazione di lettura o scrittura di offload.

Commenti

Le informazioni sul token contenute in STORAGE_OFFLOAD_TOKEN vengono generate dall'infrastruttura di lettura/scrittura di offload. Tutti i membri di questa struttura devono essere considerati di sola lettura e non devono essere modificati da qualsiasi chiamante che richiede una lettura offload o una scrittura offload.

Requisiti

Requisito Valore
Client minimo supportato Disponibile a partire da Windows 8.
Intestazione ntddstor.h (include Ntddstor.h)

Vedi anche

DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS

STORAGE_OFFLOAD_READ_OUTPUT