src/SeeDll/Packet32.c
/*! 
  \brief Converts an ASCII string to UNICODE. Uses the MultiByteToWideChar() system function.
  \param string The string to convert.
  \return The converted string.
*/
\brief Converts an ASCII string to UNICODE. Uses the MultiByteToWideChar() system function.
\param string The string to convert.
\return The converted string.
\ brief Converts an ASCII string to UNICODE . Uses the MultiByteToWideChar () system function . \ param string The string to convert . \ return The converted string .
PWCHAR SChar2WChar(PCHAR string)
{
	PWCHAR TmpStr;
	TmpStr = (WCHAR*) GlobalAllocPtr(GMEM_MOVEABLE | GMEM_ZEROINIT, (strlen(string)+2)*sizeof(WCHAR));
	MultiByteToWideChar(CP_ACP, 0, string, -1, TmpStr, ((int)strlen(string)+2));
	return TmpStr;
}
PWCHAR SChar2WChar ( PCHAR string ) { PWCHAR TmpStr ; TmpStr = ( WCHAR * ) GlobalAllocPtr ( GMEM_MOVEABLE | GMEM_ZEROINIT , ( strlen ( string ) + 2 ) * sizeof ( WCHAR ) ) ; MultiByteToWideChar ( CP_ACP , 0 , string , -1 , TmpStr , ( ( int ) strlen ( string ) + 2 ) ) ; return TmpStr ; }
\brief Converts an ASCII string to UNICODE.
\ brief Converts an ASCII string to UNICODE .