parameters: (self, res_type, res_lang, res_name, file_path)
docstring: Inserts or updates a given resource with the contents of a file.
  
      Args:
        res_type: the type of the resource, e.g. "B7".
        res_lang: the language id of the resource, e.g. 1033.
        res_name: the name of the resource, e.g. "SETUP.EXE".
        file_path: path to the file containing the new resource data.
docstring_summary: Inserts or updates a given resource with the contents of a file.
docstring_tokens: Inserts or updates a given resource with the contents of a file .
function: def UpdateResource(self, res_type, res_lang, res_name, file_path):
      """Inserts or updates a given resource with the contents of a file.
  
      Args:
        res_type: the type of the resource, e.g. "B7".
        res_lang: the language id of the resource, e.g. 1033.
        res_name: the name of the resource, e.g. "SETUP.EXE".
        file_path: path to the file containing the new resource data.
      """
      _LOGGER.info('Writing resource "%s:%s" from file.',
          res_type, res_name, file_path)
  
      with open(file_path, 'rb') as f:
        win32api.UpdateResource(self.update_handle,
                                res_type,
                                res_name,
                                f.read(),
                                res_lang);
  
      self._modified = True
function_tokens: def UpdateResource ( self , res_type , res_lang , res_name , file_path ) : _LOGGER . info ( 'Writing resource "%s:%s" from file.' , res_type , res_name , file_path ) with open ( file_path , 'rb' ) as f : win32api . UpdateResource ( self . update_handle , res_type , res_name , f . read ( ) , res_lang ) self . _modified = True