Code:

string channel = data;

MapFunction::iterator it = KeyStorer.find( channel );

if ( it != KeyStorer.end( ) )
 lstrcpy( data, (*it).second.c_str( ) );
else
  lstrcpy( data, "Key Not Found" );

return 3;