windows

Extracting Window Contents

I need to extract window content if this is based on text, or at least the file path associated to that window. To-date, I have considered: 1. win32api 2. 3rd party libraries 3. wrapper classes However, I am not satisfied with the solutions. So any ideas how this can be done in a clean way? ...

How to get PCIController info with WMI query?

I am using the following code to get some info about my PCIController try { ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from Win32_PCIController"); foreach (ManagementObject cdrom in searcher.Get()) { Console.WriteLine("PCIController Name: {0}", cdrom.GetProperty...

Mongodb performance on Windows

I've been researching nosql options available for .NET lately and MongoDB is emerging as a clear winner in terms of availability and support, so tonight I decided to give it a go. I downloaded version 1.2.4 (Windows x64 binary) from the mongodb site and ran it with the following options: C:\mongodb\bin>mkdir data C:\mongodb\bin>mongod -...

Window interface instead of console in c.

I have console application in c. I want to convert into window application, kindly guide me so that I can make it possible. ...

Is there any simple way to determine when the popup menu was dismissed?

I'm displaying a popup menu using TrackPopupMenu and would like to know when it is dismissed via clicking outside of it. I've looked through all the menu functions but didn't find anything useful in this regard. Spy++ told me that no window message is sent in this case. So, is there an easy way to do it without installing a mouse hook? ...

Writable file location / Communication AutoPlay Media Studio -> Flash AS3

I have an application built with AutoPlay Media Studio which needs to be able to communicate with an embedded .swf, built in Flash CS3 with AS3. The APMS application needs to send a filename to the embedded flash. I've tried using flashvars but these don't seem to work from the APMS app. I've previously written the info to a text file ...

Working with AfxWnd and AfxFrameOfView windows

Hello! As I know, this windows is MFC windows. How can I work with this windows (set text, get text, scroll and so on) using COM technology and any script language, for example VBS? ...

Detect source of remote desktop connection

This question tells me how to detect a remote desktop session. Do anybody know if it's possible to find out from where the remote connection was initialized? -Vegar ...

Hide the Linux Hidden files in windows

Hello, Is it possible to hide the Linux hidden files (.* files ) in Windows. Does explicitly hiding the files by changing the file properties in windows have any effect in Linux.. ?? Thanks Kiran ...

How to host WCF in Windows Services or NT services??

Hi, Is any Idea how can we host WCF service to windows service???? ...

Calling Windows commands (e.g. del) from a GNU makefile

It does not appear to be possible to call Windows system commands (e.g. del, move, etc) using GNU Make. I'm trying to create a makefile that doesn't rely on the user having extra tools (e.g. rm.exe from Cygwin) installed. When the following rule is run, an error is reported del: command not found: clean: del *.o This is presumably...

R from C -- Simplest Possible Helloworld...

What is the simplest possible C function for starting the R interpreter, passing in a small expression (eg, 2+2), and getting out the result? I'm trying to compile with MingW on Windows. ...

How to prevent Windows from caching Com Class info?

Windows 7 is caching some of the COM class information. Older OSs didn't do this. After the OS looks up the HKCU\Software\Classes\CLSID{GUID}\LocalServer32 value, it caches the value, and doesn't look it up again. When we update our software, we place the new updates in a different directory, and then update the HKCU\Software\Classes\CL...

Temporarily impersonate and enable privileges?

We maintain a DLL that does a lot of system-related things; traversing the file system, registry, etc. The callers of this DLL may or may not be using impersonation. In order to better support all possible scenarios I'm trying to modify it to be smarter. I'll use the example of deleting a file. Currently we just call DeleteFile(), an...

R looking for the wrong java version

Hi, I installed/uninstalled java jre/jdk now many times and finally installed the older version 1.6.0_17 which is now located at "C:\Program Files\Java\jre6\bin". Now after all if I call 'java -version' within R i can see that R is looking for Java at the old path which is now wrong. The question is: Why is R looking for Java at the wro...

Why is Available Physical Memory (dwAvailPhys) > Available Virtual Memory (dwAvailVirtual) in call GlobalMemoryStatus on Windows Vista x64

I am playing with an MSDN sample to do memory stress testing (see: http://msdn.microsoft.com/en-us/magazine/cc163613.aspx) and an extension of that tool that specifically eats physical memory (see http://www.donationcoder.com/Forums/bb/index.php?topic=14895.0;prev_next=next). I am obviously confused though on the differences between Vir...

Bitmap manipulation in C++ on Windows

Hi, I have myself a handle to a bitmap, in C++, on Windows: HBITMAP hBitmap; On this image I want to do some Image Recognition, pattern analysis, that sort of thing. In my studies at University, I have done this in Matlab, it is quite easy to get at the individual pixels based on their position, but I have no idea how to do this in C...

How expensive is CreateThread()?

I'm just wondering exactly what factors affect how quickly createthread executes, and how long it has to live to make it "worth it". CONTEXT: Where in my game's loops should I spawn threads? ...

Are Extended ASCII characters safe for filenames & folders?

My C# project saves files and creates folders with the extended ASCII character "²" (superscript 2). Is this safe to work with internationally? Is this something that could cause any issues with the .NET libraries or Windows functions? ...

Compiling C code in Windows XP

I have C code that was compiled on Windows NT with Microsoft Visual Studio 6.0. I am migrating this code to a new machine using Windows XP. What IDE is suitable for this? I don't think MS Visual 6.0 has been designed for XP... Can I just use Visual Studio C++ to compile C code and keep the same functionality? ...