mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.5-RC1
This commit is contained in:
@ -56,12 +56,15 @@ bool KexLinkage::Prepare()
|
||||
"kexGetModuleSettings");
|
||||
m_kexSetModuleSettings = (kexSetModuleSettings_t) GetProcAddress(hKernelEx,
|
||||
"kexSetModuleSettings");
|
||||
m_kexResetModuleSettings = (kexResetModuleSettings_t) GetProcAddress(hKernelEx,
|
||||
"kexResetModuleSettings");
|
||||
m_kexGetKEXVersion = (kexGetKEXVersion_t) GetProcAddress(hKernelEx,
|
||||
"kexGetKEXVersion");
|
||||
m_kexIsDebugCore = (kexIsDebugCore_t) GetProcAddress(hKernelEx,
|
||||
"kexIsDebugCore");
|
||||
|
||||
if (!m_kexGetModuleSettings || !m_kexSetModuleSettings
|
||||
|| !m_kexResetModuleSettings
|
||||
|| !m_kexGetKEXVersion || !m_kexIsDebugCore)
|
||||
return false;
|
||||
|
||||
|
@ -36,6 +36,7 @@ class KexLinkage
|
||||
char* conf_name, DWORD* mod_flags);
|
||||
typedef void (*kexSetModuleSettings_t)(const char* module,
|
||||
const char* conf_name, DWORD mod_flags);
|
||||
typedef void (*kexResetModuleSettings_t)(const char* module);
|
||||
typedef unsigned long (*kexGetKEXVersion_t)(void);
|
||||
typedef int (*kexIsDebugCore_t)(void);
|
||||
|
||||
@ -57,6 +58,7 @@ public:
|
||||
bool disable_extensions;
|
||||
kexGetModuleSettings_t m_kexGetModuleSettings;
|
||||
kexSetModuleSettings_t m_kexSetModuleSettings;
|
||||
kexResetModuleSettings_t m_kexResetModuleSettings;
|
||||
kexGetKEXVersion_t m_kexGetKEXVersion;
|
||||
kexIsDebugCore_t m_kexIsDebugCore;
|
||||
|
||||
|
@ -2,12 +2,15 @@
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by sheet.rc
|
||||
//
|
||||
#define TIP_DISABLE 1
|
||||
#define TIP_COMPAT 2
|
||||
#define TIP_SYSTEM 3
|
||||
#define TIP_NOINHERIT 4
|
||||
#define TIP_OVERRIDE 5
|
||||
#define TIP_LOG 6
|
||||
#define TIP_DEFAULT 1
|
||||
#define TIP_DISABLE 2
|
||||
#define TIP_COMPAT 3
|
||||
#define TIP_SYSTEM 4
|
||||
#define TIP_NOINHERIT 5
|
||||
#define TIP_OVERRIDE 6
|
||||
#define TIP_LOG 7
|
||||
#define IDS_ENABLED 8
|
||||
#define IDS_DISABLED 9
|
||||
#define IDD_PROPPAGE 102
|
||||
#define IDC_CHECK 1000
|
||||
#define IDC_COMPAT 1000
|
||||
@ -22,6 +25,7 @@
|
||||
#define IDC_GADVAN 1010
|
||||
#define IDC_CHECK1 1011
|
||||
#define IDC_OVERRIDE 1011
|
||||
#define IDC_DEFAULT 1012
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
@ -29,7 +33,7 @@
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1012
|
||||
#define _APS_NEXT_CONTROL_VALUE 1013
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
@ -81,36 +81,18 @@ STDAPI DllRegisterServer()
|
||||
RegCloseKey(keyCLSID);
|
||||
}
|
||||
|
||||
if (RegCreateKey(HKEY_CLASSES_ROOT, "exefile\\shellex\\PropertySheetHandlers",
|
||||
if (RegCreateKey(HKEY_CLASSES_ROOT, "*\\shellex\\PropertySheetHandlers",
|
||||
&hkey) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
if (RegCreateKey(hkey, sCLSID_KexShlExt, &hkey2) != ERROR_SUCCESS)
|
||||
if (RegCreateKey(hkey, "KernelEx", &hkey2) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
RegSetValueEx(hkey2, NULL, 0, REG_SZ, (LPBYTE)"", sizeof(""));
|
||||
RegCloseKey(hkey2);
|
||||
}
|
||||
|
||||
RegCloseKey(hkey);
|
||||
}
|
||||
|
||||
if (RegCreateKey(HKEY_CLASSES_ROOT, "lnkfile\\shellex\\PropertySheetHandlers",
|
||||
&hkey) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
if (RegCreateKey(hkey, sCLSID_KexShlExt, &hkey2) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
RegSetValueEx(hkey2, NULL, 0, REG_SZ, (LPBYTE)"", sizeof(""));
|
||||
RegSetValueEx(hkey2, NULL, 0, REG_SZ, (LPBYTE)sCLSID_KexShlExt, sizeof(sCLSID_KexShlExt));
|
||||
RegCloseKey(hkey2);
|
||||
}
|
||||
|
||||
@ -145,26 +127,16 @@ STDAPI DllUnregisterServer()
|
||||
RegCloseKey(keyCLSID);
|
||||
}
|
||||
|
||||
if (RegOpenKey(HKEY_CLASSES_ROOT, "exefile\\shellex\\PropertySheetHandlers",
|
||||
if (RegOpenKey(HKEY_CLASSES_ROOT, "*\\shellex\\PropertySheetHandlers",
|
||||
&hkey) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
RegDeleteKey(hkey, sCLSID_KexShlExt);
|
||||
RegDeleteKey(hkey, "KernelEx");
|
||||
RegCloseKey(hkey);
|
||||
}
|
||||
|
||||
if (RegOpenKey(HKEY_CLASSES_ROOT, "lnkfile\\shellex\\PropertySheetHandlers",
|
||||
&hkey) != ERROR_SUCCESS)
|
||||
result = false;
|
||||
|
||||
if (result)
|
||||
{
|
||||
RegDeleteKey(hkey, sCLSID_KexShlExt);
|
||||
RegCloseKey(hkey);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
118
sheet/sheet.cpp
118
sheet/sheet.cpp
@ -20,15 +20,17 @@
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
#include <shlwapi.h>
|
||||
#include "sheet.h"
|
||||
#include "server.h"
|
||||
#include "resource.h"
|
||||
#include "KexLinkage.h"
|
||||
|
||||
extern "C" int snprintf(char*, size_t, const char*, ...);
|
||||
|
||||
struct CTips
|
||||
{
|
||||
char* _TIP_DEFAULT;
|
||||
char* _TIP_DISABLE;
|
||||
char* _TIP_COMPAT;
|
||||
char* _TIP_SYSTEM;
|
||||
@ -38,8 +40,8 @@ struct CTips
|
||||
|
||||
CTips()
|
||||
{
|
||||
_TIP_DISABLE = _TIP_COMPAT = _TIP_SYSTEM = _TIP_NOINHERIT
|
||||
= _TIP_OVERRIDE = _TIP_LOG = NULL;
|
||||
_TIP_DEFAULT = _TIP_DISABLE = _TIP_COMPAT = _TIP_SYSTEM
|
||||
= _TIP_NOINHERIT = _TIP_OVERRIDE = _TIP_LOG = NULL;
|
||||
loaded = false;
|
||||
}
|
||||
|
||||
@ -47,6 +49,7 @@ struct CTips
|
||||
{
|
||||
if (loaded)
|
||||
{
|
||||
free(_TIP_DEFAULT);
|
||||
free(_TIP_DISABLE);
|
||||
free(_TIP_COMPAT);
|
||||
free(_TIP_SYSTEM);
|
||||
@ -61,6 +64,7 @@ struct CTips
|
||||
if (loaded)
|
||||
return;
|
||||
loaded = true;
|
||||
_TIP_DEFAULT = load_string(TIP_DEFAULT);
|
||||
_TIP_DISABLE = load_string(TIP_DISABLE);
|
||||
_TIP_COMPAT = load_string(TIP_COMPAT);
|
||||
_TIP_SYSTEM = load_string(TIP_SYSTEM);
|
||||
@ -136,23 +140,24 @@ bool KexShlExt::IsPEModule(const char* path)
|
||||
{
|
||||
IMAGE_DOS_HEADER MZh;
|
||||
IMAGE_NT_HEADERS PEh;
|
||||
FILE* f;
|
||||
HANDLE f;
|
||||
bool result = false;
|
||||
DWORD bytes_read;
|
||||
|
||||
f = fopen(path, "rb");
|
||||
if (!f)
|
||||
f = CreateFile(path, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
|
||||
if (f == INVALID_HANDLE_VALUE)
|
||||
return false;
|
||||
|
||||
if (fread(&MZh, sizeof(MZh), 1, f) != 1)
|
||||
if (!ReadFile(f, &MZh, sizeof(MZh), &bytes_read, NULL) || bytes_read != sizeof(MZh))
|
||||
goto __end;
|
||||
|
||||
|
||||
if (MZh.e_magic != IMAGE_DOS_SIGNATURE)
|
||||
goto __end;
|
||||
|
||||
if (fseek(f, MZh.e_lfanew, SEEK_SET))
|
||||
if (SetFilePointer(f, MZh.e_lfanew, NULL, FILE_BEGIN) == 0xffffffff)
|
||||
goto __end;
|
||||
|
||||
if (fread(&PEh, sizeof(PEh), 1, f) != 1)
|
||||
if (!ReadFile(f, &PEh, sizeof(PEh), &bytes_read, NULL) || bytes_read != sizeof(PEh))
|
||||
goto __end;
|
||||
|
||||
if ((PEh.Signature != IMAGE_NT_SIGNATURE)
|
||||
@ -163,8 +168,8 @@ bool KexShlExt::IsPEModule(const char* path)
|
||||
result = true;
|
||||
|
||||
__end:
|
||||
fclose(f);
|
||||
|
||||
CloseHandle(f);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -364,27 +369,28 @@ BOOL CALLBACK KexShlExt::DlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
{
|
||||
switch (LOWORD(wParam))
|
||||
{
|
||||
case IDC_DEFAULT:
|
||||
if (!IsDlgButtonChecked(hwnd, IDC_DEFAULT)) break;
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_OVERRIDE), FALSE);
|
||||
PropSheet_Changed(GetParent(hwnd), hwnd);
|
||||
break;
|
||||
case IDC_DISABLE:
|
||||
if (IsDlgButtonChecked(hwnd, IDC_DISABLE))
|
||||
{
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_COMPAT), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_COMPAT), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM),
|
||||
IsDlgButtonChecked(hwnd, IDC_COMPAT));
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), TRUE);
|
||||
}
|
||||
if (!IsDlgButtonChecked(hwnd, IDC_DISABLE)) break;
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_OVERRIDE), TRUE);
|
||||
PropSheet_Changed(GetParent(hwnd), hwnd);
|
||||
break;
|
||||
case IDC_COMPAT:
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM),
|
||||
IsDlgButtonChecked(hwnd, IDC_COMPAT));
|
||||
if (!IsDlgButtonChecked(hwnd, IDC_COMPAT)) break;
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), TRUE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_OVERRIDE), TRUE);
|
||||
PropSheet_Changed(GetParent(hwnd), hwnd);
|
||||
break;
|
||||
case IDC_SYSTEM:
|
||||
@ -428,15 +434,19 @@ void KexShlExt::OnInitDialog(HWND hwnd, ModuleSetting* ms)
|
||||
SendMessage(GetDlgItem(hwnd, IDC_SYSTEM), CB_SETCURSEL, i, 0);
|
||||
break;
|
||||
}
|
||||
if (!(ms->flags & KRF_VALID_FLAG) && (KexLinkage::instance.disable_extensions || !default_index_valid))
|
||||
ms->flags |= KRF_KEX_DISABLE;
|
||||
if (ms->flags & KRF_KEX_DISABLE)
|
||||
if (!(ms->flags & KRF_VALID_FLAG))
|
||||
{
|
||||
CheckDlgButton(hwnd, IDC_DISABLE, BST_CHECKED);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_COMPAT), FALSE);
|
||||
CheckDlgButton(hwnd, IDC_DEFAULT, BST_CHECKED);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_NOINHERIT), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_OVERRIDE), FALSE);
|
||||
}
|
||||
if (ms->flags & KRF_KEX_DISABLE)
|
||||
{
|
||||
CheckDlgButton(hwnd, IDC_DISABLE, BST_CHECKED);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_SYSTEM), FALSE);
|
||||
EnableWindow(GetDlgItem(hwnd, IDC_LOG), FALSE);
|
||||
}
|
||||
if (ms->flags & KRF_LOG_APIS)
|
||||
CheckDlgButton(hwnd, IDC_LOG, BST_CHECKED);
|
||||
@ -445,13 +455,31 @@ void KexShlExt::OnInitDialog(HWND hwnd, ModuleSetting* ms)
|
||||
if (ms->flags & KRF_OVERRIDE_PROC_MOD)
|
||||
CheckDlgButton(hwnd, IDC_OVERRIDE, BST_CHECKED);
|
||||
|
||||
//set KernelEx version
|
||||
unsigned long ver = KexLinkage::instance.m_kexGetKEXVersion();
|
||||
{
|
||||
//show what are the default compatibility settings
|
||||
char bufi[512];
|
||||
char bufo[512];
|
||||
char bufs[512];
|
||||
|
||||
SendMessage(GetDlgItem(hwnd, IDC_DEFAULT), WM_GETTEXT,
|
||||
(WPARAM) sizeof(bufi), (LPARAM) bufi);
|
||||
LoadString(g_hModule, KexLinkage::instance.disable_extensions ?
|
||||
IDS_DISABLED : IDS_ENABLED, bufs, sizeof(bufs));
|
||||
snprintf(bufo, sizeof(bufo), bufi, bufs);
|
||||
SendMessage(GetDlgItem(hwnd, IDC_DEFAULT), WM_SETTEXT,
|
||||
(WPARAM) 0, (LPARAM) bufo);
|
||||
}
|
||||
|
||||
|
||||
int debug = KexLinkage::instance.m_kexIsDebugCore();
|
||||
char ver_s[32];
|
||||
sprintf(ver_s, "KernelEx Core v%d.%d.%d %s",
|
||||
ver>>24, (ver>>16) & 0xff, ver & 0xffff, debug ? "DEBUG" : "");
|
||||
SendMessage(GetDlgItem(hwnd, IDC_KEXVER), WM_SETTEXT, 0, (LPARAM) ver_s);
|
||||
{
|
||||
//set KernelEx version
|
||||
unsigned long ver = KexLinkage::instance.m_kexGetKEXVersion();
|
||||
char ver_s[32];
|
||||
snprintf(ver_s, sizeof(ver_s), "KernelEx Core v%d.%d.%d %s",
|
||||
ver>>24, (ver>>16) & 0xff, ver & 0xffff, debug ? "DEBUG" : "");
|
||||
SendMessage(GetDlgItem(hwnd, IDC_KEXVER), WM_SETTEXT, 0, (LPARAM) ver_s);
|
||||
}
|
||||
|
||||
ShowWindow(GetDlgItem(hwnd, IDC_OVERRIDE), debug ? SW_SHOW : SW_HIDE);
|
||||
ShowWindow(GetDlgItem(hwnd, IDC_LOG), debug ? SW_SHOW : SW_HIDE);
|
||||
@ -467,6 +495,7 @@ void KexShlExt::OnInitDialog(HWND hwnd, ModuleSetting* ms)
|
||||
tips.load_tips();
|
||||
|
||||
HWND hwndTip = CreateTooltipWindow(hwnd);
|
||||
CreateTooltip(hwndTip, hwnd, IDC_DEFAULT, tips._TIP_DEFAULT);
|
||||
CreateTooltip(hwndTip, hwnd, IDC_DISABLE, tips._TIP_DISABLE);
|
||||
CreateTooltip(hwndTip, hwnd, IDC_COMPAT, tips._TIP_COMPAT);
|
||||
CreateTooltip(hwndTip, hwnd, IDC_SYSTEM, tips._TIP_SYSTEM);
|
||||
@ -481,6 +510,8 @@ void KexShlExt::OnApply(HWND hwnd)
|
||||
ModuleSetting* ms = (ModuleSetting*) GetWindowLong(hwnd, GWL_USERDATA);
|
||||
DWORD flags = 0;
|
||||
const char* conf = "";
|
||||
if (!IsDlgButtonChecked(hwnd, IDC_DEFAULT))
|
||||
flags |= KRF_VALID_FLAG;
|
||||
if (IsDlgButtonChecked(hwnd, IDC_DISABLE))
|
||||
flags |= KRF_KEX_DISABLE;
|
||||
if (IsDlgButtonChecked(hwnd, IDC_COMPAT))
|
||||
@ -494,7 +525,12 @@ void KexShlExt::OnApply(HWND hwnd)
|
||||
flags |= KRF_OVERRIDE_PROC_MOD;
|
||||
|
||||
if (flags != ms->flags || strcmp(conf, ms->conf) != 0)
|
||||
KexLinkage::instance.m_kexSetModuleSettings(ms->file, conf, flags);
|
||||
{
|
||||
if (flags & KRF_VALID_FLAG)
|
||||
KexLinkage::instance.m_kexSetModuleSettings(ms->file, conf, flags);
|
||||
else
|
||||
KexLinkage::instance.m_kexResetModuleSettings(ms->file);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ RSC=rc.exe
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /O2 /I "../common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /GF /c
|
||||
# ADD CPP /nologo /W3 /O2 /I "../common" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /GF /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x415 /d "NDEBUG"
|
||||
@ -53,7 +53,7 @@ BSC32=bscmake.exe
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib shlwapi.lib ole32.lib /nologo /dll /machine:I386 /OPT:NOWIN98
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib shlwapi.lib ole32.lib uuid.lib ..\kexcrt\kexcrt.lib libc.lib /nologo /dll /map /machine:I386 /nodefaultlib /OPT:NOWIN98
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ELSEIF "$(CFG)" == "sheet - Win32 Debug"
|
||||
@ -70,7 +70,7 @@ LINK32=link.exe
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MD /W3 /Gm /ZI /Od /I "../common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /GZ /GF /c
|
||||
# ADD CPP /nologo /ML /W3 /Gm /ZI /Od /I "../common" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHEET_EXPORTS" /YX /FD /GZ /GF /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x415 /d "_DEBUG"
|
||||
@ -80,7 +80,7 @@ BSC32=bscmake.exe
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib shlwapi.lib ole32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /OPT:NOWIN98
|
||||
# ADD LINK32 kernel32.lib user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib shlwapi.lib ole32.lib uuid.lib ..\kexcrt\kexcrt.lib libc.lib /nologo /dll /map /debug /machine:I386 /nodefaultlib /pdbtype:sept /OPT:NOWIN98
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ENDIF
|
||||
|
@ -54,8 +54,8 @@ END
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,4
|
||||
PRODUCTVERSION 1,0,0,4
|
||||
FILEVERSION 1,0,0,5
|
||||
PRODUCTVERSION 1,0,0,5
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@ -80,7 +80,7 @@ BEGIN
|
||||
VALUE "OriginalFilename", "sheet.dll\0"
|
||||
VALUE "PrivateBuild", "\0"
|
||||
VALUE "ProductName", "KernelEx\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 4\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 5\0"
|
||||
VALUE "SpecialBuild", "\0"
|
||||
END
|
||||
END
|
||||
@ -110,31 +110,34 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_PROPPAGE DIALOG DISCARDABLE 0, 0, 190, 177
|
||||
IDD_PROPPAGE DIALOG DISCARDABLE 0, 0, 232, 191
|
||||
STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
|
||||
CAPTION "Compatibility"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
GROUPBOX "Compatibility options",IDC_GCOMPAT,7,30,176,64
|
||||
GROUPBOX "Basic options",IDC_GCOMPAT,7,30,218,78
|
||||
CONTROL "Use default compatibility options [%s]",IDC_DEFAULT,
|
||||
"Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,15,
|
||||
43,208,10
|
||||
CONTROL "Disable KernelEx extensions",IDC_DISABLE,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,15,43,165,10
|
||||
BS_AUTORADIOBUTTON | WS_TABSTOP,15,57,208,10
|
||||
CONTROL "Use specific compatibility mode:",IDC_COMPAT,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,15,57,164,10
|
||||
COMBOBOX IDC_SYSTEM,15,70,157,60,CBS_DROPDOWNLIST | WS_DISABLED |
|
||||
BS_AUTORADIOBUTTON | WS_TABSTOP,15,71,208,10
|
||||
COMBOBOX IDC_SYSTEM,15,84,157,60,CBS_DROPDOWNLIST | WS_DISABLED |
|
||||
WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "kexver here",IDC_KEXVER,7,161,71,9,WS_DISABLED
|
||||
LTEXT "Try changing compatibility options if you have problems\nwith running this program.",
|
||||
IDC_TCOMPAT,7,7,175,22
|
||||
CONTROL "",IDC_HORIZ1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,160,
|
||||
176,1
|
||||
GROUPBOX "Advanced options",IDC_GADVAN,7,100,176,57
|
||||
LTEXT "kexver here",IDC_KEXVER,7,175,71,9,WS_DISABLED
|
||||
LTEXT "Try changing compatibility options if you have problems\nrunning the program.",
|
||||
IDC_TCOMPAT,7,7,218,22
|
||||
CONTROL "",IDC_HORIZ1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,174,
|
||||
218,1
|
||||
GROUPBOX "Advanced options",IDC_GADVAN,7,114,218,57
|
||||
CONTROL "Don't use these settings in child processes",
|
||||
IDC_NOINHERIT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,
|
||||
113,164,10
|
||||
127,208,10
|
||||
CONTROL "Override settings of invidual modules",IDC_OVERRIDE,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,127,164,10
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,141,208,10
|
||||
CONTROL "Enable api logging",IDC_LOG,"Button",BS_AUTOCHECKBOX |
|
||||
NOT WS_VISIBLE | WS_TABSTOP,15,141,164,10
|
||||
NOT WS_VISIBLE | WS_TABSTOP,15,155,208,10
|
||||
END
|
||||
|
||||
|
||||
@ -149,9 +152,9 @@ BEGIN
|
||||
IDD_PROPPAGE, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 183
|
||||
RIGHTMARGIN, 225
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 170
|
||||
BOTTOMMARGIN, 184
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
@ -164,12 +167,15 @@ END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
TIP_DISABLE "Use this option to run this program as if KernelEx wasn't installed."
|
||||
TIP_COMPAT "Changes operating system identification and emulates different operating system behavior. Choose operating system which is required to run this program."
|
||||
TIP_SYSTEM "Select operating system to emulate from the list."
|
||||
TIP_DEFAULT "Use default settings for this module as specified during installation (brackets). This option allows overriding by main executable or parent process executable settings."
|
||||
TIP_DISABLE "Select this option to execute module as if KernelEx wasn't installed."
|
||||
TIP_COMPAT "Choose desired compatibility mode as required by the application. This option allows changing operating system identification and emulation of different operating system behavior."
|
||||
TIP_SYSTEM "Select desired compatibility mode from the list."
|
||||
TIP_NOINHERIT "Disables inheritance of these settings. Normally programs started by this application use settings from this tab as their default settings. Use this option to disable such behaviour."
|
||||
TIP_OVERRIDE "Disables usage of per module settings. Use this option to use same settings for all modules in the application."
|
||||
TIP_LOG "Use this option to enable api spying debugging feature."
|
||||
IDS_ENABLED "KernelEx is enabled"
|
||||
IDS_DISABLED "KernelEx is disabled"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
|
Reference in New Issue
Block a user