Edit C:\Program Files (x86)\VMware\VMware VIX\doc\lang\perl\functions\HostDisconnect.html
<html> <head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> <meta HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <link rel="stylesheet" href="../../../foundrydoc.css" type="text/css" charset="ISO-8859-1"> <link rel="stylesheet" href="foundrydoc.css" type="text/css" charset="ISO-8859-1"> </head> <body> <h1>Name</h1> <b>HostDisconnect</b> <h1>Description</h1> <pre> HostDisconnect($hostHandle); </pre> <p> Destroys the state for a particular host handle. <h1>Parameters</h1> <dl> <dt><i>handle</i></dt> <dd> The host handle returned by HostConnect(). </dd> </dl> <h1>Return Value</h1> None. <h1>Remarks</h1> Call this function to disconnect the host. After you call this function the handle is no longer valid and you should not use it in any Vix function. Similarly, you should not use any handles obtained from the host while it was connected. <h1>Side Effects</h1> None. <h1>Requirements</h1> <pre> use VMware::Vix::Simple; use VMware::Vix::API::Constants; </pre> since VMware Server 1.0 <h1>Example</h1> <pre> use VMware::Vix::Simple; use VMware::Vix::API::Constants; my $err = VIX_OK; my $hostHandle = VIX_INVALID_HANDLE; ($err, $hostHandle) = HostConnect(VIX_API_VERSION, VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, "https://viserver/sdk", # hostName 0, # hostPort "root", # userName "rootpasswd", # password 0, # options VIX_INVALID_HANDLE); # propertyListHandle die "HostConnect() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK; # ...Do everything in your program... HostDisconnect($hostHandle); </pre> </body> </html> <hr>Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de