Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MSHTA] Implement MSHTA.exe (#577) CORE-12813
Implement mshta.exe. It links directly to the function RunHTMLApplication in mshtml and passes the file name and other optional arguments along. While the function is unimplemented in mshtml, it's a start. [MSHTML] Add ADD_IMPORTLIB to CMakeLists so mshta can link to mshtml. [BOOTDATA] Add the association information for mshta.exe to the registry.
- Loading branch information
1 parent
1d39805
commit 76a73b4
Showing
7 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
add_executable(mshta main.c mshta.rc) | ||
target_link_libraries(mshta) | ||
set_module_type(mshta win32gui) | ||
add_importlibs(mshta msvcrt mshtml kernel32 ntdll) | ||
add_cd_file(TARGET mshta DESTINATION reactos/system32 FOR all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* PROJECT: ReactOS HTML Application Host | ||
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) | ||
* PURPOSE: Forwards HTA application information to mshtml | ||
* COPYRIGHT: Copyright 2017-2018 Jared Smudde(computerwhiz02@hotmail.com) | ||
*/ | ||
|
||
#include <windef.h> | ||
#include <winbase.h> | ||
#include <winuser.h> | ||
#include <mshtml.h> | ||
|
||
extern DWORD WINAPI RunHTMLApplication(HINSTANCE hinst, HINSTANCE hPrevInst, LPSTR szCmdLine, int nCmdShow); | ||
|
||
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow) | ||
{ | ||
return RunHTMLApplication(hInst, hPrevInst, cmdline, cmdshow); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS HTML Application Host" | ||
#define REACTOS_STR_INTERNAL_NAME "mshta" | ||
#define REACTOS_STR_ORIGINAL_FILENAME "mshta.exe" | ||
|
||
#include <reactos/version.rc> | ||
|
||
1 ICON "mshta.ico" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters