I want to essentially write my own profiler which attaches to my process, freezes execution, inspects the state (current instruction pointer, some metadata, etc..) and write this information to a log. How do I get started with this? If I can get in and inspect this information and then resume execution, I can proceed from there.
...
HI guys,
using EMR_EXTTEXTOUTA record, how can I use this to convert or retrieve and ASCII text string?
i'm basically just going over this:
ENHMETARECORD * pEmfr ;
pEmfr = (ENHMETARECORD *) malloc (pEmfRecord->nSize) ;
CopyMemory (pEmfr, pEmfRecord, pEmfRecord->nSize) ;
if(pEmfr->iType==108)
I'm kinda lost atm on how to get the "...
In Windows 7:
Start notepad.
Type some text.
Save file => for file name, specify the text => Hello?
Press enter or click Save. Nothing happens. No error dialog. Simply, the "Save dialog" stays open.
What gives?
...
Would like to know how to install/remove Java quick start service from command line.
...
Mac OS X determines what area to scroll by the mouse position. Windows does this by what application is active.
So I thought anyway. If Notepad++ is the active application in Windows, I can scroll underlying applications by placing the mouse pointer on them. But this seems like the only application with this behaviour. Windows Explorer ...
I have a modal dialog I'm creating with MFC. When it appears, the Aero theme does it's fade-in transition for a new window appearing. In my particular case I'm switching immediately from one dialog to another and the fade effect is distracting. Is there a way it can be disabled so the window immediately appears, like it does when Aero...
I am trying to verify whether a particular user exists on the local computer. The one solution that I can do is parsing the output of command Net user . But is there any better solution than this?
...
I'm writing a compiler project which will produce assembly code as the target language. However, there are some small changes that need to be accounted for depending on the operating system, and I'm not sure how to check for the OS. In case it matters, I am concerned with only 32bit. I've seen in some source code something like
#ifdef W...
The problem exists at 017D0B5F call eax :
017D0B56 mov esi,esp
017D0B58 mov edx,dword ptr [ebp-20h]
017D0B5B push edx
017D0B5C mov eax,dword ptr [ecx+8]
017D0B5F call eax
017D0B61 cmp esi,esp
017D0B63 call @ILT+2525(__RTC_CheckEsp) (17C49E2h)
017D0B68 cmp ...
Now my problem requires a .lib and I've grabbed all the source for that library,how can I replace the .lib dependance with its source code so that I can trace directly in source level instead of disassembly?
...
Hello.
I Delphi, I need a function which determinates if the system menu (resp. window menu, the menu that appears when the icon is clicked) is opened. The reason is that I am writing a anti-keylogger functionality which sends garbage to the current active editcontrol (this also prevents keylogger which read WinAPI messages to read the ...
Hi,
What we are getting if someone says "my machine is 64-bit computer" . What is the difference between 64-bit computer(I mean the CPU architecture) and operating system(WINDOWS 64 bit OS).
Please explain me how these terms are related with processor architecture
Thx
...
I have a great problem with this porting
building usual sdl is simple
http://www.libsdl.org/extras/win32/mingw32/README.txt
zlib libjpeg libpng giflib libtiff
installing was hard but i did
then SDL_image install was simple
I took my sources from simple lerning project
make clean && make
g++ compile good
at the linking stage hid very...
I need to run a process with the SYSTEM account.
Starting from Administrator, which is the best way to elevate to the SYSTEM account?
It should work for Windows XP and later.
...
All works good if I insert sdl-config output manually.
How to fix this bug?
g++ -O3 -c 'sdl-config --cflags' test.cpp
g++.exe: sdl-config --cflags: no such dile or directory
...
Hello.
Can you please tell me HOW the following symbols are declared in Windows.pas for newer Delphi versions?
LONG_PTR = ?
WNDPROC = ?
I want that my code is compatible with Delphi 2006 and I do not just want to write "Integer" or "Pointer", instead the "correct" and official declaration.
Can you please also tell me in which Delph...
I want to enable/disable the Windows sticky keys feature from a program. Is there a way to do it by calling a command line script or using vbscript or similar?
...
– ping www.google.com –t
I have created a shortcut on desktop and typed this command as it's "Target " ..Now when I double click it, cmd window opens for a sec and vanishes..how do I make it run in the background until this process is manually ended ? The shortcut name's "Ping" and I don't see no Process named "Ping" in the task manage...
Compiling the source code for Fossil on Windows XP SP3, along with OpenSSL v1.0.0a for HTTPS support, results in a 2618KB EXE file. I am using GCC v4.5.1 from nuwen.net's MinGW distro. If I run "strip -s fossil.exe" the size goes down to 2177KB.
What's odd is if I compile the same Fossil source on a Windows 7 box, I get a 2397KB EXE fil...
Hi, i know little about pipes but have used one to connect two processes in my code in visual C++. The pipe is working well, but I need to add error handling to the same, hence wanted to know what will happen to a pipe if the server creating it crashed and how do I recognize it from client process?
Also what will happen if the client pr...