GetCurrentActCtx function Null safety kernel32

int GetCurrentActCtx(
  1. Pointer<IntPtr> lphActCtx
)

The GetCurrentActCtx function returns the handle to the active activation context of the calling thread.

BOOL GetCurrentActCtx(
  HANDLE *lphActCtx
);

Implementation

int GetCurrentActCtx(Pointer<IntPtr> lphActCtx) {
  final _GetCurrentActCtx = _kernel32.lookupFunction<
      Int32 Function(Pointer<IntPtr> lphActCtx),
      int Function(Pointer<IntPtr> lphActCtx)>('GetCurrentActCtx');
  return _GetCurrentActCtx(lphActCtx);
}