NetSerialNumber function

Post Reply
User avatar
Rimantas
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

NetSerialNumber function

Post 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 !
Rimantas U.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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()
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply