Error description: (DOS Error -2147352570) WINOLE/1009 No existe el m‚todo: SERIALNUMBER
Error description: (DOS Error -2147352570) WINOLE/1009 No existe el m‚todo: FIRMWAREREVISION
Error E2293 TestLvw.prg 209: ) expected in function HB_FUN_NOSIGN
*** 1 errors in Compile ***
#pragma BEGINDUMP
#include <Windows.h>
#include <HBApi.h>
HB_FUNC( NOSIGN )
{
hb_retnll( ( unsigned LONG ) hb_parnl( 1 ) );
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include <Windows.h>
#include <HBApi.h>
HB_FUNC( NOSIGN )
{
hb_retnll( ( unsigned long ) hb_parnl( 1 ) );
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include <Windows.h>
HB_FUNC( TEST )
{
HANDLE disk0;
DWORD retCount;
GETVERSIONINPARAMS versionInfo;
/* get a handle for physical disk 0 (the C: drive) */
if ((disk0 = CreateFile (
"\\\\.\\PHYSICALDRIVE0",
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_DELETE | FILE_SHARE_READ |
FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL)) == INVALID_HANDLE_VALUE)
{
MessageBox( 0, "1", "Info", 0 );
return;
}
/* query the drive for the SMART version it supports */
if (! (DeviceIoControl (disk0,
SMART_GET_VERSION,
NULL,
0,
&versionInfo,
sizeof (GETVERSIONINPARAMS),
&retCount,
NULL)))
{
MessageBox( 0, "DeviceIoControl() call failed\n", "Info", 0 );
return ;
}
/*
printf ("Driver version... %1d\n"
"Revision......... %1d\n"
"Device map....... 0x%02x\n"
"Capabilities......0x%02x\n",
versionInfo.bVersion,
versionInfo.bRevision,
versionInfo.bIDEDeviceMap,
versionInfo.fCapabilities);
*/
/* close everything & go home */
CloseHandle (disk0);
}
#pragma ENDDUMP
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 35 guests