LboxWininet


  FTPConnect



  
// *********************************************************
// FTP 接続
// 戻り値 : true 成功, false 失敗
// *********************************************************
BOOL LboxWininet::FTPConnect( )
{
	LboxWininet::Disconnect( );

	this->hSession = InternetOpen(
		this->Agent.szLboxString,
		INTERNET_OPEN_TYPE_DIRECT,
		NULL, NULL, 0
	);
	if ( this->hSession == NULL ) {
		return false;
	}

	DWORD nPassive;

	nPassive = 0;
	if ( this->bPassive ) {
		nPassive = INTERNET_FLAG_PASSIVE;
	}

	this->hConnect = InternetConnect(
		this->hSession,
		this->Server.szLboxString,
		INTERNET_INVALID_PORT_NUMBER,
		this->User.szLboxString,
		this->Password.szLboxString,
		INTERNET_SERVICE_FTP,
		nPassive,
		NULL
	);
	if ( this->hConnect == NULL ) {
		InternetCloseHandle( this->hSession );
		return false;
	}

	return true;
}
  










  infoboard   管理者用   
このエントリーをはてなブックマークに追加





フリーフォントWEBサービス
SQLの窓WEBサービス

SQLの窓フリーソフト

素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ