Class WindowsVirtualMachine

    • Field Detail

      • stub

        private static byte[] stub
      • hProcess

        private volatile long hProcess
    • Method Detail

      • detach

        public void detach()
                    throws java.io.IOException
        Description copied from class: VirtualMachine
        Detach from the virtual machine.

        After detaching from the virtual machine, any further attempt to invoke operations on that virtual machine will cause an IOException to be thrown. If an operation (such as loadAgent for example) is in progress when this method is invoked then the behaviour is implementation dependent. In other words, it is implementation specific if the operation completes or throws IOException.

        If already detached from the virtual machine then invoking this method has no effect.

        Specified by:
        detach in class VirtualMachine
        Throws:
        java.io.IOException - If an I/O error occurs
      • init

        static void init()
      • generateStub

        static byte[] generateStub()
      • openProcess

        static long openProcess​(int pid)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • closeProcess

        static void closeProcess​(long hProcess)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • createPipe

        static long createPipe​(java.lang.String name)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • closePipe

        static void closePipe​(long hPipe)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • connectPipe

        static void connectPipe​(long hPipe)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readPipe

        static int readPipe​(long hPipe,
                            byte[] buf,
                            int off,
                            int buflen)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • enqueue

        static void enqueue​(long hProcess,
                            byte[] stub,
                            java.lang.String cmd,
                            java.lang.String pipename,
                            java.lang.Object... args)
                     throws java.io.IOException
        Throws:
        java.io.IOException