IAPI::EnableSocketObjectDataEncryption

method EnableSocketObjectDataEncryption.

Enables or disables data encryption.

 

HRESULT EnableSocketObjectDataEncryption(
  long hSocketObject,
  BOOL enable_or_disable,
  long encodingDataSize
);

Parameters

hSocketObject

[in] .   Handle of socket object

enable_or_disable

[in,defaultvalue(TRUE)] . TRUE (enable) or FALSE (disable)

encodingDataSize

[in,defaultvalue(-1)] .

-1 means full encryption

‘n’ means only n bytes encryption

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI