获取在C++中创建/修改注册表项的日期

Bil*_*ton 3 c++ windows registry

我似乎无法找到这样做的方法,但我觉得奇怪的是注册表密钥在创建时根本不会给出时间戳.有谁知道一种方式?目标平台是XP 32位.

谢谢.

hmj*_*mjd 7

RegQueryInfoKey()声明它可以检索上次修改时间:

lpftLastWriteTime [out, optional]

    A pointer to a FILETIME structure that receives the last write time.
    This parameter can be NULL.

    The function sets the members of the FILETIME structure to indicate
    the last time that the key or any of its value entries is modified.