#include "stdafx.h"
#include <Windows.h>
#include <WinInet.h>
#include <tchar.h>
#include <strsafe.h>
#include <string>
using namespace std;
#pragma comment( lib, "Wininet.lib" )
LPCTSTR lpszAcceptType = L"Accept: text/*";
CHAR g_szAuth[1024];
TCHAR g_szYouTubeUser[128];
HINTERNET g_hSession = NULL;
HINTERNET g_hConnect = NULL;
HINTERNET g_hRequest = NULL;
BOOL ClientLogin(LPTSTR lpUser,LPTSTR lpPassword);
void LogOut();
int _tmain(int argc, _TCHAR* argv[])
{
ClientLogin(L"",L"");
printf(g_szAuth);
printf("/n");
LogOut();
return 0;
}
BOOL ClientLogin (LPTSTR lpUser,LPTSTR lpPassword)
{
BOOL bLoginSuceess = FALSE;
g_hSession = InternetOpen(