Network Methods
Net_GetNetCardCount ( )
Returns the number of Ethernet ports on the device.
Syntax
HRESULT Net_GetNetCardCount(
[out, retval] long* Count
);
Parameters
Count
[out, retval] The response send back from the server.
Net_GetIPAddress ( )
Returns the current IP address of the device.
Syntax
HRESULT Net_GetIPAddress(
[out, retval] BSTR* IP
);
Parameters
IP
[out, retval] String containing the current IP address of the device, such as “10.0.1.3”.
Net_GetIPAddressEx ( NetCard )
Returns the current IP address of the device.
Syntax
HRESULT Net_GetIPAddress(
[in] long NetCard
[out, retval] BSTR* IP
);
Parameters
NetCard [in] The ID of the netcard to get the IP address from
IP
[out, retval] String containing the current IP address of the device, such as “10.0.1.3”.
Net_GetSubnetMask ( )
Returns the current subnet mask of the device.
Syntax
HRESULT Net_GetSubnetMask(
[out, retval] BSTR* SubnetMask
);
10