Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetDefaultCompartmentId function retrieves the default network routing compartment identifier for the local computer.
Syntax
IPHLPAPI_DLL_LINKAGE NET_IF_COMPARTMENT_ID NETIOAPI_API_ GetDefaultCompartmentId();
Return value
If the function succeeds, the return value is the default Compartment ID.
If the function fails, the return value is one of the following error codes.
Return code | Description |
---|---|
|
The function failed to obtain a Compartment ID. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | netioapi.h (include Iphlpapi.h) |
Library | Iphlpapi.lib |
DLL | Iphlpapi.dll |