CompareObjectHandles function Null safety kernel32

int CompareObjectHandles(
  1. int hFirstObjectHandle,
  2. int hSecondObjectHandle
)

Compares two object handles to determine if they refer to the same underlying kernel object.

BOOL CompareObjectHandles(
  HANDLE hFirstObjectHandle,
  HANDLE hSecondObjectHandle
);

Implementation

int CompareObjectHandles(int hFirstObjectHandle, int hSecondObjectHandle) {
  final _CompareObjectHandles = _kernelbase.lookupFunction<
      Int32 Function(IntPtr hFirstObjectHandle, IntPtr hSecondObjectHandle),
      int Function(int hFirstObjectHandle,
          int hSecondObjectHandle)>('CompareObjectHandles');
  return _CompareObjectHandles(hFirstObjectHandle, hSecondObjectHandle);
}