I understand that the answer to this question may depend on registry settings and on the version of Windows, and perhaps on the amount of RAM if there is not enough memory. For the sake of this question, assume that the server has plenty of RAM (3+ GiB).
If an application (3rd party application in this case) leaks handles at a few hund...
How do you discover which process has an open handle on a file? Specifically, how do you do this programmaticly?
...
Hi All,
Can anyone tell me how can i retrieve data on my web service written in .NET.
I have posted my data through XML HTTP Request.
Data has successfully posted as it returns readyState as 4.
But i dont know how to access the data on the service so that i can do manipulation on that data.
Thanks
...
I have an ActiveX control (an OCX file) which raises an event. I want to catch that event in C#. How do I go about doing it?
I can catch the control's event in JavaScript, here is the code for that
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body >
<script ...
I want to change the transparency of a PyGame window. I don't nessicarly need to do this from PyGame as I already have an Python extension called wm_ext which controls the window which PyGame creates (it also initalizes PyGame).
So, with this extension, I've got the window handle, I just need to know how to change the window transparen...
A module can be unloaded, so how can I tell for sure if it is still in memory? I have a handle to it, obtained from GetModuleHandle. When I tried calling GetHandleInformation on it I see error 0xc0000008 - "An invalid HANDLE was specified." This happened before it could have been unloaded.
...
I'm creating a game engine using wxWidgets and OpenGL. I'm trying to set up a timer so the game can be updated regularly. I don't want to use wxTimer, because it's probably not accurate enough for what I need. I'm using a while (true) and a wxStopWatch:
while (true) {
stopWatch.Start();
<handle events> // I need a function for this
g...
I've obtained the handle to a processes Main Window and would like to force that
window to full screen. I'm programming in c#.Net with .Net framework V2.0 SP1
...
I have an application that IMPLICITLY opens a handle on a dll/file. At some point in the application, I want to release this handle. How can I do it? My application is in C#.
...
If I show a MessageBox as modal of a window on another process, it works just fine as long as my program remains responding. If it is closed or terminated while the MessageBox is showing the windows that received the MessageBox will be locked (but still responding) and it will have to be finalized via Task Manager.
Here is a sample code...
Hi,
i am trying to set transparency of all windows. I have following code.
public partial class Form1 : Form
{
[DllImport("user32.dll")]
static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
[DllImport("user32.dll")]
static extern int GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("user32.dl...
Hi, can someone tell me how i can capture a running process in c# using the process class if i already know the handle?
Id rather not have not have to enumerate the getrunning processes method either. pInvoke is ok if possible.
...
can someone tell me how to get the handle of a windows console app in c#? in a winForm app i would normally try this.handle..
...
Hi im trying to get a processID out of a process handle using the WINAPI 'GetProcessID' but i am getting the following error...
Unable to find an entry point named 'GetProcessID' in DLL 'kernel32.dll'.
Checking MSDN i cant see where i have gone wrong..
...
Hi, im using the following method
[DllImport("kernel32.dll", SetLastError=true)]
static extern int GetProcessId(IntPtr hWnd);
to try and get the processId for a running process and the only information I have is the HWND. My problem is that it is always returning error code 6 which is ERROR_INVALID_HANDLE. I thought i might...
I'm trying to mock a method that has the equivalent of the following signature:
- (NSDictionary *) uploadValues:(BOOL)doSomething error:(NSError **)error
I want it to return a small dictionary so that my test can make sure the code uses the dictionary properly. however, no matter what i do OCMock always returns nil from the method, r...
My application running on a Windows server makes use of a Jet/Access database. For some reasons around every two weeks that database file gets locked by the System process (PID 4, seems to be fixed)
After some googling I found some other users having their files locked by that special process, but different files (of course).
What's t...
I have been told that a handle is sort of a pointer, but not, and that it allows you to keep a reference to an object, rather than the object itself. Some further clarification would be lovely though, thank you!
...
i'm trying to use jquery to implement a portlet/widget style interface, with 3 columns and drag and drop within and between them. it's working almost completely, except for the following little bug. the portlets have a header, h2, that i've set as the handle in my sortable options. in firefox and chrome, this is working exactly as exp...
My C# application is using a third party executable which runs on a separate System.Diagnostic.Process and sends Windows messages to frmMain. I need to run that process in a loop on a separate thread and I am having a problem with passing Windows handle to the thread. Is what I am trying to do possible at all and if it is possible how to...