Exemplo n.º 1
0
 /// <summary>
 /// Set _NTLM_SUPPLEMENTAL_CREDENTIAL to Credentials.
 /// Credentials is a pointer, pointing to a byte array.
 /// The byte array is the NDR-encoded _NTLM_SUPPLEMENTAL_CREDENTIAL.
 /// </summary>
 /// <param name="ntlmCredential">the embedded _NTLM_SUPPLEMENTAL_CREDENTIAL instance.</param>
 public void SetNtlmCredential(_NTLM_SUPPLEMENTAL_CREDENTIAL ntlmCredential)
 {
     Credentials    = PacUtility.ObjectToMemory <_NTLM_SUPPLEMENTAL_CREDENTIAL>(ntlmCredential);
     CredentialSize = (uint)Credentials.Length;
 }
 /// <summary>
 /// Set _NTLM_SUPPLEMENTAL_CREDENTIAL to Credentials.
 /// Credentials is a pointer, pointing to a byte array.
 /// The byte array is the NDR-encoded _NTLM_SUPPLEMENTAL_CREDENTIAL.
 /// </summary>
 /// <param name="ntlmCredential">the embedded _NTLM_SUPPLEMENTAL_CREDENTIAL instance.</param>
 public void SetNtlmCredential(_NTLM_SUPPLEMENTAL_CREDENTIAL ntlmCredential)
 {
     Credentials = PacUtility.ObjectToMemory<_NTLM_SUPPLEMENTAL_CREDENTIAL>(ntlmCredential);
     CredentialSize = (uint)Credentials.Length;
 }