函数名

vtcp_startup

声明

int WINAPI vtcp_startup(LPWSADATA wsad);

描述

初始化VTCP函数库。

输入

LPWSADATA wsad : 参考WSAStartup

输出

wVersion = 9.x

wHighVersion = 9.x

szDescription: VTCP 版本

 

其他域未使用

 

返回值(错误码=0 成功)

参考windows

 

说明

应用程序在使用VTCP API之前,应该首先调用该函数。

 

参考

 

WSAStartup

 

typedef struct WSAData {

        WORD                    wVersion;

        WORD                    wHighVersion;

#ifdef _WIN64

        unsigned short          iMaxSockets;

        unsigned short          iMaxUdpDg;

        char FAR *              lpVendorInfo;

        char                    szDescription[WSADESCRIPTION_LEN+1];

        char                    szSystemStatus[WSASYS_STATUS_LEN+1];

#else

        char                    szDescription[WSADESCRIPTION_LEN+1];

        char                    szSystemStatus[WSASYS_STATUS_LEN+1];

        unsigned short          iMaxSockets;

        unsigned short          iMaxUdpDg;

        char FAR *              lpVendorInfo;

#endif

} WSADATA, FAR * LPWSADATA;