Excel催化剂开源第47波-Excel与PowerBIDeskTop互通互联之第一篇( 七 )

DbName = dbName,

ModelName = modelName

});

}

}

}

catch (Exception)

{

}

}

}

}

return pbidPortTittleMappings;

}

//#region PInvoke calls to get the window title of a minimize window

delegate bool EnumThreadDelegate(IntPtr hWnd, IntPtr lParam);

[DllImport("user32.dll")]

static extern bool IsWindowVisible(IntPtr hWnd);

[DllImport("user32.dll")]

推荐阅读