1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-RC2

This commit is contained in:
UzixLS
2018-11-03 16:19:29 +03:00
parent d4e0420295
commit 339353cce8
299 changed files with 682 additions and 165 deletions

0
sheet/KexLinkage.cpp Normal file → Executable file
View File

0
sheet/KexLinkage.h Normal file → Executable file
View File

0
sheet/factory.cpp Normal file → Executable file
View File

0
sheet/factory.h Normal file → Executable file
View File

0
sheet/resource.h Normal file → Executable file
View File

0
sheet/server.cpp Normal file → Executable file
View File

0
sheet/server.def Normal file → Executable file
View File

0
sheet/server.h Normal file → Executable file
View File

7
sheet/sheet.cpp Normal file → Executable file
View File

@ -120,11 +120,16 @@ bool KexShlExt::ResolveShortcut(const char* shortcutPath, char* filePath)
char path[MAX_PATH];
WCHAR tmp[MAX_PATH];
CoInitialize(NULL);
result = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
IID_IShellLink, (void**) &shellLink);
if (FAILED(result))
{
CoUninitialize();
return false;
}
result = shellLink->QueryInterface(IID_IPersistFile, (void**) &persistFile);
if (SUCCEEDED(result))
@ -149,6 +154,8 @@ bool KexShlExt::ResolveShortcut(const char* shortcutPath, char* filePath)
shellLink->Release();
CoUninitialize();
return SUCCEEDED(result);
}

0
sheet/sheet.dsp Normal file → Executable file
View File

0
sheet/sheet.h Normal file → Executable file
View File

3
sheet/sheet.rc Normal file → Executable file
View File

@ -123,10 +123,11 @@ BEGIN
CONTROL "Disable KernelEx extensions for this program",
IDC_DISABLE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,43,
165,10
GROUPBOX "",IDC_HORIZ1,7,108,172,9
LTEXT "kexver here",IDC_KEXVER,7,111,71,9,WS_DISABLED
LTEXT "If you have problems with this program, try selecting\na different compatibility mode.",
IDC_TCOMPAT,7,7,175,22
CONTROL "",IDC_HORIZ1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,109,
176,1
END