LSA_STRING struttura (lsalookup.h)

La struttura LSA_STRING viene usata dalle funzioni LSA (Local Security Authority ) per specificare una stringa ANSI.

Sintassi

typedef struct _LSA_STRING {
  USHORT Length;
  USHORT MaximumLength;
  PCHAR  Buffer;
} LSA_STRING, *PLSA_STRING;

Members

Length

Specifica la lunghezza, in byte, della stringa nel buffer. Questo valore non include il carattere Null terminante, se presente.

Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer non deve essere una stringa vuota o contenere solo un carattere Null.

Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer può essere una stringa vuota o contenere solo un carattere Null. Questo comportamento è cambiato a partire da Windows Server 2008 R2 e Windows 7 con SP1.

MaximumLength

Specifica le dimensioni totali, in byte, di Buffer. Fino a MassimoLength byte può essere scritto nel buffer senza calpestare la memoria.

Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer non deve essere una stringa vuota o contenere solo un carattere Null.

Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer può essere una stringa vuota o contenere solo un carattere Null. Questo comportamento è cambiato a partire da Windows Server 2008 R2 e Windows 7 con SP1.

Buffer

Puntatore a una matrice di caratteri. Si noti che le stringhe restituite dall'LSA potrebbero non essere terminate con valori Null.

Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer non deve essere una stringa vuota o contenere solo un carattere Null.

Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 e Windows XP: Quando il membro della struttura Length è zero e il membro della struttura MaximumLength è 1, il membro della struttura buffer può essere una stringa vuota o contenere solo un carattere Null. Questo comportamento è cambiato a partire da Windows Server 2008 R2 e Windows 7 con SP1.

Requisiti

Requisito Valore
Client minimo supportato Windows XP [solo app desktop]
Server minimo supportato Windows Server 2003 [solo app desktop]
Intestazione lsalookup.h