FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Pocket PC Saber si una palicacion se ejecuta en el emulador
Posts: 186
Joined: Sat Oct 08, 2005 07:32 AM
Saber si una palicacion se ejecuta en el emulador
Posted: Mon Jan 28, 2008 11:57 AM

Amigos
¿Existe alguna funcion que indique si una aplicación se está ejecutando en el emulador?

Saludos

Toni Sales
Posts: 186
Joined: Sat Oct 08, 2005 07:32 AM
Saber si una palicacion se ejecuta en el emulador
Posted: 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Saber si una palicacion se ejecuta en el emulador
Posted: Mon Jan 28, 2008 12:52 PM

Toni,

Gracias! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion