Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
01292939
Commit
01292939
authored
Apr 05, 2022
by
longpanda
Browse files
update
parent
dcc58896
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
92 deletions
+94
-92
Plugson/src/main_windows.c
Plugson/src/main_windows.c
+20
-19
Vlnk/src/main_windows.c
Vlnk/src/main_windows.c
+74
-73
No files found.
Plugson/src/main_windows.c
View file @
01292939
#include <Windows.h>
#
include
<
Windows
.
h
>
#include <Shlobj.h>
#include <Shlobj.h>
#include <tlhelp32.h>
#include <tlhelp32.h>
#include <Psapi.h>
#include <Psapi.h>
...
@@ -44,22 +44,22 @@ typedef enum MSGID
...
@@ -44,22 +44,22 @@ typedef enum MSGID
const
WCHAR
*
g_msg_cn
[
MSGID_BUTT
]
=
const
WCHAR
*
g_msg_cn
[
MSGID_BUTT
]
=
{
{
L"
错误
"
,
L"
错误"
,
L"
提醒
"
,
L"
提醒"
,
L"
请在
Ventoy
盘根目录下运行本程序!(存放ISO文件的位置)
"
,
L"
请在
Ventoy 盘
根目录下运行本程序!(存放ISO文件的位置)"
,
L"
创建
ventoy
目录失败,无法继续!
"
,
L"
创建
ventoy 目
录失败,无法继续!"
,
L"ventoy
目录存在,但是大小写不匹配,请先将其重命名!
"
,
L"ventoy
目录存在,但是大小写不匹配,请先将其重命名!"
,
L"
内部错误,程序即将退出!
"
,
L"
内部错误,程序即将退出!"
,
L"
刷新
"
,
L"
刷新"
,
L"
启动
"
,
L"
启动"
,
L"
停止
"
,
L"
停止"
,
L"
链接
"
,
L"
链接"
,
L"
退出
"
,
L"
退出
"
,
L"
停止运行后浏览器页面将会关闭,是否继续?
"
,
L"
停止运行后浏览器页面将会关闭,是否继续?"
,
L"
当前服务正在运行,是否退出?
"
,
L"
当前服务正在运行,是否退出?"
,
L"
请先关闭正在运行的
VentoyPlugson
程序!
"
,
L"
请先关闭正在运行的 Ven
toyPlugson 程序!"
,
L"ventoy
\\
plugson.tar.xz
文件不存在,请在正确的目录下运行!
"
,
L"ventoy
\\
plugson.tar.xz
文件不存在,请在正确的目录下运行!"
,
};
};
const
WCHAR
*
g_msg_en
[
MSGID_BUTT
]
=
const
WCHAR
*
g_msg_en
[
MSGID_BUTT
]
=
{
{
...
@@ -468,6 +468,7 @@ static int ParseCmdLine(LPSTR lpCmdLine, char *ip, char *port)
...
@@ -468,6 +468,7 @@ static int ParseCmdLine(LPSTR lpCmdLine, char *ip, char *port)
//
//
//copy from Rufus
//copy from Rufus
//Copyright © 2011-2021 Pete Batard <pete@akeo.ie>
//
//
#include <delayimp.h>
#include <delayimp.h>
// For delay-loaded DLLs, use LOAD_LIBRARY_SEARCH_SYSTEM32 to avoid DLL search order hijacking.
// For delay-loaded DLLs, use LOAD_LIBRARY_SEARCH_SYSTEM32 to avoid DLL search order hijacking.
...
...
Vlnk/src/main_windows.c
View file @
01292939
#include <Windows.h>
#
include
<
Windows
.
h
>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
...
@@ -45,24 +45,24 @@ typedef enum MSGID
...
@@ -45,24 +45,24 @@ typedef enum MSGID
const
WCHAR
*
g_msg_cn
[
MSGID_BUTT
]
=
const
WCHAR
*
g_msg_cn
[
MSGID_BUTT
]
=
{
{
L"
错误
"
,
L"
错误"
,
L"
提醒
"
,
L"
提醒"
,
L"
创建
"
,
L"
创建"
,
L"
解析
"
,
L"
解析"
,
L"
指定的文件不存在
"
,
L"
指定的文件不存在"
,
L"
不支持为此文件创建v
lnk"
,
L"
不支持为此文件创建vlnk"
,
L"
不支持的文件系统
"
,
L"
不支持的文件系统"
,
L"
不支持的文件后缀名
"
,
L"
不支持的文件后缀名"
,
L"
获取磁盘信息时发生错误
"
,
L"
获取磁盘信息时发生错误"
,
L"Vlnk
文件创建成功。
"
,
L"Vlnk
文件创建成功。"
,
L"
请先关闭正在运行的
VentoyVlnk
程序!
"
,
L"
请先关闭正在运行的 Ven
toyVlnk 程序!"
,
L"
创建文件失败
"
,
L"
创建文件失败"
,
L"
此文件已经是一个vlnk文件了!
"
,
L"
此文件已经是一个vlnk文件了!"
,
L"
非法的vlnk文件
!"
,
L"
非法的vlnk文件!"
,
L"
此
vlnk
文件指向
"
,
L"
此
vlnk
文件指向 "
,
L"
此
vlnk
指向的文件不存在!
"
,
L"
此
vlnk
指向的文件不存在!"
,
L"
文件路径太长!
"
,
L"
文件路径太长!"
,
L"
非法的vlnk文件后缀名
!"
,
L"
非法的vlnk文件后缀名!"
,
};
};
const
WCHAR
*
g_msg_en
[
MSGID_BUTT
]
=
const
WCHAR
*
g_msg_en
[
MSGID_BUTT
]
=
{
{
...
@@ -834,6 +834,7 @@ static int ParseCmdLine(LPSTR lpCmdLine)
...
@@ -834,6 +834,7 @@ static int ParseCmdLine(LPSTR lpCmdLine)
//
//
//copy from Rufus
//copy from Rufus
//Copyright © 2011-2021 Pete Batard <pete@akeo.ie>
//
//
#include <delayimp.h>
#include <delayimp.h>
// For delay-loaded DLLs, use LOAD_LIBRARY_SEARCH_SYSTEM32 to avoid DLL search order hijacking.
// For delay-loaded DLLs, use LOAD_LIBRARY_SEARCH_SYSTEM32 to avoid DLL search order hijacking.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment