wsaDATA構造体

宣言文
Type NCB
    ncb_command As Integer                              'NCBのコマンド
    ncb_retcode As Integer                              'リターンコード
    ncb_lsn As Integer                                  '
    ncb_num As Integer                                  '
    ncb_buffer As String                                'バッファ
    ncb_length As Integer                               'バッファサイズ
    ncb_callname As String * NCBNAMSZ                   '
    ncb_name As String * NCBNAMSZ                       '
    ncb_rto As Integer                                  '
    ncb_sto As Integer                                  '
    ncb_post As Long                                    '
    ncb_lana_num As Integer                             '
    ncb_cmd_cplt As Integer                             '
    ncb_reserve(10) As Byte                             '予約済み
    ncb_event As Long                                   'イベント
End Type
関係する定数
WSADESCRIPTION_LEN = 256
WSASYS_STATUS_LEN = 128
Structure NCB
    ncb_command As Short                              'NCBのコマンド
    ncb_retcode As Short                              'リターンコード
    ncb_lsn As Short                                  '
    ncb_num As Short                                  '
    ncb_buffer As String                                'バッファ
    ncb_length As Short                               'バッファサイズ
    ncb_callname As String * NCBNAMSZ                   '
    ncb_name As String * NCBNAMSZ                       '
    ncb_rto As Short                                  '
    ncb_sto As Short                                  '
    ncb_post As Integer                                    '
    ncb_lana_num As Short                             '
    ncb_cmd_cplt As Short                             '
    ncb_reserve(10) As Byte                             '予約済み
    ncb_event As Integer                                   'イベント
End Structure