Exemplo n.º 1
0
        internal Properties(Process process, string dllPath)
        {
            DllPath = dllPath;

            // Determine if the process is running under Wow64

            Native.IsWow64Process(process.SafeHandle, out IsWow64);

            MemoryModule = new MemoryModule();

            // Get the pe headers of the dll

            PeHeaders = new PeFile(dllPath);

            ProcessId = process.Id;

            // Open a handle to the process

            ProcessHandle = process.SafeHandle;
        }