pyaimp.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:pyaimp 作者: EpocDotFr 项目源码 文件源码
def _get_aimp_exe_path(self):
        """Find the AIMP executable path given its window handler.

        :raises RuntimeError: The AIMP executable path cannot be found.
        :rtype: None
        """
        win_thread_proc_id = win32process.GetWindowThreadProcessId(self._aimp_window)

        pwnd = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, False, win_thread_proc_id[1])

        self._aimp_exe_path = win32process.GetModuleFileNameEx(pwnd, None)

        if not self._aimp_exe_path:
            raise RuntimeError('Unable to retrieve the AIMP executable.')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号