src/SeeDll/Packet32.c
/*! 
  \brief Converts an UNICODE string to ASCII. Uses the WideCharToMultiByte() system function.
  \param string The string to convert.
  \return The converted string.
*/
\brief Converts an UNICODE string to ASCII. Uses the WideCharToMultiByte() system function.
\param string The string to convert.
\return The converted string.
\ brief Converts an UNICODE string to ASCII . Uses the WideCharToMultiByte () system function . \ param string The string to convert . \ return The converted string .
PCHAR WChar2SChar(PWCHAR string)
{
	PCHAR TmpStr;
	TmpStr = (CHAR*) GlobalAllocPtr(GMEM_MOVEABLE | GMEM_ZEROINIT, (wcslen(string)+2));
	WideCharToMultiByte(
		CP_ACP,
		0,
		string,
		-1,
		TmpStr,
		((int)wcslen(string)+2),          
		NULL,
		NULL);
	return TmpStr;
}
PCHAR WChar2SChar ( PWCHAR string ) { PCHAR TmpStr ; TmpStr = ( CHAR * ) GlobalAllocPtr ( GMEM_MOVEABLE | GMEM_ZEROINIT , ( wcslen ( string ) + 2 ) ) ; WideCharToMultiByte ( CP_ACP , 0 , string , -1 , TmpStr , ( ( int ) wcslen ( string ) + 2 ) , NULL , NULL ) ; return TmpStr ; }
\brief Converts an UNICODE string to ASCII.
\ brief Converts an UNICODE string to ASCII .
// Convert to ASCII
 // size of buffer
