I'm researching what options I have to access a browser's edit fields from outside. (Accessing the edit fields in an HTML page from an external application.)
I've played around with the Accessibility.IAccessible interface. That allows me to retrieve the plain text, which is great. But I would also like to modify the text in it, and the ...
I have a problem with a socket library that uses WSAASyncSelect to put the socket into asynchronous mode. In asynchronous mode the socket is placed into a non-blocking mode (WSAWOULDBLOCK is returned on any operations that would block) and windows messages are posted to a notification window to inform the application when the socket is ...
In my code, I use QueueUserAPC to interrupt the main thread from his current work in order to invoke some callback first before going back to his previous work.
std::string buffer;
std::tr1::shared_ptr<void> hMainThread;
VOID CALLBACK myCallback (ULONG_PTR dwParam) {
FILE * f = fopen("somefile", "a");
fprintf(f, "CALLBACK WAS IN...
Just getting started with PowerShell. I was running DOS .bat files in my post build events in VS and wanted to graduate up to PowerShell. Bat files were easy...CALL something.bat. I tried to do that with a PowerShell ps1 file and my trial-and-erroring got me to the following (first thing that worked...tried all the simple things first...
What do I need and how can I use threads in C on Windows Vista?
Could you please give me a simple code example?
...
I've been trying to install some PECL extensions on my laptop, but I've ran into a few problems. Whenever I run pecl install whatever from the command line I get a message saying ".\php.exe appears to have a suffix .exe, but config variable php". It seems like PECL is using PEAR to perform installations. I checked and php_suffix is locat...
I am just starting out with Team Foundation Server 2008, and one of the hangups I've experienced is the following:
I create a new Team Project, as well as a Project Portal (which I believe is just a Sharepoint site). When I go to view the project portal in the browser, it prompts me for a username and password. I want it to use diges...
I'm having a problem with the CMFCToolbar class where the positions of the toolbars are not being restored properly between sessions.
Here is a screen shot of how the toolbars are arranged before the app is closed:
Here is a screen shot of how the toolbars are restored when the app is launched again:
Notice the large gap that appe...
I am working on a problem in SNMP extension agent in windows, which is passing traps to snmp.exe via SnmpExtensionTrap callback.
We added a couple of fields to the agent recently, and I am starting to see that some traps are getting lost. When I intercept the call in debugger and reduce the length of some strings, the same traps, that w...
I would like Scintilla to ignore certain key combinations like, Ctrl+Enter or Ctrl+D, and to notify the parent window when they are entered. I read through the documentation and could not figure out how to do this. Is this possible?
...
I'm capturing the PID in a variable which I kill later
IF NOT "%SERVICE_PID%" == 0 taskkill /pid %SERVICE_PID% /t /f
though everytime I do this in a batch file it makes my computer restart because it kills some system process
the service pid should be a user defined service launched from cmd
I dont understand why it keeps making ...
I am writing ruby script which accesses folders on other networked machines (windows). I need to know the environment variables on that machine, how do I do this? Once I get access to the remote environment variables, It will help me know where the software has been installed.
Thanks
N.I
...
Is there any way to protect my Delphi application from being killed by the Windows task manager (or others like Process Explorer)?
I think Windows messages can do that (by doing a hook and intercepting the TerminateProcess message).
I want an example of this protection. The Kaspersky Anti-Virus suites are like this; we can't end their ...
In windows is it possible to know what kind of disk we are dealing with from a c/c++ program? forget about gpt or mbr, how to know whether it is basic or dynamic? Program input can be drive letter or any info related to disk, output should be dynamic or basic.
No need of a direct way of doing, even if it is lengthy process, its okay.
I c...
I have git repository (powered by gitosis) on my local ubuntu server
I want to have an access from the other local computer powered by windows xp (msysgit)
I have generated rsa key on windows machine and published to ubuntu server
I have .ssh/config file setted to use this key on windows machine
When I do
ssh [email protected]
t...
I have an application with one main window. In the window, you click on a button that spawns other windows. I was wondering if anybody knew how to keep these spawned windows within the original window and not let it be able to be dragged out of it?
...
Taking into account that some Windows Installer products from independent vendors (for example IstallShield) are rather expensive we can say that using a setup project in Visual Studio for building Installation packages has some drawbacks. Otherwise why developers should buy something else.
For what reasons developers could use somethin...
I have a Delphi form with a bunch of VCL controls, like TButton and TCheckBox, and an instance of the Scintilla text editor. I want to be able to tab into and out of the text editor but it looks like tabs are handled by the VCL library not Windows.
I stepped though the code and it looks like tabs are handled by the SelectNext and Fin...
What are the pros and cons for embedding manifests?
I know embedding manifests reduces the number of files you need to copy around, but what other effects are there?
...
I have application domain to host untrusted code/assembly. I solved all problems with security with security attributes and it works well. The untrusted code runs on dedicated thread. CLR is 2.0. This is what I have AppDomainShell AppDomainSeed, Shell is running in main domain, seed is trusted proxy/helper in untrusted domain.
I'm inter...