IAPI::EnableNamedPipeObjectDataEncryption

method EnableNamedPipeObjectDataEncryption.

Enables or disables data encryption.

 

HRESULT EnableNamedPipeObjectDataEncryption(
  long hNamedPipeObject,
  BOOL enable_or_disable,
  long encodingDataSize
);

Parameters

hNamedPipeObject

[in] .   Handle of named pipe 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