FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour NetSerialNumber function
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
NetSerialNumber function
Posted: Thu Jun 08, 2006 08:42 AM

Hi !

I tried this function from sources\winapi\netapi32.prg . But at home my PC isn't connected to any LAN and then this function return "0" . It's normal ? What it's needful for this function ?

With best regards !

Rimantas U.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
NetSerialNumber function
Posted: Wed Jun 14, 2006 11:01 AM
Rimantas,

Please make this change in source\winapi\netapi32.prg:
   oNcb:command  = 51 // NCBASTAT
   #ifdef __CLIPPER__
      oNcb:buffer = GETVDMP32( StrPtr( oAdapterStatus:cBuffer ) )
   #else
      oNcb:buffer = StrPtr( oAdapterStatus:cBuffer )
   #endif   
   oNcb:length   = oAdapterStatus:SizeOf()
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion