Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows驱动程序是否有可能拥有资源?如果是这样,我怎么能添加它们,更重要的是访问它们?
我只向驱动程序添加版本信息资源。只需将 rc-file 添加到您的源代码中。
SOURCES = ver.rc \ main.cpp
如果您想从驱动程序访问资源,我建议您获取驱动程序基地址并使用 IMAGE_DOS_HEADER/IMAGE_NT_HEADERS/DataDirectory 来查找资源。