Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am trying to check if the OS has booted up successfully in Oracle Virtual BOX using Virtual Box api . Out of the Virtual Box API functions, i found that GetGuestEnteredACPIMode is the one that returns True if the OS is running successfully and returns False if the OS fails to boot with errors like BSOD "7B". etc., The other function get_State retuns state as running even if the machine fails to boot with BSOD(Blue screen of Death) Typically 7B in my case.

IF any one have suggestion on checking if the system booted up successfully in VirtualBox API com c++ is appreciated.

[Edit: Unchecked plain text option]
Posted
Updated 29-Feb-12 1:26am
v3
Comments
enhzflep 27-Feb-12 10:25am    
How about checking the return result from a COM call?
This page: https://www.virtualbox.org/sdkref/group___virtual_box___c_o_m__result__codes.html
seems to indicate that you could check to see that the return value isn't VBOX_E_HOST_ERROR (Host operating system related error.)
Only used VirtualBox manually, never touched it's API. Perhaps this suggestion stinks!
gssajith87 28-Feb-12 1:56am    
@ enhzflep that does not seem to help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900