Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the date that a registry key was created/modified in C++

I can't seem to find a way of doing this, but it seems strange to me that a registry key wouldn't be given a time stamp at all when created. Does anyone know of a way? Target platform is XP 32 bit.

Thanks.

like image 554
Bill Walton Avatar asked Jan 16 '23 20:01

Bill Walton


1 Answers

RegQueryInfoKey() states that it can retrieve the last modified time:

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.
like image 102
hmjd Avatar answered Jan 25 '23 23:01

hmjd