by tsales » Mon Jan 28, 2008 12:33 pm
Me respondo a mi mismo:
HB_FUNC(ISEMULATOR)
{
WCHAR wszMachineName[128];
SystemParametersInfo(SPI_GETOEMINFO, sizeof(wszMachineName), &wszMachineName, 0);
hb_retl( strcmp( wszMachineName,L"Microsoft DeviceEmulator" ) == 0 ) ;
}
HB_FUNC(GETOEMINFO)
{
WCHAR wszMachineName[128];
SystemParametersInfo(SPI_GETOEMINFO, sizeof(wszMachineName), &wszMachineName, 0);
hb_retc( WideToAnsi(wszMachineName ) ) ;
}
Saludos
Toni Sales