Initial
This commit is contained in:
52
remoteps/smk
Normal file
52
remoteps/smk
Normal file
@@ -0,0 +1,52 @@
|
||||
Comparing files remoteps.cpp and E:remoteps.cPP
|
||||
FC: no differences encountered
|
||||
|
||||
Comparing files StdAfx.cpp and E:StdAfx.cPP
|
||||
FC: no differences encountered
|
||||
|
||||
Comparing files RemoteProcess.hpp and E:RemoteProcess.hPP
|
||||
FC: no differences encountered
|
||||
|
||||
Comparing files RemoteProcess.cpp and E:RemoteProcess.cPP
|
||||
***** RemoteProcess.cpp
|
||||
|
||||
// HWND hDesktopWindow(::GetDesktopWindow());
|
||||
HWND hDesktopWindow(::GetForegroundWindow());
|
||||
if(!hDesktopWindow){::MessageBox(::GetFocus(),(LPSTR)"GetDesktopWindow()",(LPSTR)"FAIL",MB_ICONSTOP);return ComResult::
|
||||
ail;}
|
||||
pureBitmap.windowBitmap(hDesktopWindow);
|
||||
if(!pureBitmap.isOkay()){::MessageBox(::GetFocus(),(LPSTR)"PureBitmap",(LPSTR)"FAIL",MB_ICONSTOP);return ComResult::Fai
|
||||
;}
|
||||
pureBitmap.getBitmapBits(bitmapBytes,BitmapInfo::Bit24,true);
|
||||
|
||||
|
||||
int windowWidth(320);
|
||||
int windowHeight(200);
|
||||
HWND hWnd=::CreateWindow("BUTTON","",WS_VISIBLE|WS_POPUP|WS_BORDER,CW_USEDEFAULT,CW_USEDEFAULT,windowWidth,windowHeight,(HWND
|
||||
hDesktopWindow,(HMENU)0,::GetModuleHandle(0),0);
|
||||
if(!hWnd)return 0;
|
||||
|
||||
::ShowWindow(hWnd,SW_SHOW);
|
||||
::UpdateWindow(hWnd);
|
||||
PureDevice displayDevice(hWnd);
|
||||
PureDevice compatibleDevice;
|
||||
compatibleDevice.compatibleDevice(displayDevice);
|
||||
compatibleDevice.select(pureBitmap,true);
|
||||
displayDevice.stretchBlt(Rect(0,0,windowWidth,windowHeight),compatibleDevice,Rect(0,0,pureBitmap.width(),pureBitmap.hei
|
||||
ht()));
|
||||
|
||||
|
||||
::Sleep(2000);
|
||||
::DestroyWindow(hWnd);
|
||||
|
||||
|
||||
|
||||
arrayBound.elements(bitmapBytes.size()+(sizeof(DWORD)*5));
|
||||
***** E:RemoteProcess.cPP
|
||||
|
||||
pureBitmap.windowBitmap(::GetDesktopWindow());
|
||||
if(!pureBitmap.isOkay())return ComResult::Fail;
|
||||
pureBitmap.getBitmapBits(bitmapBytes,BitmapInfo::Bit24,true);
|
||||
arrayBound.elements(bitmapBytes.size()+(sizeof(DWORD)*5));
|
||||
*****
|
||||
|
||||
Reference in New Issue
Block a user