win32api.UpdateResource

UpdateResource(handle, type, name, data, language)

Updates a resource in a PE file.

Parameters

handle : PyHANDLE

The update-file handle.

type : PyResourceId

The type of resource to update

name : PyResourceId

The id/name of the resource to update

data : string

The data to place into the resource.

language=NEUTRAL : int

Language to use, defaults to LANG_NEUTRAL.