DateTime to FILETIME


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. FILETIME ft = new FILETIME();
  2.  
  3. //from System.DateTime to System.Runtime.InteropServices.ComTypes.FILETIME
  4.  
  5. /////////////////////////////////////////////////////////////////
  6.  
  7. long hFT1 = DateTime.Now.ToFileTime();
  8.  
  9. ft.dwLowDateTime = (int)(hFT1 & 0xFFFFFFFF);
  10.  
  11. ft.dwHighDateTime = (int)(hFT1 >> 32);

URL: http://windows-tech.info/1/dc66674e398c3e66.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.