Excel催化剂开源第47波-Excel与PowerBIDeskTop互通互联之第一篇( 四 )
{
// get the process pid
System.UInt32 pid = (System.UInt32)process["ProcessId"];
var parentPid = int.Parse(process["ParentProcessId"].ToString());
var parentTitle = "";
if (parentPid > 0)
{
var parentProcess = Process.GetProcessById(parentPid);
//if (parentProcess.ProcessName == "devenv") _icon = EmbeddedSSASIcon.Devenv;
parentTitle = parentProcess.MainWindowTitle;
if (parentTitle.Length == 0)
{
// for minimized windows we need to use some Win32 api calls to get the title
parentTitle = GetWindowTitle(parentPid);
推荐阅读
- 双十一|腾讯开源国内首个H.266/VVC视频播放器
- excel|Excel – 这个冷门的四舍五入函数,我猜九成的人不知道
- excel|何苦一味痴迷Excel公式,多条件查找并对结果求和,PQ更佳
- excel|当查询的Excel表格列太多,这个函数给vlookup神助攻
- excel|全套Excel版工程自动计算表格+实用小工具,造价必备利器!
- 华为鸿蒙系统|画龙画虎难画骨,华为将鸿蒙开源或许真的错了
- excel|Excel – 一对多查询有合并单元格的表格,诚心建议用PQ
- iphone12|告别PPT! 鸿蒙2.0正式开源,明年所有华为手机都能升
- 华为鸿蒙系统|开源、独立成为华为鸿蒙生态能否成功的关键
- excel|Excel – 有了这个函数,其他随机函数都可以功成身退了