def extract_manifest(path, resource_name):
    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
Reads manifest from |path| and returns it as a string.
dataset/ETHPy150Open adblockplus/gyp/test/win/gyptest-link-update-manifest.py/extract_manifest