This MSDN article provides details for a function to set the date and time that a file was last written to, but it is not available in the CompactFramework. There did not appear to be a PInvoke option for this method. Is there a good alternative in the Compact Framework (currently targetting .NET v2.0)?
I'm looking to create an empty file on disk and update it about every minute. If power is removed, the last modified date of the file will be used to create a "Power off" event (accurate to minute, of course).