PDA

View Full Version : How to tell its running on a VirtualPC/VM machine



NewsArchive
10-12-2009, 01:46 AM
Hi Friedrich

I noticed you have a Get System Info facility to find out if the
installation is being run on a VPC/VM machine.

"VMWare Virtual Machine-Checks whether the target Windows system is running
on a VMWare virtual machine. Returns "1" when running on VMWare.
Virtual PC Virtual Machine-Checks whether the target Windows system is
running on a Microsoft Virtual PC virtual machine. Returns "1" when running
on Microsoft Virtual PC. "

I just wondered if you could point me to a resource where I can perform the
check in my own programs as I've had no luck googling for links.<g>

--
--
Cheers
Richard

NewsArchive
10-12-2009, 01:46 AM
Richard,

Perhaps Friedrich will offer more elegant insight.

But might I suggest this is an example where a SB "helper app" might work?

I've done this in several situations where I needed some functinoality
that's easy to achieve with SB. A minimal SB project that runs silently
with no user interface only takes about 140K. I write them to run asInvoker
and run them from my software.

One of my wish-list requests to Friedrich (which I hereby present again,
Friedrich!) is that he offer the option to compile an SB project as a DLL
for just that reason.

Jane

NewsArchive
10-12-2009, 01:47 AM
Hi Jane

Might have found what I'm looking for:

http://www.swissdelphicenter.ch/en/showcode.php?id=2369
http://www.swissdelphicenter.ch/en/showcode.php?id=1819
http://www.swissdelphicenter.ch/en/showcode.php?id=1756

or failing that, might be just as easy to look for hardware with VMware /
VPC hardware as an alternative! <g>

It didnt occur to me until a moment ago the hardware check might be the
obvious way to go.<g>


--
--
Cheers
Richard

NewsArchive
10-12-2009, 01:48 AM
Even better!
http://www.codeproject.com/KB/system/VmDetect.aspx


--
--
Cheers
Richard

NewsArchive
10-12-2009, 01:48 AM
Hi Richard,

> Even better!
> http://www.codeproject.com/KB/system/VmDetect.aspx

Thanks for posting the link:) CodeProject is my favourite place to look for
code samples!

Best regards,

--
ArnĂ³r Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php