VMGuestLib_StatGet(const char *encoding, // IN
■
■ stat – the statistic to print. See examples below.
■ reply – a pointer to be set with a buffer containing the formatted reply. All current formats return null-terminated C strings, but future formats may not; the caller should treat the buffer as binary unless the format is known. The buffer must later be freed by a call to VMGuestLib_StatFree().
■ replySize – a pointer to receive the size of data in the buffer.VMGuestLib_StatFree(char *reply, size_t replySize);
■
■ Example: C code with StatGet and StatFree functions shows these two function calls used in a sample routine:glError = VMGuestLib_StatGet(encoding, arg, &result, &resultSize);The command name varies with each of the three OS types available, but all three have a -v option to show the VMware Tools version number.These commands are provided for debugging and scripting; the implementation is a wrapper on top of the VMGuestLib_StatGet() call described above.