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
47e1553d
Commit
47e1553d
authored
Jan 06, 2023
by
longpanda
Browse files
Optimization for VTOY_WIN11_BYPASS_NRO option process.
parent
686ed110
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
3 deletions
+13
-3
INSTALL/ventoy/vtoyjump32.exe
INSTALL/ventoy/vtoyjump32.exe
+0
-0
INSTALL/ventoy/vtoyjump64.exe
INSTALL/ventoy/vtoyjump64.exe
+0
-0
vtoyjump/vtoyjump/vtoyjump.c
vtoyjump/vtoyjump/vtoyjump.c
+5
-3
vtoyjump/vtoyjump/vtoyjump.h
vtoyjump/vtoyjump/vtoyjump.h
+4
-0
vtoyjump/vtoyjump/vtoyjump.vcxproj
vtoyjump/vtoyjump/vtoyjump.vcxproj
+1
-0
vtoyjump/vtoyjump/vtoyjump.vcxproj.filters
vtoyjump/vtoyjump/vtoyjump.vcxproj.filters
+3
-0
No files found.
INSTALL/ventoy/vtoyjump32.exe
View file @
47e1553d
No preview for this file type
INSTALL/ventoy/vtoyjump64.exe
View file @
47e1553d
No preview for this file type
vtoyjump/vtoyjump/vtoyjump.c
View file @
47e1553d
...
...
@@ -492,7 +492,7 @@ static int Utf8ToUtf16(const char* src, WCHAR * dst)
return
MultiByteToWideChar
(
CP_UTF8
,
0
,
src
,
-
1
,
dst
,
size
+
1
);
}
static
BOOL
IsDirExist
(
const
char
*
Fmt
,
...)
BOOL
IsDirExist
(
const
char
*
Fmt
,
...)
{
va_list
Arg
;
DWORD
Attr
;
...
...
@@ -524,7 +524,7 @@ static BOOL IsDirExist(const char *Fmt, ...)
return
FALSE
;
}
static
BOOL
IsFileExist
(
const
char
*
Fmt
,
...)
BOOL
IsFileExist
(
const
char
*
Fmt
,
...)
{
va_list
Arg
;
HANDLE
hFile
;
...
...
@@ -2204,7 +2204,7 @@ static int Windows11Bypass(const char *isofile, const char MntLetter, UINT8 Chec
HKEY
hKey
=
NULL
;
HKEY
hSubKey
=
NULL
;
LSTATUS
Status
;
DWORD
dwValue
;
DWORD
dwValue
=
1
;
DWORD
dwSize
;
Log
(
"Windows11Bypass for <%s> %C: Check:%u NRO:%u"
,
isofile
,
MntLetter
,
Check
,
NRO
);
...
...
@@ -2260,6 +2260,8 @@ static int Windows11Bypass(const char *isofile, const char MntLetter, UINT8 Chec
Status
+=
RegSetValueExA
(
hSubKey
,
"BypassNRO"
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
dwValue
,
sizeof
(
DWORD
));
Log
(
"Create BypassNRO registry %s %u"
,
(
Status
==
ERROR_SUCCESS
)
?
"SUCCESS"
:
"FAILED"
,
Status
);
SetupMonNroStart
(
isofile
);
}
...
...
vtoyjump/vtoyjump/vtoyjump.h
View file @
47e1553d
...
...
@@ -195,5 +195,9 @@ int unxz(unsigned char *in, int in_size,
unsigned
char
*
out
,
int
*
in_used
,
void
(
*
error
)(
char
*
x
));
void
Log
(
const
char
*
Fmt
,
...);
int
SetupMonNroStart
(
const
char
*
isopath
);
BOOL
IsFileExist
(
const
char
*
Fmt
,
...);
BOOL
IsDirExist
(
const
char
*
Fmt
,
...);
#endif
vtoyjump/vtoyjump/vtoyjump.vcxproj
View file @
47e1553d
...
...
@@ -168,6 +168,7 @@
<ClCompile
Include=
"fat_io_lib\fat_string.c"
/>
<ClCompile
Include=
"fat_io_lib\fat_table.c"
/>
<ClCompile
Include=
"fat_io_lib\fat_write.c"
/>
<ClCompile
Include=
"setupmon.c"
/>
<ClCompile
Include=
"vtoyjump.c"
/>
<ClCompile
Include=
"xz-embedded-20130513\linux\lib\decompress_unxz.c"
/>
</ItemGroup>
...
...
vtoyjump/vtoyjump/vtoyjump.vcxproj.filters
View file @
47e1553d
...
...
@@ -45,6 +45,9 @@
<ClCompile
Include=
"xz-embedded-20130513\linux\lib\decompress_unxz.c"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"setupmon.c"
>
<Filter>
源文件
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"vtoyjump.h"
>
...
...
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