ActivateActCtx function Null safety kernel32

int ActivateActCtx (
  1. int hActCtx,
  2. Pointer<IntPtr> lpCookie

The ActivateActCtx function activates the specified activation context. It does this by pushing the specified activation context to the top of the activation stack. The specified activation context is thus associated with the current thread and any appropriate side-by-side API functions.

BOOL ActivateActCtx(
  HANDLE    hActCtx,
  ULONG_PTR *lpCookie


int ActivateActCtx(int hActCtx, Pointer<IntPtr> lpCookie) {
  final _ActivateActCtx = _kernel32.lookupFunction<
      Int32 Function(IntPtr hActCtx, Pointer<IntPtr> lpCookie),
      int Function(int hActCtx, Pointer<IntPtr> lpCookie)>('ActivateActCtx');
  return _ActivateActCtx(hActCtx, lpCookie);