GetCurrentActCtx function kernel32

Win32Result<bool> GetCurrentActCtx(
  1. Pointer<Pointer<NativeType>> lphActCtx
)

Returns the handle to the active activation context of the calling thread.

To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-getcurrentactctx.

Implementation

Win32Result<bool> GetCurrentActCtx(Pointer<Pointer> lphActCtx) {
  final result_ = GetCurrentActCtx_Wrapper(lphActCtx);
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}