Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
Sample/example for LsaCallAuthenticationPackage Windows API to get information about MSV1_0 in C#

what kind of struct need to use to get MSV1_0 challenge by calling LsaCallAuthenticationPackage API in C#. my sample code is below.

UInt32 msvAuthPackageId;
using(OSCalls.LsaStringWrapper msvPackageName = new OSCalls.LsaStringWrapper("MICROSOFT_AUTHENTICATION_PACKAGE_V1_0")) {
  status = OSCalls.LsaLookupAuthenticationPackage(lsaHandle, ref msvPackageName._string, out msvAuthPackageId);
  Console.WriteLine("NtlmLogon status check again after LsaLookupAuthenticationPackage {0} ", status);
  if (status != OSCalls.WinStatusCodes.STATUS_SUCCESS) throw new System.ComponentModel.Win32Exception((int) OSCalls.LsaNtStatusToWinError(status));
}

Status is a success but protocolReturnBuf value is empty (always getting zero value and returnBufLen is showing 12)

where authPackage, I am using the below struct to build the pointer and using MSV1_0_PROTOCOL_MESSAGE_TYPE.MsV1_0Lm20ChallengeRequest to get the challenge

public struct MSV1_0_LM20_LOGON //
{

    public MSV1_0_PROTOCOL_MESSAGE_TYPE MessageType;   
    public LSA_UNICODE_STRING LogonDomainName;
    public LSA_UNICODE_STRING UserName;
    public LSA_UNICODE_STRING Workstation;
   
}
over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda