Page 1 of 1

NetSerialNumber function

Posted: Thu Jun 08, 2006 8:42 am
by Rimantas
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 !

Posted: Wed Jun 14, 2006 11:01 am
by Antonio Linares
Rimantas,

Please make this change in source\winapi\netapi32.prg:

Code: Select all

   oNcb:command  = 51 // NCBASTAT
   #ifdef __CLIPPER__
      oNcb:buffer = GETVDMP32( StrPtr( oAdapterStatus:cBuffer ) )
   #else
      oNcb:buffer = StrPtr( oAdapterStatus:cBuffer )
   #endif   
   oNcb:length   = oAdapterStatus:SizeOf()