# yourpovv/dll-injector architecture

> Architecture diagram of the GitHub repository yourpovv/dll-injector, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yourpovv/dll-injector
- Repository: https://github.com/yourpovv/dll-injector

## Overview

DLL-Injector is a Windows console application for selecting a DLL, waiting for a named x64 process, and loading the DLL into it. Its main workflow starts at the menu or a DLL passed on launch, validates the DLL, obtains the target name, polls for the process, then invokes the injector and reports the result. The README also documents configurable target/debug settings and drag-and-drop support. Edges reflect the sampled source; Windows APIs are shown as external services, not separate repository subsystems.

Main entry points: [`src/main.cpp`](https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp) (Menu and workflow), [`src/log.cpp`](https://github.com/yourpovv/dll-injector/blob/main/src/log.cpp) (Logging), [`src/inject.cpp`](https://github.com/yourpovv/dll-injector/blob/main/src/inject.cpp) (DLL injection), [`src/banner.cpp`](https://github.com/yourpovv/dll-injector/blob/main/src/banner.cpp) (Banner display)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["User workflow"]
  node_app["Menu and workflow<br/>[main.cpp]"]
  node_dll_selection["DLL selection<br/>[main.cpp]"]
  node_target_setup["Target selection and wait<br/>[main.cpp]"]
end

subgraph group_injection["Process injection"]
  node_process_search["Process discovery<br/>[inject.cpp]"]
  node_injector["DLL injection<br/>[inject.cpp]"]
end

subgraph group_console["Console interface"]
  node_console_setup["Console setup<br/>[console.cpp]"]
  node_banner["Banner display<br/>[banner.cpp]"]
  node_theme["Console theme<br/>[theme.h]"]
end

subgraph group_diagnostics["Configuration and logging"]
  node_configuration["Runtime configuration<br/>[config.h]"]
  node_logging["Logging<br/>[log.cpp]"]
end

node_user(("User"))
node_windows["Windows process APIs"]

node_user -->|"starts"| node_app
node_app -->|"initializes"| node_console_setup
node_app -->|"displays"| node_banner
node_app -->|"selects DLL"| node_dll_selection
node_dll_selection -->|"continues with"| node_target_setup
node_target_setup -->|"polls for"| node_process_search
node_app -->|"invokes"| node_injector
node_injector -->|"uses process APIs"| node_windows
node_process_search -->|"enumerates processes"| node_windows
node_app -->|"reads settings"| node_configuration
node_app -->|"reports status"| node_logging
node_injector -->|"logs diagnostics"| node_logging
node_banner -->|"reads console width"| node_console_setup
node_banner -->|"uses colors"| node_theme
node_logging -->|"checks debug mode"| node_configuration
node_logging -->|"uses colors"| node_theme

click node_app "https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp"
click node_dll_selection "https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp"
click node_target_setup "https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp"
click node_process_search "https://github.com/yourpovv/dll-injector/blob/main/src/inject.cpp"
click node_injector "https://github.com/yourpovv/dll-injector/blob/main/src/inject.cpp"
click node_console_setup "https://github.com/yourpovv/dll-injector/blob/main/src/console.cpp"
click node_banner "https://github.com/yourpovv/dll-injector/blob/main/src/banner.cpp"
click node_configuration "https://github.com/yourpovv/dll-injector/blob/main/include/config.h"
click node_logging "https://github.com/yourpovv/dll-injector/blob/main/src/log.cpp"
click node_theme "https://github.com/yourpovv/dll-injector/blob/main/include/theme.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_dll_selection,node_target_setup,node_user toneBlue
class node_process_search,node_injector toneAmber
class node_console_setup,node_banner,node_theme,node_windows toneMint
class node_configuration,node_logging toneRose
```

## Components

### User workflow

- [Menu and workflow](https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp): `src/main.cpp`
- [DLL selection](https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp): `src/main.cpp`
- [Target selection and wait](https://github.com/yourpovv/dll-injector/blob/main/src/main.cpp): `src/main.cpp`

### Process injection

- [Process discovery](https://github.com/yourpovv/dll-injector/blob/main/src/inject.cpp): `src/inject.cpp`
- [DLL injection](https://github.com/yourpovv/dll-injector/blob/main/src/inject.cpp): `src/inject.cpp`

### Console interface

- [Console setup](https://github.com/yourpovv/dll-injector/blob/main/src/console.cpp): `src/console.cpp`
- [Banner display](https://github.com/yourpovv/dll-injector/blob/main/src/banner.cpp): `src/banner.cpp`
- [Console theme](https://github.com/yourpovv/dll-injector/blob/main/include/theme.h): `include/theme.h`

### Configuration and logging

- [Runtime configuration](https://github.com/yourpovv/dll-injector/blob/main/include/config.h): `include/config.h`
- [Logging](https://github.com/yourpovv/dll-injector/blob/main/src/log.cpp): `src/log.cpp`

### Other components

- **User**
- **Windows process APIs**

## Connections

- User → Menu and workflow: starts (evidence: `README.md`)
- Menu and workflow → Console setup: initializes (evidence: `src/main.cpp`)
- Menu and workflow → Banner display: displays (evidence: `src/main.cpp`)
- Menu and workflow → DLL selection: selects DLL (evidence: `src/main.cpp`)
- DLL selection → Target selection and wait: continues with (evidence: `src/main.cpp`)
- Target selection and wait → Process discovery: polls for (evidence: `src/main.cpp`)
- Menu and workflow → DLL injection: invokes (evidence: `src/main.cpp`)
- DLL injection → Windows process APIs: uses process APIs (evidence: `src/inject.cpp`)
- Process discovery → Windows process APIs: enumerates processes (evidence: `src/inject.cpp`)
- Menu and workflow → Runtime configuration: reads settings (evidence: `src/main.cpp`)
- Menu and workflow → Logging: reports status (evidence: `src/main.cpp`)
- DLL injection → Logging: logs diagnostics (evidence: `src/inject.cpp`)
- Banner display → Console setup: reads console width (evidence: `src/banner.cpp`)
- Banner display → Console theme: uses colors (evidence: `src/banner.cpp`)
- Logging → Runtime configuration: checks debug mode (evidence: `src/log.cpp`)
- Logging → Console theme: uses colors (evidence: `src/log.cpp`)
