TdiBuildNetbiosAddressEa

NTSTATUS
TdiBuildNetbiosAddressEa(
   IN PUCHAR Buffer,
   IN BOOLEAN GroupName,
   IN PUCHAR NetbiosName
   );

TdiBuildNetbiosAddressEa sets up a buffered NetBIOS address that the caller can pass subsequently to ZwCreateFile as the EaBuffer parameter.

Parameters

Buffer

Points to a caller-supplied buffer, which must be at least 40 bytes in length.

GroupName

Specifies TRUE if the address to be set up is a group address.

NetbiosName

Points to 16-byte buffer containing a NetBIOS name.

Return Value

TdiBuildNetbiosAddressEa returns STATUS_SUCCESS if it set up the given EA buffer. Otherwise, it can return STATUS_UNSUCCESSFUL if the given buffer is too small or, possibly, a propagated error status if attempting to access the given parameters raised an exception.

Comments

TdiBuildNetbiosAddressEa sets up the buffer in a manner suitable for calling ZwCreateFile to open a NetBIOS address, with a TA_NETBIOS_ADDRESS structure as the EA value.

See Also

TA_NETBIOS_ADDRESS, TdiBuildNetbiosAddress