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:
0
auxiliary/auxiliary.dsp
Normal file → Executable file
0
auxiliary/auxiliary.dsp
Normal file → Executable file
0
auxiliary/makefile
Normal file → Executable file
0
auxiliary/makefile
Normal file → Executable file
0
auxiliary/makefile.msv
Normal file → Executable file
0
auxiliary/makefile.msv
Normal file → Executable file
0
auxiliary/msimg32/makefile
Normal file → Executable file
0
auxiliary/msimg32/makefile
Normal file → Executable file
0
auxiliary/msimg32/makefile.msv
Normal file → Executable file
0
auxiliary/msimg32/makefile.msv
Normal file → Executable file
19
auxiliary/msimg32/msimg32.c
Normal file → Executable file
19
auxiliary/msimg32/msimg32.c
Normal file → Executable file
@ -30,13 +30,6 @@
|
||||
bInfo.bmiHeader.biHeight = cy; \
|
||||
bInfo.bmiHeader.biPlanes = 1; \
|
||||
bInfo.bmiHeader.biBitCount = 32;
|
||||
|
||||
typedef struct tagRGBALPHA {
|
||||
byte rgbRed;
|
||||
byte rgbGreen;
|
||||
byte rgbBlue;
|
||||
byte rgbReserved;
|
||||
} RGBALPHA,*PRGBALPHA;
|
||||
|
||||
#ifndef GRADIENT_FILL_RECT_H
|
||||
#define GRADIENT_FILL_RECT_H 0x00
|
||||
@ -70,16 +63,17 @@ BOOL WINAPI AlphaBlend_NEW( HDC hdcDest, // handle to destination DC
|
||||
BITMAPINFO bmi;
|
||||
HBITMAP srcBM, dstBM, dcBM;
|
||||
HDC srcDC, dstDC;
|
||||
PRGBALPHA srcPixel, dstPixel;
|
||||
RGBQUAD *srcPixel, *dstPixel;
|
||||
INITBITMAPINFO(bmi,nWidthDest,nHeightDest);
|
||||
|
||||
if ( !hdcDest || !hdcSrc || blendFunction.BlendOp != AC_SRC_OVER )
|
||||
if ( !hdcDest || !hdcSrc || blendFunction.BlendOp != AC_SRC_OVER
|
||||
|| nWidthDest < 0 || nHeightDest < 0 || nWidthSrc < 0 || nHeightSrc < 0)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
if ( !blendFunction.SourceConstantAlpha ) return TRUE; //nothing to do
|
||||
if ( !blendFunction.AlphaFormat && blendFunction.SourceConstantAlpha == 0xFF ) //no alpha work
|
||||
if ( !(blendFunction.AlphaFormat & AC_SRC_ALPHA) && blendFunction.SourceConstantAlpha == 0xFF ) //no alpha work
|
||||
return StretchBlt(hdcDest, nXOriginDest, nYOriginDest, nWidthDest, nHeightDest, hdcSrc, nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc, SRCCOPY );
|
||||
|
||||
srcBM = CreateDIBSection(hdcSrc, &bmi, DIB_RGB_COLORS, (void*)&srcPixel, NULL, 0);
|
||||
@ -102,7 +96,7 @@ BOOL WINAPI AlphaBlend_NEW( HDC hdcDest, // handle to destination DC
|
||||
dcBM = SelectObject(dstDC, dstBM);
|
||||
BitBlt(dstDC, 0, 0, nWidthDest, nHeightDest, hdcDest, nXOriginDest, nYOriginDest, SRCCOPY);
|
||||
//workwork
|
||||
if ( !blendFunction.AlphaFormat ) //no alpha channel
|
||||
if ( !(blendFunction.AlphaFormat & AC_SRC_ALPHA) ) //no alpha channel
|
||||
{
|
||||
srcalpha = blendFunction.SourceConstantAlpha;
|
||||
dstalpha = 255 - srcalpha;
|
||||
@ -122,8 +116,7 @@ BOOL WINAPI AlphaBlend_NEW( HDC hdcDest, // handle to destination DC
|
||||
srcalpha = blendFunction.SourceConstantAlpha;
|
||||
for (i = 0; i < (nWidthDest*nHeightDest); i++)
|
||||
{
|
||||
|
||||
dstalpha = 255 - srcPixel->rgbReserved;
|
||||
dstalpha = 255 - (srcPixel->rgbReserved * srcalpha / 255);
|
||||
tmp = ((srcPixel->rgbRed * srcalpha) + (dstPixel->rgbRed * dstalpha)) / 255;
|
||||
if (tmp > 255) tmp = 255;
|
||||
dstPixel->rgbRed = tmp;
|
||||
|
0
auxiliary/msimg32/msimg32.def
Normal file → Executable file
0
auxiliary/msimg32/msimg32.def
Normal file → Executable file
0
auxiliary/msimg32/msimgme.rc
Normal file → Executable file
0
auxiliary/msimg32/msimgme.rc
Normal file → Executable file
0
auxiliary/pdh/kord.def
Normal file → Executable file
0
auxiliary/pdh/kord.def
Normal file → Executable file
0
auxiliary/pdh/makefile
Normal file → Executable file
0
auxiliary/pdh/makefile
Normal file → Executable file
0
auxiliary/pdh/makefile.msv
Normal file → Executable file
0
auxiliary/pdh/makefile.msv
Normal file → Executable file
0
auxiliary/pdh/pdh.c
Normal file → Executable file
0
auxiliary/pdh/pdh.c
Normal file → Executable file
0
auxiliary/pdh/pdh.def
Normal file → Executable file
0
auxiliary/pdh/pdh.def
Normal file → Executable file
0
auxiliary/psapi/makefile
Normal file → Executable file
0
auxiliary/psapi/makefile
Normal file → Executable file
0
auxiliary/psapi/makefile.msv
Normal file → Executable file
0
auxiliary/psapi/makefile.msv
Normal file → Executable file
6
auxiliary/psapi/psapi.c
Normal file → Executable file
6
auxiliary/psapi/psapi.c
Normal file → Executable file
@ -346,3 +346,9 @@ BOOL WINAPI EnumPageFilesW( PVOID callback, LPVOID context )
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL WINAPI EmptyWorkingSet( HANDLE hProcess )
|
||||
{
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
1
auxiliary/psapi/psapi.def
Normal file → Executable file
1
auxiliary/psapi/psapi.def
Normal file → Executable file
@ -16,3 +16,4 @@ EXPORTS
|
||||
InitializeProcessForWsWatch
|
||||
EnumPageFilesA
|
||||
EnumPageFilesW
|
||||
EmptyWorkingSet
|
||||
|
0
auxiliary/uxtheme/kord.def
Normal file → Executable file
0
auxiliary/uxtheme/kord.def
Normal file → Executable file
0
auxiliary/uxtheme/makefile
Normal file → Executable file
0
auxiliary/uxtheme/makefile
Normal file → Executable file
0
auxiliary/uxtheme/makefile.msv
Normal file → Executable file
0
auxiliary/uxtheme/makefile.msv
Normal file → Executable file
2
auxiliary/uxtheme/uxtheme.c
Normal file → Executable file
2
auxiliary/uxtheme/uxtheme.c
Normal file → Executable file
@ -49,7 +49,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
OSVERSIONINFO osv;
|
||||
osv.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||
GetVersionEx(&osv);
|
||||
if (osv.dwMajorVersion < 5 || osv.dwMinorVersion < 1)
|
||||
if (osv.dwMajorVersion < 5 || (osv.dwMajorVersion == 5 && osv.dwMinorVersion == 0))
|
||||
return FALSE;
|
||||
DisableThreadLibraryCalls(hinstDLL);
|
||||
}
|
||||
|
0
auxiliary/uxtheme/uxtheme.def
Normal file → Executable file
0
auxiliary/uxtheme/uxtheme.def
Normal file → Executable file
0
auxiliary/wtsapi32/makefile
Normal file → Executable file
0
auxiliary/wtsapi32/makefile
Normal file → Executable file
0
auxiliary/wtsapi32/makefile.msv
Normal file → Executable file
0
auxiliary/wtsapi32/makefile.msv
Normal file → Executable file
1
auxiliary/wtsapi32/wtsapi32.c
Normal file → Executable file
1
auxiliary/wtsapi32/wtsapi32.c
Normal file → Executable file
@ -28,6 +28,7 @@
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#pragma warning(disable:4002)
|
||||
#define TRACE()
|
||||
#define FIXME()
|
||||
|
||||
|
0
auxiliary/wtsapi32/wtsapi32.def
Normal file → Executable file
0
auxiliary/wtsapi32/wtsapi32.def
Normal file → Executable file
0
auxiliary/wtsapi32/wtsapi32.h
Normal file → Executable file
0
auxiliary/wtsapi32/wtsapi32.h
Normal file → Executable file
Reference in New Issue
Block a user