Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.12 KB

GetNetworkParams.md

File metadata and controls

47 lines (32 loc) · 1.12 KB

Home

Function name : GetNetworkParams

Group: IP Helper - Library: iphlpapi


The GetNetworkParams function retrieves network parameters for the local computer.


Code examples:

How to retrieve network parameters for the local computer (including Host name, Domain name, and DNS Server)

Declaration:

DWORD GetNetworkParams(
	PFIXED_INFO pFixedInfo,
	PULONG pOutBufLen
);  

FoxPro declaration:

DECLARE INTEGER GetNetworkParams IN iphlpapi;
	STRING @ pFixedInfo,;
	LONG   @ pOutBufLen  

Parameters:

pFixedInfo [out] Pointer to a FIXED_INFO structure that receives the network parameters for the local computer.

pOutBufLen [in] Pointer to a ULONG variable that specifies the size of the FIXED_INFO structure.


Return value:

If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is one of predefined error codes.