Wrappers de VirtualXML para Microsoft Visual Basic .NET VirtualXML
Estos wrappers (definiciones de funciones en una DLL) son necesarios para utilizar VirtualXML en sus programas basados en Microsoft VisualBasic .NET.

VB .NET, al igual que C# y Delphi RadStudio, utilizan las funciones en formato WIDE, por lo que los nombres de las funciones de VirtualXML son distintos, pero simplemente hay que agregar una letra W al final de los nombres de cada función y la funcionalidad y paramétros son los mismos

Copie el contenido mostrado a continuación en su proyecto VB.NET para poder usarlo en su programa.

Definir un nuevo Wrapper es muy sencillo,  el wrapper de VB.NET  se basa en una estructura con 2 componentes por funcion:

Prototipo:
         <DllImport(<nombre del DLL>, CharSet = CharSet.Unicode, EntryPoint := "<función VirtualXMLW>")>

 El prototipo de la funcion define la ubicacion de la DLL en <nombre del DLL>, el juego de caracteres que se utilizan, que siempre sera de tipo Unicode y el "EntryPoint" que es el nombre de la función dentro de la DLL, en este caso, por ser funciones tipo WIDE, su nombre termina con una letra W mayúscula <función VirtualXMLW>.

Definición de la función

         Public Shared <funcion o subrutina> <nombre funcion> ( <param1> As <tipo>, <param2> As <tipo>,..., <paramN> As <tipo> ) As <valor devuelto>
La definción de la funcion comienza con las palabras reservadas Public Shared. seguido por el indicativo Function, si la función devuelve un valor, o Sub si la función no devuelve nada, esto se indica en <funcion o subrutina>, si la función devuelve un valor numérico entonces tendra el valor de IntPtr, si el valor de retorno es una cadena de caracteres tendrá el valor de String, que se indica en <valor devuelto>

A continuación deberemos expresar el nombre con el que deseamos llamar a la función dentro de nuestro programa en <nombre funcion>, que puede ser el mismo que el nombre del EntryPoint o puede ser distinto.

Luego debemos listar los parametros de la función indicando su tipo (IntPtr o String) después de la palabra reservada As.

Finalmente, si la función develve algun valor, deberemos expresar su tipo (IntPtr o String) después de la palabra reservada As, si la función no devuelve ningun valor, no se especifica ningun valor.

Esta estructura deberá repetirse para cada función que se desee utilizar.

Fecha de actualización : 13 de Septiembre 2022  se añadieron las funciones para Retenciones e Información de Pagos 2.0 y API de funciones administrativas del Portal VirtualPAC
Wrapper:


<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_NewW")> _
Public Shared Function VirtualXML_New ( szVersion As String )As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ProcesaDocumentoW")> _
Public Shared Function VirtualXML_ProcesaDocumento ( p As IntPtr, csd As String, key As String, keypwd As String, outfile As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ProcesaDocumentoSSLW")> _
Public Shared Function VirtualXML_ProcesaDocumentoSSL ( p As IntPtr, csd As String, key As String, keypwd As String, outfile As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GetValueW")> _
Public Shared Function VirtualXML_GetValue ( p As IntPtr, value As IntPtr )As String
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_FreeW")> _
Public Shared Sub VirtualXML_Free ( p As IntPtr )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetVirtualPACInfoW")> _
Public Shared Sub VirtualXML_SetVirtualPACInfo ( p As IntPtr, szUser As String, servidor As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetCiberSATInfoW")> _
Public Shared Sub VirtualXML_SetCiberSATInfo ( p As IntPtr, userCiberPAC As String, llaveCiberPAC As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetComprobanteInfoW")> _
Public Shared Sub VirtualXML_SetComprobanteInfo ( p As IntPtr, serie As String, folio As String , fecha As String , tipoDeComprobante As String , formaDePago As String , Subtotal As String, descuento As String, total As String, moneda As String, tipoCambio As String, condicionesDePago As String, metodoDePago As String, motivoDescuento As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetImpuestosLocalesInfoW")> _
Public Shared Sub VirtualXML_SetImpuestosLocalesInfo ( p As IntPtr, TotaldeTraslados As String, TotaldeRetenciones As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddImpuestoLocalRetenidoW")> _
Public Shared Sub VirtualXML_AddImpuestoLocalRetenido ( p As IntPtr, ImpLocRetenido As String, TasadeRetencion As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddImpuestoLocalTrasladadoW")> _
Public Shared Sub VirtualXML_AddImpuestoLocalTrasladado ( p As IntPtr, ImpLocTrasladado As String, TasadeTraslado As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddDonatarias11W")> _
Public Shared Sub VirtualXML_AddDonatarias11 ( p As IntPtr, noAutorizacion As String, fechaAutorizacion As String, leyenda As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetDllPathW")> _
Public Shared Sub VirtualXML_SetDllPath ( p As IntPtr, DllPath As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GetValueInFileW")> _
Public Shared Sub VirtualXML_GetValueInFile ( p As IntPtr, value As IntPtr, file As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ProcessFileW")> _
Public Shared Sub VirtualXML_ProcessFile ( szFile As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CheckFileW")> _
Public Shared Function VirtualXML_CheckFile ( szFile As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetLogFileW")> _
Public Shared Sub VirtualXML_SetLogFile ( p As IntPtr, file As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ShowValueW")> _
Public Shared Sub VirtualXML_ShowValue ( p As IntPtr, lValue As IntPtr, title As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_FirmaSellaDoctoW")> _
Public Shared Function VirtualXML_FirmaSellaDocto ( p As IntPtr, csd As String, key As String, keypwd As String, outfile As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SaveW")> _
Public Shared Sub VirtualXML_Save ( p As IntPtr, file As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_LoadW")> _
Public Shared Function VirtualXML_Load ( file As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GetTimeWithDelayW")> _
Public Shared Function VirtualXML_GetTimeWithDelay ( p As IntPtr, nSegs As IntPtr ) As String
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GetValuesW")> _
Public Shared Sub VirtualXML_GetValues ( p As IntPtr, file As String, lFormat As IntPtr )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CancelaUUIDW")> _
Public Shared Function VirtualXML_CancelaUUID ( szUser As String, szEmisor As String, szCert As String, szKey As String, szPwd As String, szUuid As String, szOut As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CancelaCFDIW")> _
Public Shared Function VirtualXML_CancelaCFDI ( szUser As String, szEmisor As String, szReceptor As String, szTotal As String, szUuid As String, szCert As String, szKey As String, szPwd As String, As String szResult, As String szLog ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GetStatusCFDIW")> _
Public Shared Function VirtualXML_GetStatusCFDI ( szUser As String, szEmisor As String, szReceptor As String, szTotal As String, szUuid As String, szResult As String, szLog As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_RecuperaAcuseCancelacionW")> _
Public Shared Function VirtualXML_RecuperaAcuseCancelacion ( sZUser As String, sZemisor As String, SzUuid As String, sZResult As String, szXMLAcuse As String, szLog As String, sZreserved As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CerKeyMatchW")> _
Public Shared Function VirtualXML_CerKeyMatch ( p As IntPtr, szEmisor As String, szCSD As String, szKey As String, szKeyPwd As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CheckLicenceW")> _
Public Shared Function VirtualXML_CheckLicence ( user As String, llave As String, emisor As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetNomina12W")> _
Public Shared Sub VirtualXML_SetNomina12 ( p As IntPtr, TipoNomina As String, FechaPago As String, FechaInicialPago As String, FechaFinalPago As String, NumDiasPagados As String, TotalPercepciones As String, TotalDeducciones As String, As String TotalOtrosPagos )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetEmisorW")> _
Public Shared Sub VirtualXML_Nomina12SetEmisor ( p As IntPtr, Curp As String, RegistroPatronal As String, RfcPatronOrigen As String, OrigenRecurso As String, MontoRecursoPropio As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetReceptorW")> _
Public Shared Sub VirtualXML_Nomina12SetReceptor ( p As IntPtr, Curp As String, NumSeguridadSocial As String, FechaInicioRelLaboral As String, Antiguedad As String, TipoContrato As String, Sindicalizado As String, TipoJornada As String, As String TipoRegimen, As String NumEmpleado, As String Departamento, As String Puesto, As String RiesgoPuesto, As String PeriodicidadPago, As String Banco, As String CuentaBancaria, As String SalarioBaseCotApor, As String SalarioDiarioIntegrado, As String ClaveEntFed )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12AddSubContratacionW")> _
Public Shared Sub VirtualXML_Nomina12AddSubContratacion ( p As IntPtr, RfcLabora As String, PorcentajeTiempo As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetPercepcionesW")> _
Public Shared Sub VirtualXML_Nomina12SetPercepciones ( p As IntPtr, TotalSueldos As String, TotalSeparacionIndemnizacion As String, TotalJubilacionPensionRetiro As String, TotalGravado As String, TotalExento As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12AddPercepcionW")> _
Public Shared Sub VirtualXML_Nomina12AddPercepcion ( p As IntPtr, TipoPercepcion As String, Clave As String, Concepto As String, ImporteGravado As String, ImporteExento As String, DiAs As String, TipoHorAs As String, As String HorasExtra, As String ImportePagado, As String ValorMercado, As String PrecioAlOtorgarse )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetJubilacionPensionRetiroW")> _
Public Shared Sub VirtualXML_Nomina12SetJubilacionPensionRetiro ( p As IntPtr, TotalUnaExhibicion As String, TotalParcialidad As String, MontoDiario As String, IngresoAcumulable As String, IngresoNoAcumulable As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetSeparacionIndemnizacionW")> _
Public Shared Sub VirtualXML_Nomina12SetSeparacionIndemnizacion ( p As IntPtr, TotalPagado As String, NumAniosServicio As String, UltimoSueldoMensOrd As String, IngresoAcumulable As String, IngresoNoAcumulable As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12SetDeduccionesW")> _
Public Shared Sub VirtualXML_Nomina12SetDeducciones ( p As IntPtr, TotalOtrasDeducciones As String, TotalImpuestosRetenidos As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12AddDeduccionW")> _
Public Shared Sub VirtualXML_Nomina12AddDeduccion ( p As IntPtr, TipoDeduccion As String, Clave As String, Concepto As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12AddOtroPagoW")> _
Public Shared Sub VirtualXML_Nomina12AddOtroPago ( p As IntPtr, TipoOtroPago As String, Clave As String, Concepto As String, Importe As String, SaldoAFavor As String, Anio As String, RemanenteSalFav As String, As String SubsidioCausado )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Nomina12AddIncapacidadW")> _
Public Shared Sub VirtualXML_Nomina12AddIncapacidad ( p As IntPtr, DiasIncapacidad As String, TipoIncapacidad As String, ImporteMonetario As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetCompleteXML_cfdi33W")> _
Public Shared Sub VirtualXML_SetCompleteXML_cfdi33 ( p As IntPtr, XMLCompleto As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetComprobanteInfo_cfdi33W")> _
Public Shared Sub VirtualXML_SetComprobanteInfo_cfdi33 ( p As IntPtr, Serie As String, Folio As String, Fecha As String, FormaPago As String, CondicionesDePago As String, SubTotal As String, Descuento As String, As String Moneda, As String TipoCambio, As String Total, As String TipoDeComprobante, As String MetodoPago, As String LugarExpedicion, As String Confirmacion )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetCfdiRelacionados_cfdi33W")> _
Public Shared Sub VirtualXML_SetCfdiRelacionados_cfdi33 ( p As IntPtr, TipoRelacion As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddCfdiRelacionado_cfdi33W")> _
Public Shared Sub VirtualXML_AddCfdiRelacionado_cfdi33 ( p As IntPtr, UUID As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetEmisorInfo_cfdi33W")> _
Public Shared Sub VirtualXML_SetEmisorInfo_cfdi33 ( p As IntPtr, Rfc As String, Nombre As String, RegimenFiscal As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetReceptorInfo_cfdi33W")> _
Public Shared Sub VirtualXML_SetReceptorInfo_cfdi33 ( p As IntPtr, Rfc As String, Nombre As String, ResidenciaFiscal As String, NumRegIdTrib As String, UsoCFDI As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConcepto_cfdi33W")> _
Public Shared Sub VirtualXML_AddConcepto_cfdi33 ( p As IntPtr, ClaveProdServ As String, NoIdentificacion As String, Cantidad As String, ClaveUnidad As String, Unidad As String, Descripcion As String, ValorUnitario As String, As String Importe, As String Descuento )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoTraslado_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoTraslado_cfdi33 ( p As IntPtr, Base As String, Impuesto As String, TipoFactor As String, TasaOCuota As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoRetencion_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoRetencion_cfdi33 ( p As IntPtr, Base As String, Impuesto As String, TipoFactor As String, TasaOCuota As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetImpuestosInfo_cfdi33W")> _
Public Shared Sub VirtualXML_SetImpuestosInfo_cfdi33 ( p As IntPtr, TotalImpuestosTrasladados As String, TotalImpuestosRetenidos As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetServicioParcial10W")> _
Public Shared Sub VirtualXML_SetServicioParcial10 ( p As IntPtr, NumPerLicoAut As String, Calle As String, NoExterior As String, NoInterior As String, Colonia As String, Localidad As String, Referencia As String, As String Municipio, As String Estado, As String CodigoPostal )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddTraslado_cfdi33W")> _
Public Shared Sub VirtualXML_AddTraslado_cfdi33 ( p As IntPtr, Impuesto As String, TipoFactor As String, TasaOCuota As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddRetencion_cfdi33W")> _
Public Shared Sub VirtualXML_AddRetencion_cfdi33 ( p As IntPtr, Impuesto As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetPagos10W")> _
Public Shared Sub VirtualXML_SetPagos10 ( p As IntPtr )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Pagos10SetPagoW")> _
Public Shared Sub VirtualXML_Pagos10SetPago ( p As IntPtr, FechaPago As String, FormaDePago As String, MonedaP As String, TipoCambioP As String, Monto As String, NumOperacion As String, RfcEmisorCtaOrd As String, As String NomBancoOrdExt, As String CtaOrdenante, As String RfcEmisorCtaBen, As String CtaBeneficiario, As String TipoCadPago, As String CertPago, As String CadPago, As String SelloPago )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_Pagos10AddPagoDoctoRelacionadoW")> _
Public Shared Sub VirtualXML_Pagos10AddPagoDoctoRelacionado ( p As IntPtr, IdDocumento As String, Serie As String, Folio As String, MonedaDR As String, TipoCambioDR As String, MetodoDePagoDR As String, NumParcialidad As String, As String ImpSaldoAnt, As String ImpPagado, As String ImpSaldoInsoluto )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoComplementoIedu_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoComplementoIedu_cfdi33 ( pAs IntPtr , nombreAlumno As String, CURP As String, nivelEducativo As String, autRVOE As String, rfcPago As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoInformacionAduanera_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoInformacionAduanera_cfdi33 ( p As IntPtr, NumeroPedimento As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoCuentaPredial_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoCuentaPredial_cfdi33 ( p As IntPtr, Numero As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddConceptoParte_cfdi33W")> _
Public Shared Sub VirtualXML_AddConceptoParte_cfdi33 ( p As IntPtr, ClaveProdServ As String, NoIdentificacion As String, Cantidad As String, Unidad As String, Descripcion As String, ValorUnitario As String, Importe As String, As String NumeroPedimento )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetAddendaText_cfdi33W")> _
Public Shared Sub VirtualXML_SetAddendaText_cfdi33 ( p As IntPtr, text As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddComplemento_cfdi33W")> _
Public Shared Sub VirtualXML_AddComplemento_cfdi33 ( p As IntPtr, complementoXml As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetAddenda_cfdi33W")> _
Public Shared Sub VirtualXML_SetAddenda_cfdi33 ( p As IntPtr, text As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetComercioExterior11W")> _
Public Shared Sub VirtualXML_SetComercioExterior11 ( p As IntPtr, MotivoTraslado As String, TipoOperacion As String, ClaveDePedimento As String, CertificadoOrigen As String, NumCertificadoOrigen As String, NumeroExportadorConfiable As String, Incoterm As String, As String Subdivision, As String Observaciones, As String TipoCambioUSD, As String TotalUSD )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11SetEmisorW")> _
Public Shared Sub VirtualXML_CCE11SetEmisor ( p As IntPtr, Curp As String, Calle As String, NumeroExterior As String, NumeroInterior As String, Colonia As String, Localidad As String, Referencia As String, As String Municipio, As String Estado, As String Pais, As String CodigoPostal )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11SetReceptorW")> _
Public Shared Sub VirtualXML_CCE11SetReceptor ( p As IntPtr, NumRegIdTrib As String, Calle As String, NumeroExterior As String, NumeroInterior As String, Colonia As String, Localidad As String, Referencia As String, As String Municipio, As String Estado, As String Pais, As String CodigoPostal )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11AddDestinatarioW")> _
Public Shared Sub VirtualXML_CCE11AddDestinatario ( p As IntPtr, NumRegIdTrib As String, Nombre As String, Calle As String, NumeroExterior As String, NumeroInterior As String, Colonia As String, Localidad As String, As String Referencia, As String Municipio, As String Estado, As String Pais, As String CodigoPostal )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11AddPropietarioW")> _
Public Shared Sub VirtualXML_CCE11AddPropietario ( p As IntPtr, NumRegIdTrib As String, ResidenciaFiscal As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11AddMercanciaW")> _
Public Shared Sub VirtualXML_CCE11AddMercancia ( p As IntPtr, NoIdentificacion As String, FraccionArancelaria As String, CantidadAduana As String, UnidadAduana As String, ValorUnitarioAduana As String, ValorDolares As String, Marca As String, As String Modelo, As String SubModelo, As String NumeroSerie )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CCE11AddMercanciaDescripcionesEspecificasW")> _
Public Shared Sub VirtualXML_CCE11AddMercanciaDescripcionesEspecificAs ( p As IntPtr, Marca As String, Modelo As String, SubModelo As String, NumeroSerie As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_GeneraCBBW")> _
Public Shared Function VirtualXML_GeneraCBB ( Datos As String, Archivo As String, DependenciAs As IntPtr, RutaLog As String, AddLog As IntPtr, Escala As IntPtr, Margen As IntPtr ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_CerTo64W")> _
Public Shared Function VirtualXML_CerTo64 ( ArchivoCer As String ) As String
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_FileTo64W")> _
Public Shared Function VirtualXML_FileTo64 ( Archivo As String ) As String
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetINE11W")> _
Public Shared Sub VirtualXML_SetINE11 ( p As IntPtr, TipoProceso As String, TipoComite As String, IdContabilidad As String, ClaveEntidad As String, Ambito As String, EntidadContabilidadIdContabilidad As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddEntidadW")> _
Public Shared Sub VirtualXML_AddEntidad ( p As IntPtr, ClaveEntidad As String, Ambito As String, IdContabilidad As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_AddEntidadContabilidadW")> _
Public Shared Sub VirtualXML_AddEntidadContabilidad ( p As IntPtr, IdContabilidad As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ConsultaSaldosW")> _
Public Shared Function VirtualXML_ConsultaSaldos ( usuario As String, rfcEmisor As String, DatoSolicitado As IntPtr, ArchivoLog As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetLeyendasFiscales10W")> _
Public Shared Sub VirtualXML_SetLeyendasFiscales10 ( p As IntPtr, Disposicion As String, Norma As String, TextoLeyenda As String )
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_SetLeyendasFiscales10FullW")> _
Public Shared Sub VirtualXML_SetLeyendasFiscales10Full ( p As IntPtr, Dis01 As String, Norma01 As String, Texto01 As String, Dis02 As String, Norma02 As String, Texto02 As String, Dis03 As String, Norma03 As String, Texto03 As String, As String Dis04, As String Norma04, As String Texto04, As String Dis05, As String Norma05, As String Texto05, As String Dis06, As String Norma06, As String Texto06, As String Dis07, As String Norma07, As String Texto07, As String Dis08, As String Norma08, As String Texto08, As String Dis09, As String Norma09, As String Texto09, As String Dis10, As String Norma10, As String Texto10)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_ConsultaEstadoCFDIW")> _
Public Shared Function VirtualXML_ConsultaEstadoCFDI ( rfcEmisor As String, rfcReceptor As String, Total As String, UUID As String, OutLog As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaDescargaW")> _
Public Shared Function VirtualXML_MasivaDescarga ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, IdPaquete As String, ArchivoDescargado As String, ArchLog As String, Reservado As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaSolicitaEmitidoXMLW")> _
Public Shared Function VirtualXML_MasivaSolicitaEmitidoXML ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, RfcReceptor As String, FechaDesde As String, FechaHasta As String, ArchResultado As String, ArchLog As String, Reservado As String )As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaSolicitaEmitidoMetadataW")> _
Public Shared Function VirtualXML_MasivaSolicitaEmitidoMetadata ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, RfcReceptor As String, FechaDesde As String, FechaHasta As String, ArchResultado As String, ArchLog As String, Reservado As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaSolicitaRecibidoXMLW")> _
Public Shared Function VirtualXML_MasivaSolicitaRecibidoXML ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, RfcEmisor As String, FechaDesde As String, FechaHasta As String, ArchResultado As String, ArchLog As String, Reservado As String )As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaSolicitaRecibidoMetadataW")> _
Public Shared Function VirtualXML_MasivaSolicitaRecibidoMetadata ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, RfcEmisor As String, FechaDesde As String, FechaHasta As String, ArchResultado As String, ArchLog As String, Reservado As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntryPoint:="VirtualXML_MasivaVerificaW")> _
Public Shared Function VirtualXML_MasivaVerifica ( Usuario As String, ArchivoCerFiel As String, ArchivoKeyFiel As String, PwdKey As String, IdSolicitud As String, ArchResultado As String, ArchLog As String, Reservado As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_SetCartaPorte20W")> _
Public Shared Sub VirtualXML_SetCartaPorte20(p As IntPtr, TranspInternac As String, EntradaSalidaMerc As String, PaisOrigenDestino As String, ViaEntradaSalida As String, TotalDistRec As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddUbicacionW")> _
Public Shared Sub VirtualXML_CartaPorte20AddUbicacion(p As IntPtr, TipoUbicacion As String, IDUbicacion As String, RFCRemitenteDestinatario As String, NombreRemitenteDestinatario As String, NumRegIdTrib As String, ResidenciaFiscal As String, NumEstacion As String, NombreEstacion As String, NavegacionTrafico As String, FechaHoraSalidaLlegada As String, TipoEstacion As String, DistanciaRecorrida As String, Calle As String, NumeroExterior As String, NumeroInterior As String, Colonia As String, Localidad As String, Referencia As String, Municipio As String, Estado As String, Pais As String, CodigoPostal As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20SetMercanciasW")> _
Public Shared Sub VirtualXML_CartaPorte20SetMercancias(p As IntPtr, PesoBrutoTotal As String, UnidadPeso As String, PesoNetoTotal As String, NumTotalMercancias As String, CargoPorTasacion As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciaW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercancia(p As IntPtr, BienesTransp As String, ClaveSTCC As String, Descripcion As String, Cantidad As String, ClaveUnidad As String, Unidad As String, Dimensiones As String, MaterialPeligroso As String, CveMaterialPeligroso As String, Embalaje As String, DescripEmbalaje As String, PesoEnKg As String, ValorMercancia As String, Moneda As String, FraccionArancelaria As String, UUIDComercioExt As String, UnidadPesoMerc As String, PesoBruto As String, PesoNeto As String, PesoTara As String, NumPiezas As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciaPedimentosW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciaPedimentos(p As IntPtr, Pedimento As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciaGuiasIdentificacionW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciaGuiasIdentificacion(p As IntPtr, NumeroGuiaIdentificacion As String, DescripGuiaIdentificacion As String, PesoGuiaIdentificacion As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciaCantidadTransportaW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciaCantidadTransporta(p As IntPtr, Cantidad As String, IDOrigen As String, IDDestino As String, CvesTransporte As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20SetMercanciasAutotransporteW")> _
Public Shared Sub VirtualXML_CartaPorte20SetMercanciasAutotransporte(p As IntPtr, PermSCT As String, NumPermisoSCT As String, ConfigVehicular As String, PlacaVM As String, AnioModeloVM As String, AseguraRespCivil As String, PolizaRespCivil As String, AseguraMedAmbiente As String, PolizaMedAmbiente As String, AseguraCarga As String, PolizaCarga As String, PrimaSeguro As String, SubTipoRem1 As String, Placa1 As String, SubTipoRem2 As String, Placa2 As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20SetMercanciasTransporteMaritimoW")> _
Public Shared Sub VirtualXML_CartaPorte20SetMercanciasTransporteMaritimo(p As IntPtr, PermSCT As String, NumPermisoSCT As String, NombreAseg As String, NumPolizaSeguro As String, TipoEmbarcacion As String, Matricula As String, NumeroOMI As String, AnioEmbarcacion As String, NombreEmbarc As String, NacionalidadEmbarc As String, UnidadesDeArqBruto As String, TipoCarga As String, NumCertITC As String, Eslora As String, Manga As String, Calado As String, LineaNaviera As String, NombreAgenteNaviero As String, NumAutorizacionNaviero As String, NumViaje As String, NumConocEmbarc As String, MatriculaContenedor As String, TipoContenedor As String, NumPrecinto As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciasTransporteMaritimoContenedorW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciasTransporteMaritimoContenedor(p As IntPtr, MatriculaContenedor As String, TipoContenedor As String, NumPrecinto As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20SetMercanciasTransporteAereoW")> _
Public Shared Sub VirtualXML_CartaPorte20SetMercanciasTransporteAereo(p As IntPtr, PermSCT As String, NumPermisoSCT As String, MatriculaAeronave As String, NombreAseg As String, NumPolizaSeguro As String, NumeroGuia As String, LugarContrato As String, CodigoTransportista As String, RFCEmbarcador As String, NumRegIdTribEmbarc As String, ResidenciaFiscalEmbarc As String, NombreEmbarcador As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20SetMercanciasTransporteFerroviarioW")> _
Public Shared Sub VirtualXML_CartaPorte20SetMercanciasTransporteFerroviario(p As IntPtr, TipoDeServicio As String, TipoDeTrafico As String, NombreAseg As String, NumPolizaSeguro As String, TipoDerechoDePaso As String, KilometrajePagado As String, TipoCarro As String, MatriculaCarro As String, GuiaCarro As String, ToneladasNetasCarro As String, TipoContenedor As String, PesoContenedorVacio As String, PesoNetoMercancia As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioDerechosDePasoW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioDerechosDePaso(p As IntPtr, TipoDerechoDePaso As String, KilometrajePagado As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarroW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarro(p As IntPtr, TipoCarro As String, MatriculaCarro As String, GuiaCarro As String, ToneladasNetasCarro As String, TipoContenedor As String, PesoContenedorVacio As String, PesoNetoMercancia)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarroContenedorW")> _
Public Shared Sub VirtualXML_CartaPorte20AddMercanciasTransporteFerroviarioCarroContenedor(p As IntPtr, TipoContenedor As String, PesoContenedorVacio As String, PesoNetoMercancia As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddFiguraTransporteTiposFiguraW")> _
Public Shared Sub VirtualXML_CartaPorte20AddFiguraTransporteTiposFigura(p As IntPtr, TipoFigura As String, RFCFigura As String, NumLicencia As String, NombreFigura As String, NumRegIdTribFigura As String, ResidenciaFiscalFigura As String, ParteTransporte As String, Calle As String, NumeroExterior As String, NumeroInterior As String, Colonia As String, Localidad As String, Referencia As String, Municipio As String, Estado As String, Pais As String, CodigoPostal As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CartaPorte20AddFiguraTransporteTiposFiguraPartesTransporteW")> _
Public Shared Sub VirtualXML_CartaPorte20AddFiguraTransporteTiposFiguraPartesTransporte(p As IntPtr, ParteTransporte As String)
End Sub

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CancelaCFDI2022SslW")> _
Public Shared Function VirtualXML_CancelaCFDI2022SslW(szUsuario As String, szRfcEmisor As String, szMotivo As String, szUuid As String, szFolioSust As String, szCert As String, szKey As String, szPwd As String, szServer As String, szResult As String, szLog As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet:=CharSet.Unicode, EntyPoint:="VirtualXML_CancelaCFDI2022W")> _
Public Shared Function VirtualXML_CancelaCFDI2022W(szUsuario As String, szRfcEmisor As String, szMotivo As String, szUuid As String, szFolioSust As String, szCert As String, szKey As String, szPwd As String, szServer As String, szResult As String, szLog As String ) As IntPtr
End Function

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoW ( p As IntPtr, FechaPago As String, FormaDePagoP As String, MonedaP As String, TipoCambioP As String, Monto As String, NumOperacion As String, RfcEmisorCtaOrd As String, NomBancoOrdExt As String, CtaOrdenante As String, RfcEmisorCtaBen As String, CtaBeneficiario As String, TipoCadPago As String, CertPago As String, CadPago As String, SelloPago As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoDoctoRelacionadoW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoDoctoRelacionadoW ( p As IntPtr, idDocumento As String, Serie As String, Folio As String, MonedadDR As String, EquivalenciaDR As String, NumParcialidad As String, ImpSaldoAnt As String, ImpPagado As String, ImpSaldoInsoluto As String, ObjetoImpDR As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoDoctoRelacionadoRetencionDRW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoDoctoRelacionadoRetencionDRW ( p As IntPtr, BaseDR As String, ImpuestoDR As String, TipoFactorDR As String, TasaOCuotaDR As String, ImporteDR As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoDoctoRelacionadoTrasladoDRW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoDoctoRelacionadoTrasladoDRW ( p As IntPtr, BaseDR As String, ImpuestoDR As String, TipoFactorDR As String, TasaOCuotaDR As String, ImporteDR As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoImpuestosPRetencionPW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoImpuestosPRetencionPW ( p As IntPtr, ImpuestoP As String, ImporteP As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_Pagos20AddPagoImpuestosPTrasladoPW")> _
Public Shared Sub VirtualXML_Pagos20AddPagoImpuestosPTrasladoPW ( p As IntPtr, BaseP As String, ImpuestoP As String, TipoFactorP As String, TasaOCuotaP As String, ImporteP As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetPagos20W")> _
Public Shared Sub VirtualXML_SetPagos20W ( p As IntPtr, TotalRetencionesIVA As String, TotalRetencionesISR As String, TotalRetencionesIEPS As String, TotalTrasladosBaseIVA16 As String, TotalTrasladosImpuestoIVA16 As String, TotalTrasladosBaseIVA8 As String, TotalTrasladosImpuestoIVA8 As String, TotalTrasladosBaseIVA0 As String, TotalTrasladosImpuestoIVA0 As String, TotalTrasladosBaseIVAExento As String, MontoTotalPagosAs String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddCfdiRelacionado_cfdi40W")> _
Public Shared Sub VirtualXML_AddCfdiRelacionado_cfdi40W ( p As IntPtr, UUID As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddCfdiRelacionados_cfdi40W")> _
Public Shared Sub VirtualXML_AddCfdiRelacionados_cfdi40W ( p As IntPtr, TipoRelacion As String, UUID1 As String, UUID2 As String, UUID3 As String, UUID4 As String, UUID5 As String, UUID6 As String, UUID7 As String, UUID8 As String, UUID9 As String, UUID10As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddComplemento_cfdi40W")> _
Public Shared Sub VirtualXML_AddComplemento_cfdi40W ( p As IntPtr, complementoXml As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddComplementoConcepto_cfdi40W")> _
Public Shared Sub VirtualXML_AddComplementoConcepto_cfdi40W ( p As IntPtr, complementoXml As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConcepto_cfdi40W")> _
Public Shared Sub VirtualXML_AddConcepto_cfdi40W ( p As IntPtr, ClaveProdServ As String, NoIdentificacion As String, Cantidad As String, ClaveUnidad As String, Unidad As String, Descripcion As String, ValorUnitario As String, Importe As String, Descuento As String, ObjetoImp As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConceptoCuentaPredial_cfdi40W")> _
Public Shared Sub VirtualXML_AddConceptoCuentaPredial_cfdi40W ( p As IntPtr, Numero As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConceptoInformacionAduanera_cfdi40W")> _
Public Shared Sub VirtualXML_AddConceptoInformacionAduanera_cfdi40W ( p As IntPtr, NumperoPedimento As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConceptoParte_cfdi40W")> _
Public Shared Sub VirtualXML_AddConceptoParte_cfdi40W ( p As IntPtr, ClaveProdServ As String, NoIdentificacion As String, Cantidad As String, Unidad As String, Descripcion As String, ValorUnitario As String, Importe As String, NumperoPedimento1 As String, NumperoPedimento2 As String, NumperoPedimento3 As String, NumperoPedimento4 As String, NumperoPedimento5 As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConceptoRetencion_cfdi40W")> _
Public Shared Sub VirtualXML_AddConceptoRetencion_cfdi40W ( p As IntPtr, Base As String, Impuesto As String, Tipofactor As String, TasaOCuota As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddConceptoTraslado_cfdi4033W")> _
Public Shared Sub VirtualXML_AddConceptoTraslado_cfdi40W ( p As IntPtr, Base As String, Impuesto As String, Tipofactor As String, TasaOCuota As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddRetencion_cfdi40W")> _
Public Shared Sub VirtualXML_AddRetencion_cfdi40W ( p As IntPtr, Impuesto As String, Importe As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_AddTraslado_cfdi40W")> _
Public Shared Sub VirtualXML_AddTraslado_cfdi40W ( p As IntPtr, Impuesto As String, TipoFactor As String, TasaOCuota As String, Importe As String, Base As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetAddenda_cfdi40W")> _
Public Shared Sub VirtualXML_SetAddenda_cfdi40W ( p As IntPtr, text As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetAddendaText_cfdi40W")> _
Public Shared Sub VirtualXML_SetAddendaText_cfdi40W ( p As IntPtr, text As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetCompleteXML_cfdi40W")> _
Public Shared Sub VirtualXML_SetCompleteXML_cfdi40W ( p As IntPtr, TextoXMLoArchivoXMLAs String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetComprobanteInfo_cfdi40W")> _
Public Shared Sub VirtualXML_SetComprobanteInfo_cfdi40W ( p As IntPtr, Serie As String, Folio As String, Fecha As String, FormaDePago As String, CondicionesDePago As String, SubTotal As String, Descuento As String, Moneda As String, TipoCambio As String, Total As String, TipoDeComprobante As String, MetodoDePago As String, LugarExpedicion As String, Confirmacion As String, Exportacion As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetConceptoACuentaTerceros_cfdi40W")> _
Public Shared Sub VirtualXML_SetConceptoACuentaTerceros_cfdi40W ( p As IntPtr, RfcACuentaTerceros As String, NombreACuentaTerceros As String, RegimenFiscalACuentaTerceros As String, DomicilioFiscalACuentaTerceros As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetEmisorInfo_cfdi40W")> _
Public Shared Sub VirtualXML_SetEmisorInfo_cfdi40W ( p As IntPtr, RFC As String, Nombre As String, RegimenFiscal As String, FacAtrAdquirente As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetInformacionGlobal_cfdi40W")> _
Public Shared Sub VirtualXML_SetInformacionGlobal_cfdi40W ( p As IntPtr, Periodicidad As String, Meses As String, Año As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetImpuestosInfo_cfdi40W")> _
Public Shared Sub VirtualXML_SetImpuestosInfo_cfdi40W ( p As IntPtr, totalImpuestosTrasladados As String, totalImpuestosRetenidos As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="VirtualXML_SetReceptorInfo_cfdi40W")> _
Public Shared Sub VirtualXML_SetReceptorInfo_cfdi40W ( p As IntPtr, RFC As String, Nombre As String, ResidenciaFiscal As String, NumRegIdTrib As String, UsoCFDI As String, DomicilioFiscalReceptor As String, RegimenFiscalReceptor As String )
End Sub

<DllImport("VirtualXML.dll", CharSet := CharSet.Unicode, EntryPoint :="Utils_SendEmailW")> _
Public Shared Function Utils_SendEmailW ( SmtpServer As String, SmtpPuerto As IntPtr, SmtpUserName As String, SmtpPassword As String, MessageTo As String, MessageFrom As String, MessageSubjet As String, MessageBody As String, MessageAttach1 As String, MessageAttach2 As String, MessageAttach3 As String, OutLog As String, Reserved As String ) As IntPtr
End Function