Take screenshot inside VM - VMware Workstation API VixCom C#

Completado Publicado hace 7 años Pagado a la entrega
Completado Pagado a la entrega

Hello,

Hello, I'm using the following C# wrapper : [url removed, login to view] .

I want to take a screenshot inside the VM, but I always receive an unauthorized access exception when I use [url removed, login to view](); .

I've also tried skipping the C# wrapper and using [url removed, login to view] directly like below, but then I see that the error is actually a NullReference Exception error on the line of "[url removed, login to view]".

public static Image CaptureScreenImage()

{

using (VMWareVirtualHost virtualHost = new VMWareVirtualHost())

{

[url removed, login to view]();

using (VMWareVirtualMachine vm = [url removed, login to view](@"E:\Vmware Work\summonerfactory2\summonerfactory\[url removed, login to view]"))

{

if ([url removed, login to view])

{

[url removed, login to view]("Administrator", "linkinpark", 180);

[url removed, login to view]();

[url removed, login to view]();

var callback = new VMWareJobCallback();

var job = new VMWareJob([url removed, login to view](Constants.VIX_CAPTURESCREENFORMAT_PNG, null, callback), callback);

var imageBytes = [url removed, login to view]<byte[]>(Constants.VIX_PROPERTY_JOB_RESULT_SCREEN_IMAGE_DATA, [url removed, login to view]);

return [url removed, login to view](new MemoryStream(imageBytes));

}

else

{

return null;

}

}

}

}

Programación en C#

Nº del proyecto: #10472784

Sobre el proyecto

3 propuestas Proyecto remoto Activo hace 7 años

Adjudicado a:

XpaMoBHuk

Hi, Could you please provide the _handle declaration and initialization part? _handle is null, but it is hard to tell why without seeing that part. Regards, Eugene

€25 EUR en 1 día
(5 comentarios)
4.2

3 freelancers están ofertando un promedio de €72 por este trabajo

pakaimsolutions

Hello, I hope you doing very well! I have gone through the description and would like to provide a quality solution using my 5+ years of professional experience in required skills. (.NET/ASP.NET - MVC, EF, SQL, C#). Más

€140 EUR en 1 día
(5 comentarios)
2.9
handsum

Only Pay me If you 100% Satisfy with my work As per you requirement we have a team that will definitely provide best solution to you. We do fair code with reasonable price and client satisfaction is our Responsibil Más

€50 EUR en 5 días
(2 comentarios)
2.0