Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "CredPackAuthenticationBuffer" in [All]

credui

.
Summary
The CredPackAuthenticationBuffer function converts a string user name and password into an authentication buffer.
.

    private static extern Boolean CredPackAuthenticationBuffer(

.

    Public Shared Function CredPackAuthenticationBuffer(ByVal dwFlags As UInt32, ByVal pszUserName As String, ByVal pszPassword As String, ByVal pPackedCredentials As IntPtr, ByRef pcbPackedCredentials As UInt32) As <MarshalAs(UnmanagedType.Bool)> Boolean

.

    CredPackAuthenticationBuffer(0, username, password, inCredBuffer, ref inCredSize);

.
Documentation
[CredPackAuthenticationBuffer] on MSDN
.

    ''' <param name="pvInAuthBuffer">An authentication buffer with which to default prompted values (see <see cref="CredPackAuthenticationBuffer" />).</param>

.

      (IntPtr)0,  //You can force that a specific username is shown in the dialog. Create it with 'CredPackAuthenticationBuffer()'. Then, the buffer goes here...


 
Access PInvoke.net directly from VS: