1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/build/win32/vmwarerecordinghelper/vmwarerecordinghelper.cpp Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/** 1.9 + * The following code comes from "Starting and Stopping Recording of Virtual 1.10 + * Machine Activity from Within the Guest": 1.11 + * 1.12 + * http://kb.vmware.com/selfservice/documentLink.do?externalID=1001401 1.13 + */ 1.14 + 1.15 +void __cdecl 1.16 +StartRecording() 1.17 +{ 1.18 + __asm { 1.19 + mov eax, 564d5868h 1.20 + mov ebx, 1 1.21 + mov cx, 47 1.22 + mov dx, 5658h 1.23 + in eax, dx 1.24 + } 1.25 +} 1.26 + 1.27 +void __cdecl 1.28 +StopRecording() 1.29 +{ 1.30 + __asm { 1.31 + mov eax, 564d5868h 1.32 + mov ebx, 2 1.33 + mov cx, 47 1.34 + mov dx, 5658h 1.35 + in eax, dx 1.36 + } 1.37 +}