﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
12060	Unregister function fails	MVS		"Hi sir,

I am automating create machine, booting by attaching vhd or vmdk and taking snapshot. Now i wanna remove the created vm and related backup files as well from the my machine

API I am using :: VirtualBoxSDK-4.2.16-86992
Platform :: Windows7 and Windows 2008 R2
Language :: C++

I have created machine using CreateMachine() function, I can able to create machine, start machine after that following issue troubling me alot

In my VirtualBox.h header file Unregister() and delete() function definitions are as follows.

virtual HRESULT STDMETHODCALLTYPE Unregister( 
/* [in] */ CleanupMode aCleanupMode,
/* [retval][out] */ SAFEARRAY * *aAMedia) = 0;

virtual HRESULT STDMETHODCALLTYPE Delete( 
/* [in] */ SAFEARRAY * aAMedia,
/* [retval][out] */ IProgress **aAProgress) = 0;


In my c++ file iam using functions like this


SAFEARRAY * *aAMedia = NULL;

machine->Unregister(CleanupMode_UnregisterOnly , aAMedia);
machine->Delete(*aAMedia, &progress);


Here ""Unregister()"" not returning proper value for ""aAMedia"" . When iam trying to use the same ""aAMedia"" in my delete() function as input argument value function fails


Please help me to solve these issue

Regard's
MVS"	task	closed	other	VirtualBox 4.2.16	invalid	Remove VM		all	all
