CredWrite
C# Signature:
[DllImport("Advapi32.dll", SetLastError=true, EntryPoint="CredWriteW", CharSet=CharSet.Unicode)]
static extern bool CredWrite([In] ref Credential userCredential, [In] UInt32 flags);VB Signature:
Declare Function CredWriteW Lib "advapi32.dll" ( _
ByRef crede As Credential, _
ByVal flags As UInteger _
) As BooleanVB.NET type:
<Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential, CharSet:=Runtime.InteropServices.CharSet.Unicode)> _
Structure Credential
Dim Flags As UInteger
Dim Type As UInteger
Dim TargetName$
Dim Comment$
Dim LastWritten As System.Runtime.InteropServices.ComTypes.FILETIME
Dim CredentialBlobSize As UInteger
Dim CredentialBlob As IntPtr
Dim Persist As UInteger
Dim AttributeCount As UInteger
Dim Attributes As IntPtr
Dim TargetAlias$
Dim UserName$
End StructureUser-Defined Types:
Notes:
Sample Code:
Sample Code:
Sample Code:
Última actualización