如何使用设备驱动程序获取文件版本?

How can I get a file version using a device driver?

我有一个设备驱动程序,可以获取二进制文件的完整路径,例如:

  C:\Windows\System32\Notepad.exe

是否有一个 内核级别 调用,我可以进行类似于 "GetFileVersionInfo" 的调用来获取二进制文件的产品版本?

或者我可以只使用:

how to use the GetFileVersionInfo function?

谢谢

经过一些研究...似乎可以从设备驱动程序调用 'GetFileVersionInfo'

参见 http://www.osronline.com/showThread.cfm?link=59108

上 18 个问题中的第 7 个问题

这里是 'GetFileVersionInfo'

https://msdn.microsoft.com/en-us/library/windows/desktop/ms647003(v=vs.85).aspx

征集'GetFileVersionInfoSize'

https://msdn.microsoft.com/en-us/library/windows/desktop/ms647005(v=vs.85).aspx