Declaration
Automation:
void  BitwiseOp ( [in]   IMultiSelection  pSelection, [in]   enum BitwiseOpType  type, [in]   byte  pData, [in]   uint  data_size) ;
Native (C++):
HRESULT  BitwiseOp ( [in]   IMultiSelection *  pSelection, [in]   enum BitwiseOpType  type, [in]   unsigned char *  pData, [in]   unsigned long  data_size) ;
Parameters
pSelection The multiple selection object which contains ranges for this operation to work on. type The operation to perform. Can be one of the following values:
Operation Type Value Description
BitwiseOpNOT 0 Bitwise NOT: x[i] = ~x[i];
BitwiseOpOR 1 Bitwise OR: x[i] |= operand[i % data_size];
BitwiseOpAND 2 Bitwise AND: x[i] &= operand[i % data_size];
BitwiseOpXOR 3 Bitwise XOR: x[i] ^= operand[i % data_size];
pData Pointer to an operand pattern. data_sizeOperand pattern size in bytes. Must be zero for BitwiseOpNOT operation type.
Return Value
S_OK or standard OLE error code.
Remarks
Performs a bitwise operation on a given selection. Complexity: linear-time, depending on selection's complexity.