public static extern bool CredWriteDomainCredentials(ref Unmanaged.CredentialTargetInformation TargetInfo, ref Unmanaged.Credential Credential, CredWriteDomainCredentialsFlag Flags);
public static extern bool CredWrite(ref Unmanaged.Credential credential, CredWriteFlags flags);