agent/browser/ie/pagetest/PagetestReporting.cpp
/*-----------------------------------------------------------------------------
	Generate a base64 encoded GUID to use for the current report item
-----------------------------------------------------------------------------*/
Generate a base64 encoded GUID to use for the current report item
Generate a base64 encoded GUID to use for the current report item
void CPagetestReporting::GenerateGUID(void)
{
	guid.Empty();
	GUID guidVal;
	if( SUCCEEDED(CoCreateGuid(&guidVal)) )
	{
		char buff[100];
		memset(buff,0,sizeof(buff));
		int len = _countof(buff);
		if( Base64Encode((LPBYTE)&guidVal, sizeof(guidVal), buff, &len, ATL_BASE64_FLAG_NOPAD | ATL_BASE64_FLAG_NOCRLF) )
		{
			guid = buff;
		}
	}
}
void CPagetestReporting :: GenerateGUID ( void ) { guid . Empty ( ) ; GUID guidVal ; if ( SUCCEEDED ( CoCreateGuid ( & guidVal ) ) ) { char buff [ 100 ] ; memset ( buff , 0 , sizeof ( buff ) ) ; int len = _countof ( buff ) ; if ( Base64Encode ( ( LPBYTE ) & guidVal , sizeof ( guidVal ) , buff , & len , ATL_BASE64_FLAG_NOPAD | ATL_BASE64_FLAG_NOCRLF ) ) { guid = buff ; } } }
Generate a base64 encoded GUID to use for the current report item
Generate a base64 encoded GUID to use for the current report item