return MultiByteToWideChar(CP_UTF8, 0, src, -1, dst, size + 1);\r
}\r
\r
-static BOOL IsDirExist(const char *Fmt, ...)\r
+BOOL IsDirExist(const char *Fmt, ...)\r
{\r
va_list Arg; \r
DWORD Attr;\r
return FALSE;\r
}\r
\r
-static BOOL IsFileExist(const char *Fmt, ...)\r
+BOOL IsFileExist(const char *Fmt, ...)\r
{\r
va_list Arg;\r
HANDLE hFile;\r
HKEY hKey = NULL;\r
HKEY hSubKey = NULL;\r
LSTATUS Status;\r
- DWORD dwValue;\r
+ DWORD dwValue = 1;\r
DWORD dwSize;\r
\r
Log("Windows11Bypass for <%s> %C: Check:%u NRO:%u", isofile, MntLetter, Check, NRO);\r
\r
Status += RegSetValueExA(hSubKey, "BypassNRO", 0, REG_DWORD, (LPBYTE)&dwValue, sizeof(DWORD));\r
Log("Create BypassNRO registry %s %u", (Status == ERROR_SUCCESS) ? "SUCCESS" : "FAILED", Status);\r
+\r
+ SetupMonNroStart(isofile);\r
}\r
\r
\r
unsigned char *out, int *in_used,\r
void(*error)(char *x));\r
\r
+void Log(const char* Fmt, ...);\r
+int SetupMonNroStart(const char* isopath);\r
+BOOL IsFileExist(const char* Fmt, ...);\r
+BOOL IsDirExist(const char* Fmt, ...);\r
\r
#endif\r
<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>