Hi,
I have a pointer (void *) to a function and I want to know which process this function belongs to. I have no idea which way to go about it, but I think it's possible by using some form of VirtualQuery trickery. Any help would be appreciated.
Thanks in advance,
CLARIFICATION: By "belong to process" I mean what process the function ...
Hello folks.
This involves two automated unit tests which each start up a tcp/ip server that creates a non-blocking socket then bind()s and listen()s in a loop on select() for a client that connects and downloads some data.
The catch is that they work perfectly when run separately but when run as a test suite, the second test client w...
According to the MSDN (http://msdn.microsoft.com/en-us/library/aa387314%28v=VS.85%29.aspx) the PFXImportCertStore function imports the cert/key into Base CSP (MS_STRONG_PROV) or Enhanced CSP (MS_ENHANCED_PROV). However, to use RSA/SHA2 signatures, I need to import the key into the Enhanced RSA and AES CSP (MS_ENH_RSA_AES_PROV) and I can'...
I see output like this in my DMP file:
Heap entries for Segment00 in Heap 00150000
00150640: 00640 . 00040 [01] - busy (40)
00150680: 00040 . 01808 [01] - busy (1800)
00151e88: 01808 . 00210 [01] - busy (208)
00152098: 00210 . 00228 [00]
001522c0: 00228 . 00030 [01] - busy (22)
001522f0: 00030 . 00018 [01] - busy...
Sometime back I used a windows tool to see what a process is doing. This tool allowed me to inspect functions exported from DLL. It also allowed me to change the values passed to a function on the fly.
I cannot recollect the name(not sure if that was free or commercial one). Could any one point to me solution that can do this?
(Tools ...
Hi! Could you please help me to figure out how to bring Opera's window to front, using class name?! I use the following procedure to bring other applications to front and it works fine. I need to use only a class name and not window's caption. If I use window caption instead, the procedure works. Here is the procedure:
procedure Switch...
My dream is to make a very good, open source Help desk application for companies to use for free.
My client application will run on every client computer have minimize itself to the task bar. When the user click the icon, it'll open the actual Winform window.
I'm using .NET 3.5; is there a simple way to minimize/maximize from the taskb...
I'm new with cmake,just installed it and following this article:
http://www.cs.swarthmore.edu/~adanner/tips/cmake.php
D:\Works\c\cmake\build>cmake ..
-- Building for: NMake Makefiles
CMake Warning at CMakeLists.txt:2 (project):
To use the NMake generator, cmake must be run from a shell that can use the
compiler cl from the command ...
I'm trying to execute MS-DOS DEL commands inside a Win32 C program, and I already know that system and popen can be used for this. However, the problem is that both require string literals (type const char) for the commands, and I need something like the DOS equivalent of this Perl code (more or less, don't know if it actually works):
m...
Today I've encountered a very good book : UNIX to Linux® Porting: A Comprehensive Reference
By Alfredo Mendoza, Chakarat Skawratananond, Artis Walker
This reminded me of the thing I always wanted to know. "Porting Linux apps to Windows". I mean porting native Linux apps to native Windows with no platforms involved.
If I can find an...
I work mainly on Windows and Windows CE based systems, where CreateFile, ReadFile and WriteFile are the work horses, no matter if I'm in native Win32 land or in managed .Net land.
I have so far never had any obvious problem writing or reading big files in one chunk, as opposed to looping until several smaller chunks are processed. I us...
I have multiple sites configured in IIS7 on my Windows7 development machine to run on the same port and usually only run one at a time depending on what I'm working on. I would like to be able to start and stop my development sites from PowerShell instead of having the IIS manager opened. Does anyone have a good resource to point me in...
I want to know what kind of technologies are used nowadays as underlying screen capture engine for remote administration software like
VNC
pcAnywhere
TeamViewer
RAC Remote
Administrator
etc..
The programming language is not so important as just to know whether a driver needs to be developed which is polling video memory 30 times per...
There is a way to install cURL in windows in order to run cURL commands from the command prompt? Thanks
...
I want to develop an application that runs on any Windows platform (Windows XP, Vista, or Windows 7) but does not require a dependency like the .NET Framework or JVM. I have given the other requirements below:
Runs in any windows platform
Must have GUI libraries to create windows/primitive controls
The output .exe should also be very...
find_package(GTK)
How can I make it output something so that I can know whether it finds something or not?
Platform: windows XP
...
This is the FindGTK.cmake:
# don't even bother under WIN32
IF(UNIX)
...
ENDIF(UNIX)
So it's not intended to work in windows at all,even though I've already installed the gtk+-bundle_2.20.0-20100406_win32 days ago.
How should I properly use gtk with cmake now?
...
Does GetVolumeNameForVolumeMountPoint() return the GUID of a volume in c++?
GetVolumeNameForVolumeMmountPoint()
{
LPCTSTR lpszvolumeMountPoint,
LPTSTR lpszVolumeName,
DWORDcchBufferLength,
}
I mean if I am using a removeable disk. will the lpszVolumeName remained the same on the same computer?
Does it return a certain ID for a certain...
I have to burn a Java application on a CD. This application have to run on every Windows PC wihtout any installation (also JRE shouldn't be installed) before.
...
#include <gtk/gtk.h>
int main( int argc, char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
I tried putting various versions of MSVCR80.dll under the same directory as the generated executable(via cm...