开发者

Clone assembly information

Currently I am using ResHacker to read and set assembly information. I am using my C# application to run ResHacker with p开发者_JAVA百科roper command line arguments necessary for reading and setting the Assembly information. However, I would like to do this without a third party application.

I want to control the following:

File description:
Company Name:
File Version:
Date Created:


It seems that you need to edit the VERSIONINFO resouce. To manipulate resources, you can use the resource functions:

  • FindResource
  • LoadResource
  • BeginUpdateResource
  • UpdateResource
  • EndUpdateResource.

See here for sample code (Win32 but shouldn't be too hard to convert to P/Invoke). The structure of the VERSIONINFO record itself is somewhat complicated and contains variable-length and nested records. Have a look at this description.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜