Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
add v2xadv32 (advapi32)
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jun 2, 2024
1 parent e08b27f commit 5409738
Show file tree
Hide file tree
Showing 14 changed files with 1,205 additions and 30 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ Testing
.ninja*
*.ninja
RosBE-Logs
a.*
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
##############################################################################

# CMake minimum version
cmake_minimum_required(VERSION 2.4)
cmake_minimum_required(VERSION 3.6)

# project name and languages
project(vista2xp C CXX)
Expand Down Expand Up @@ -134,4 +134,10 @@ target_link_libraries(v2xcrt user32)
set_target_properties(v2xcrt PROPERTIES PREFIX "")
set_target_properties(v2xcrt PROPERTIES OUTPUT_NAME "v2xcrt")

# v2xadv32.dll
add_library(v2xadv32 SHARED v2xadv32/v2xadv32.c v2xadv32/v2xadv32.def)
target_link_libraries(v2xadv32 kernel32 advapi32)
set_target_properties(v2xadv32 PROPERTIES PREFIX "")
set_target_properties(v2xadv32 PROPERTIES OUTPUT_NAME "v2xadv32")

##############################################################################
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ It modifies the IAT (Import Address Table) of EXE/DLL files.
- If any Vista+ `ole32` functions, importing of `ole32.dll` will be altered to `v2xol.dll`.
- If any Vista+ `shell32` functions, importing of `shell32.dll` will be altered to `v2xsh32.dll`.
- If any Vista+ `msvcrt` functions, importing of `msvcrt.dll` will be altered to `v2xcrt.dll`.
- If any Vista+ `advapi32` functions, importing of `advapi32.dll` will be altered to `v2xadv32.dll`.

You can check the IAT by `dumpbin /imports` of Visual Studio Command Prompt.

Expand Down Expand Up @@ -63,7 +64,8 @@ You can check the IAT by `dumpbin /imports` of Visual Studio Command Prompt.
- 2022.01.23 ver.0.8.1
- Supported GetThreadUILanguage/SetThreadUILanguage.
- Improved v2xctl32 ordinal exports.
- 2024.XX.YY ver.0.8.2
- 2024.06.02 ver.0.8.2
- Added v2xadv32 (advapi32).

## How to build?

Expand Down
4 changes: 3 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ It modifies the IAT (Import Address Table) of EXE/DLL files.
- If any Vista+ ole32 functions, importing of ole32.dll will be altered to v2xol.dll.
- If any Vista+ shell32 functions, importing of shell32.dll will be altered to v2xsh32.dll.
- If any Vista+ msvcrt functions, importing of msvcrt.dll will be altered to v2xcrt.dll.
- If any Vista+ advapi32 functions, importing of advapi32.dll will be altered to v2xadv32.dll.

You can check the IAT by dumpbin /imports of Visual Studio Command Prompt.

Expand Down Expand Up @@ -63,7 +64,8 @@ You can check the IAT by dumpbin /imports of Visual Studio Command Prompt.
- 2022.01.23 ver.0.8.1
- Supported GetThreadUILanguage/SetThreadUILanguage.
- Improved v2xctl32 ordinal exports.
- 2024.XX.YY ver.0.8.2
- 2024.06.02 ver.0.8.2
- Added v2xadv32 (advapi32).

## WARNING!

Expand Down
4 changes: 3 additions & 1 deletion READMEJP.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- Vista以降の ole32 関数があれば、ole32.dll のインポートは v2xol.dll に変わります。
- Vista以降の shell32 関数があれば、shell32.dll のインポートは v2xsh32.dll に変わります。
- Vista以降の msvcrt 関数があれば、msvcrt.dll のインポートは v2xcrt.dll に変わります。
- Vista以降の advapi32 関数があれば、advapi32.dll のインポートは v2xadv32.dll に変わります。

Visual Studio コマンドプロンプトの dumpbin /imports で IAT をチェックできます。

Expand Down Expand Up @@ -65,7 +66,8 @@ Visual Studio コマンドプロンプトの dumpbin /imports で IAT をチェ
- 2022.01.23 ver.0.8.1
- GetThreadUILanguage/SetThreadUILanguageをサポート。
- v2xctl32 序数エクスポートを改良。
- 2024.XX.YY ver.0.8.2
- 2024.06.02 ver.0.8.2
- v2xadv32 (advapi32) を追加。

## 警告

Expand Down
1 change: 1 addition & 0 deletions installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Source: "build\v2xu32.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\v2xol.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\v2xsh32.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\v2xcrt.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\v2xadv32.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down
5 changes: 5 additions & 0 deletions supported.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ msvcrt.memmove_s
msvcrt.memcpy_s
msvcrt.__CxxFrameHandler3
msvcrt._except_handler4_common
advapi32.RegDeleteTreeA
advapi32.RegDeleteTreeW
advapi32.RegSetKeyValueW
advapi32.RegLoadMUIStringW
advapi32.RegLoadMUIStringA
Loading

0 comments on commit 5409738

Please sign in to comment.