NetSerialNumber function

NetSerialNumber function

Postby Rimantas » Thu Jun 08, 2006 8: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Postby Antonio Linares » Wed Jun 14, 2006 11:01 am

Rimantas,

Please make this change in source\winapi\netapi32.prg:
Code: Select all  Expand view
   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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests