问题 I'm trying to map CredWrite/CredRead in JNA in order to store a thrid party credential used in my Java application in Windows Credential Manager (OS Windows 10). Here're the original signatures in C: // https://msdn.microsoft.com/en-us/library/aa375187(v=vs.85).aspx BOOL CredWrite( _In_ PCREDENTIAL Credential, _In_ DWORD Flags ); // https://msdn.microsoft.com/en-us/library/aa374804(v=vs.85).aspx BOOL CredRead( _In_ LPCTSTR TargetName, _In_ DWORD Type, _In_ DWORD Flags, _Out_ PCREDENTIAL