michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * The following code comes from "Starting and Stopping Recording of Virtual michael@0: * Machine Activity from Within the Guest": michael@0: * michael@0: * http://kb.vmware.com/selfservice/documentLink.do?externalID=1001401 michael@0: */ michael@0: michael@0: void __cdecl michael@0: StartRecording() michael@0: { michael@0: __asm { michael@0: mov eax, 564d5868h michael@0: mov ebx, 1 michael@0: mov cx, 47 michael@0: mov dx, 5658h michael@0: in eax, dx michael@0: } michael@0: } michael@0: michael@0: void __cdecl michael@0: StopRecording() michael@0: { michael@0: __asm { michael@0: mov eax, 564d5868h michael@0: mov ebx, 2 michael@0: mov cx, 47 michael@0: mov dx, 5658h michael@0: in eax, dx michael@0: } michael@0: }