Re: Power On/OFF Issue ?

From: Yu (Yu.Mails_at_msa.hinet.net)
Date: 03/01/05


Date: Tue, 1 Mar 2005 20:48:17 +0800

Hi,

Following is our codes of using OAL string.
Is there any problem ?
----------------------------------------------------------------------------
-----------------------------------------------------------------------
memcpy(pProcInfo->szProcessCore, HALOEMCoreStr,
(strlenW(HALOEMCoreStr)+1)*sizeof(WCHAR) );
memcpy(pProcInfo->szProcessorName, g_wcProcessorStr,
(strlenW(HALOEMStr)+1)*sizeof(WCHAR) );
memcpy(pProcInfo->szVendor, HALVendorStr,
(strlenW(HALVendorStr)+1)*sizeof(WCHAR) );
pProcInfo->dwInstructionSet = (DWORD)0;
pProcInfo->dwClockSpeed = S2410FCLK;
*lpBytesReturned = sizeof(PROCESSOR_INFO);
 if (*lpBytesReturned > nOutBufSize)
  return FALSE;
 else
  return TRUE

----------------------------------------------------------------------------
-----------------------------------------------------------------------

Yu.