/* Reads the current interrupt status and recycled transmit buffer status from a network interface. */
EFI_STATUS WinNtSnpGetStatus(IN EMU_SNP_PROTOCOL *This, OUT UINT32 *InterruptStatus OPTIONAL, OUT VOID **TxBuf OPTIONAL)
/* Reads the current interrupt status and recycled transmit buffer status from a network interface. */
EFI_STATUS WinNtSnpGetStatus(IN EMU_SNP_PROTOCOL *This, OUT UINT32 *InterruptStatus OPTIONAL, OUT VOID **TxBuf OPTIONAL)
{
  WIN_NT_SNP_PRIVATE  *Private;
  Private = WIN_NT_SNP_PRIVATE_DATA_FROM_THIS (This);
  if (TxBuf != NULL) {
    if (Private->Instance.RecycledTxBufCount != 0) {
      Private->Instance.RecycledTxBufCount--;
      *((UINT8 **)TxBuf) = (UINT8 *)(UINTN)Private->Instance.RecycledTxBuf[Private->Instance.RecycledTxBufCount];
    } else {
      *((UINT8 **)TxBuf) = NULL;
    }
  }
  if (InterruptStatus != NULL) {
    *InterruptStatus = EFI_SIMPLE_NETWORK_TRANSMIT_INTERRUPT;
  }
  return EFI_SUCCESS;
}