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) {
  resolveGetLastError();
  final result_ = _GetCurrentActCtx(lphActCtx);
  return .new(value: result_ != FALSE, error: GetLastError());
}