diff --git a/WindowsCredentialManager.Tests/WindowsCredentialManager.Tests.csproj b/WindowsCredentialManager.Tests/WindowsCredentialManager.Tests.csproj index 4d31599..7ca9042 100644 --- a/WindowsCredentialManager.Tests/WindowsCredentialManager.Tests.csproj +++ b/WindowsCredentialManager.Tests/WindowsCredentialManager.Tests.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.1 + netcoreapp3.1;net6 true diff --git a/WindowsCredentialManager/Win32/Types/CREDENTIALW.cs b/WindowsCredentialManager/Win32/Types/CREDENTIALW.cs index 1ce7153..712ca82 100644 --- a/WindowsCredentialManager/Win32/Types/CREDENTIALW.cs +++ b/WindowsCredentialManager/Win32/Types/CREDENTIALW.cs @@ -1,3 +1,5 @@ +using System.Runtime.InteropServices.ComTypes; + namespace WindowsCredentialManager.Win32.Types { using System; @@ -10,7 +12,7 @@ internal struct CREDENTIALW public CREDENTIAL_TYPE Type; [MarshalAs (UnmanagedType.LPWStr)] public string TargetName; [MarshalAs (UnmanagedType.LPWStr)] public string? Comment; - public DateTimeOffset LastWritten; + public FILETIME LastWritten; public int BlobSize; public SecureBlob? Blob; public CREDENTIAL_PERSIST Persist;