GetDefaultCompartmentId function
The GetDefaultCompartmentId function retrieves the default network routing compartment identifier for the local computer.
Syntax
NETIOAPI_API GetDefaultCompartmentId(void);
Parameters
This function has no parameters.
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
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|