Is there a API or registry key which I can use from applications (native, Java or .Net) to check if the currently logged on user has configured a default printer?
Update: Many thanks for the answers so far! According to the KB article http://support.microsoft.com/kb/156212, the registry entry (read/write) is only documented up to Window...
I have c project which is written in linux. It runs on linux very well. But now I want to run it on windows. I want to know best and easy ways to run it on windows.
...
I want to take a screenshot of desktop while Windows is locked (with Win+L). Standard methods make a black screen, with code of pixel:
COLORREF color = GetPixel(hdc, x, y);
equal -1. Neither a user mode program nor a service could capture a useful image. Any ideas?
...
I dunno even how to say correct I just know setup file creates registry key for 32bit app in 64 bit registry (not creating in wow64node) and reads it but when i enter it its not running
...
I'm using sass (from haml-edge) for processing css files, and it crashes on absolute paths as parameters:
K:\sass>sass.bat k:/sass/css/*.scss k:/sass/css/*.css --trace
d:/Programs/Ruby/lib/ruby/gems/1.9.1/gems/haml-edge-3.1.62/lib/sass/files.rb:23:in `read': No such file or directory - k
(Errno::ENOENT)
from d:/Programs/Ruby/lib/ru...
Hi Everyone,
http://en.wikipedia.org/wiki/Special_Folders
I am having a problem with accessing a special folder in a fopen stream in php.
Example
$fp = fopen("%USERPROFILE%/Desktop/text.txt", 'wb');
fwrite($fp, $data);
fclose($fp);
I try this with sysinternals process monitor running to try and see what is actually happening and it...
This seems like a really, really simple problem, but I can't figure it out. The culprit appears to be WP7's default style. It changes the background color to white when a button is clicked, then back to the button's default background.
The problem I have is I want to change the button's background when the button is clicked. I can't fin...
Most of the windows SFTP clients (like FileZilla) seem to be GUI-based. I need something I can call from batch files.
...
Wireshark times events down to microseconds and appears to do so with great accuracy. My question is where in the world do those timers come from when running under windows? If the answer is "it uses thus and such library" then my question is "well, where does that library get its timers under windows"?
...
We're trying to get remote debugging working across domains from a windows 7 machine to a windows xp home machine. The machines are VPN'd together using LogMeIn Hamachi.
I've checked over the MSDN guide on getting Remote Debugging set up thoroughly and have gotten past a lot of errors, but I'm constantly running into blocks. I can get...
I've been shopping for dedicated windows server with unlimited sql server space for my new website. Sql server enterprise/work group license is really expensive, I am trying to see if I can use sql server web as license costs around $20 per month. But, I could not find hosting with my requirements. My budget is $100 - $150 per month.
I...
I need to check the status of a RAID array on an Intel controller from my Windows application periodically (or be notified about a status change). Specifically, what I need is to find out whether a RAID 5 array is healthy or one of its disks is missing.
I tried parsing output of raidcfg32 (available from the Intel site, see this readme)...
I use CBT Windows Hook to detect window creation/deletion/min-max/move-size events.
I works well, but I need to filter whose events coming from normal widgets. Practically I need to being notified by CBT hook only for those windows that the user consider windows.
The problem that I'm facing make me mad, since I continuosly get spurious...
When you drag a picture from Firefox to Windows Explorer, Explorer shows Firefox's drag graphic. How does he do it?
Illustration: http://www.youtube.com/watch?v=3rliNPuKh58 (The video capture is not entirely accurate - the mouse cursor is shown as an arrow at all times when it in fact changes between the default drag and drop cursor and...
"ActiveX controls — small program building blocks — can serve to create distributed applications that work over the Internet through web browsers. Examples include customized applications for gathering data, viewing certain kinds of files, and displaying animation." (wikipedia)
is an Object an instance of a Control?
...
So I was playing around with drag and drop. I made a sample application and dropped a file from My Music onto my application. Here's what e.Data.GetFormats() returned:
Shell IDList Array
UsingDefaultDragImage
DragImageBits
DragContext
DragSourceHelperFlags
InShellDragLoop
FileDrop
FileNameW
FileName
IsShowingLayered
DragWindow
IsComput...
Hi,
We need to have our PHP application hosted on a 64 bit Windows OS due to another application's requirement. However, reading a bit more on the topic revealed that the PHP implementation is only for a 32 bit environment on Windows.
From: http://en.wikipedia.org/wiki/PHP
PHP interpreters are available on both
32-bit and 64-bit ...
Whenever we use the command:
dir --> in Windows
and
dir -a --> in Unix
We see 2 kinds of dots:
.
..
Appear in the directories.
Now in APUE by Stephens Rago, it says these are filenames and some books say these are directories.
What are these Dots about anyway?
Please provide an answer w.r.t. Windows as well as Unix if possible....
alo Everyone.
My problem is twofold. I have a WiX Project that I have been working on, and have been tasked to make it perform a program execution regardless of the user pressing cancel, the installation being aborted (via an already existing version) or the user successfully finishing the installation.
I currently use the built-in di...
I decoded the optional header and didn't really know where to go from there. It has an internal name, a version, the company name, lots of info. Where do I go to find it?
...