Page 1 of 1

NetSerialNumber() bug

Posted: Sat May 31, 2008 11:47 am
by Marco Turco
Hi,
calling this function a msginfo series appairs before return the value.
I am using the last FWH version.

Any ideas ? Thanks.

Re: NetSerialNumber() bug

Posted: Sat May 31, 2008 1:43 pm
by Enrico Maria Giordano
Remove the MsgInfo()s from source\winapi\netapi32.prg.

EMG

Posted: Sun Jun 01, 2008 7:56 am
by Marco Turco
I did, but this function always return a "000000" string (on a Vista OS).
Could you pls. confirm the return value on your system ?

Thanks.

Posted: Sun Jun 01, 2008 8:37 am
by Antonio Linares
Marco,

You may use MsgInfo( GetNetCardId() ) instead.

GetNetCardId() will return an array, instead of a string, if there are several network adapters in the computer