gyptest-link-enable-uac.py 文件源码

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

项目:gyp 作者: electron 项目源码 文件源码
def extract_manifest(path, resource_name):
    """Reads manifest from |path| and returns it as a string.
    Returns None is there is no such manifest."""
    with LoadLibrary(path) as handle:
      try:
        return win32api.LoadResource(handle, RT_MANIFEST, resource_name)
      except pywintypes.error as error:
        if error.args[0] == winerror.ERROR_RESOURCE_DATA_NOT_FOUND:
          return None
        else:
          raise
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号