Retrieve's the current module's IP address, netmask, and gateway as arrays of four bytes.
- Parameters
-
| [in] | handle | Valid handle returned by SME_Initialize(). |
| [out] | ipAddress | |
| [out] | netmask | |
| [out] | gateway | |
- Return values
-
| 0 | Success. |
| -1 | Invalid SME_Initialize() handle. |
| -2 | No module selected. Call SearchForModules() first. |
The currently selected module's IP address, netmask, and gateway will be placed in the parameter buffers in the form {a,b,c,d}. Instead of populating the three parameters with string versions of the network configuration, the three parameters will each contain four byte equivalents of the network configuration.
- Note
- If any parameter is NULL, that parameter is ignored. For instance, to retrieve only the current module's netmask, supply a valid byte buffer pointer for the second parameter, and NULL for the first and third parameters.
- Warning
- The supplied byte buffers must each be allocated with at least 4 bytes of data before calling GetIPAddress().