handle

How to make a program not show up in Alt-Tab or on the taskbar.

I have a program that needs to sit in the background and when a user connects to a RDP session it will do some stuff then launch a program. when the program is closed it will do some housekeeping and logoff the session. The current way I am doing it is like this I have the terminal server launch this application. I have it set as a wind...

Change default Console I/O functions handle.

Hello. Is it possible to somehow change standart I/O functions handle on Windows? Language preffered is C++. If I understand it right, by selecting console project, compiler just pre-allocate console for you, and operates all standart I/O functions to work with its handle. So, what I want to do is to let one Console app actually write in...

Want to bind an input field to a jquery-ui slider handle

hello, I want to bind an input field to the jquery-ui slider handle. So whenever one value changes I want the other value to also change. Ex: if someone types 1000 into the minimum value input field I want the lower slider handle to move to the 1000 mark. Also if the user drags the lower slider handle to 1000 the input field should r...

C# - Possible to use IOCTL

I'm trying to code for a Point Of Sale system which allows for a "Cash Drawer" attachment. Code is provided in the manual for opening the cash drawer (in C++ using IOCTL). Since I am coding in C# .NET, is it possible to perform something similar from within C# or will I have to write some unmanaged code? Am I able to get a handle to "...

NativeWindow WndProc not receiving messages

Could someone shed some light on why my WndProc method as implemented below isn't receiving any messages? If I put this class below in a WinForms application and pass in that application's handle, WndProc receives messages as I would expect. However, using the IntPtr returned from GetForegroundWindow() as I have below doesn't yield the s...

Send xml from ActionScript to PHP

Hi, I have values inside an XMLList in Actionscript. Need to send these values to the DB and update it. My actionscript code is as follows: public static function saveUserPermList():void { var ht:HTTPService = new HTTPService(); ht.url = Config.getServerURL(); ht.method = URLRequestMethod.POST; //ht.resu...

Make jQuery-ui draggable handle cover entire page

What would be the best way to make an element draggable when clicking anywhere in the window? Would I have to use a container <div> that covers the whole window? I tried making the body draggable but that didn't work. The problem with using a container <div> is that it moves and therefore doesn't cover the whole of the screen any more...

Get handle from "Oracle Developer Forums Runtime" appications...

Dear all... I want to get textbox handle from "Oracle Developer Forums Runtime" appications to read it's text with VB.NET or C# But cannot!!!! Please help... ...

What is the magic behind perl read() function and buffer which is not a ref ?

I do not get to understand how the Perl read($buf) function is able to modify the content of the $buf variable. $buf is not a reference, so the parameter is given by copy (from my c/c++ knowledge). So how come the $buf variable is modified in the caller ? Is it a tie variable or something ? The C documentation about setbuf is also quit...

How to get PIDs that are using given file name in C#?

How to get PIDs of processes that are using a given file name and mutex name? (Not by custom kernel driver, but in C# in user mode.) UPDATE: Thanks to Daniel Renshaw I found a script that lists all handles with PIDs. (Using a not undocumented and unfrozen functions.) ...

How to find that Mutex in C# is acquired?

How can I find from mutex handle in C# that a mutex is acquired? When mutex.WaitOne(timeout) timeouts, it returns false. However, how can I find that from the mutex handle? (Maybe using p/invoke.) UPDATE: public class InterProcessLock : IDisposable { readonly Mutex mutex; public bool IsAcquired { get; private set; } publ...

How to get the Handle that is executed in winexec or shellexecute?

i use to create a custom function like winexec(...):Hwnd that will retun the handle of executed application. i did use the findwindow() but having problem if it change window caption. ...

Properly changing Ajax MultiHandle Slider parameters on postbacks

Hi all, In VS2010 I have VB.NET codebehind aspx pages and I'm using Ajax multihandleslider extensions to filter search results on numerical values. Fistly, the multihandle sliders don't display in the designer... I have to remove the slider targets tag: In order to make it display in the designer... this isn't so much a big is...

How to get the handle of a MainMenu object in Compact Framework

Using the compact framework (ie managed code), how can I get the handle to a MainMenu object? (P/Invoking is fine) ...

How to send function keypress (F1..F12) to a console app in .NET

Hello everybody! I am writing a windowed .NET app in C#, which runs a third party console application via the Process class, as hidden as possible (CreateNoWindow, RedirectStandardOutput, etc.). I've redirected it's StandardInput, so I can write whatever string I want, but not function keys or other type of special keys, as they don't ...

Handle Keyboard Done pressed event on Iphone

Hello, I am moving my view when a text field is pressed in order to get proper view when keyboard appears. Now, when DONE key is presses I would like to return view to its initial state but, how to handle an action when done key is pressed?? Thanks ...

How to draw on given bitmap handle (C++ / Win32)?

I'm writing an unmanaged Win32 C++ function that gets a handle to a bitmap, and I need to draw on it. My problem is that to draw I need to get a device context, but when I do GetDC (NULL), it gives me a device context for the WINDOW! The parameter for GetDC () is a window handle (HWND), but I don't have a window; just a bitmap handle. ...

File handle leak on dynamically loaded DLL caused by activation context

I have a dynamically loaded & unloaded DLL which requires COMCTL32.dll >= v6.0 and MSVCR >= v9.0. To ensure that the correct versions are loaded, I enable manifest file generation in Visual Studio project setting, and add this entry to another manifest file: <dependency> <dependentAssembly> <assemblyIdentity type...

Forcing the creation of a WPF Window's native Win32 handle

I need to access the Win32 window handles of some of my WPF windows so I can handle Win32 activation messages. I know I can use PresentationSource.FromVisual or WindowInteropHelper to get the Win32 window handle, but I am running into problems if the WPF window has not been created yet. If I use PresentationSource.FromVisual and the wi...

Process closing

Hello, can I use Popen from python subprocess to close started process? For example, from popen I run some application. In some part of my code I have to close that ran app. For example, from console in Linux I do: ./some_bin ... It works and logs stdout here ... Ctrl + C and it breaks I need something like Ctrl + C but in my program ...