CredWrite function advapi32
Creates a new credential or modifies an existing credential in the user's credential set.
To learn more, see learn.microsoft.com/windows/win32/api/wincred/nf-wincred-credwritew.
Implementation
Win32Result<bool> CredWrite(Pointer<CREDENTIAL> credential, int flags) {
final result_ = CredWriteW_Wrapper(credential, flags);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}