CredDelete function advapi32

Win32Result<bool> CredDelete(
  1. PCWSTR targetName,
  2. CRED_TYPE type
)

Deletes a credential from the user's credential set.

To learn more, see learn.microsoft.com/windows/win32/api/wincred/nf-wincred-creddeletew.

Implementation

Win32Result<bool> CredDelete(PCWSTR targetName, CRED_TYPE type) {
  final result_ = CredDeleteW_Wrapper(targetName, type, NULL);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}