IAPI::EnableNetworkConnection

property EnableNetworkConnection.

Enables or Disables a Network Connection Name from within a computer.

 

HRESULT EnableNetworkConnection(
  BSTR connectionName,
  long Enable,
  long *pVal
);

Parameters

connectionName

[in] . Network Connection Name which must be retrieved from GetNetworkConnectionList(…)

Enable

[in,defaultvalue(1)] . 0 to disable, 1 to enable the Network Connection.

 

   pVal

[out, retval] . 0 if succeeded, other value if failed.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI