GetCurrentActCtx

[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool GetCurrentActCtx(
   out IntPtr phActCtx
);

Microsoft documentation: Link

Last updated