#pragma once
#define _CRT_SECURE_NO_WARNINGS 1			//vc++のおせっかいな警告を消す
#define  _CRT_NON_CONFORMING_SWPRINTFS 1	//vc++のおせっかいな警告を消す
//#define TEST_CONNECT_RESULT_CHECK

///
///生放送ステータス
///
typedef struct streamstatus_t{

	TCHAR id[LENGTH_128];
	TCHAR default_community[LENGTH_128];
	PROVIDERTYPE provider_type;
	BOOL  is_owner;
	time_t start_time;
	time_t end_time;
	time_t open_time;
	time_t base_time;
}StreamStatus,*StreamStatus_P;

typedef struct nicolivestream_t{
	NicoRecvCallBack callback;
	HANDLE threadHandle;
	HANDLE endEvent;
	HANDLE receveEvent;
	LPVOID option;
	StreamStatus stream;
}NicoLiveStream,*NicoLiveStream_P;


#define STARTRECEVECOUNT 1000

#define RECEVECOUNT 65536

#define ONERECEVECHATCOUNT 3