windows

How can I restrict a user to VPN into a production domain, yet not use Windows Terminal Services to any server in that domain?

How can I restrict a user (in the development domain) to allow them to VPN into a domain, yet not use Windows Terminal Services to any server in that domain? I need for them to be able to run a client-side Java application (Quest Spotlight, actually) that will connect using Windows Auth to a single production server and display data comi...

Visual Studio fails to install amd64 OpenMP dlls to WinSXS

I've installed Visual Studio 2008 (and SP1) on a 64-bit copy of Windows 7. When I build and run a 64-bit project it complains that it can't start, and some digging indicates that the 64-bit OpenMP dlls haven't been copied into c:\windows\winsxs. The directories for the 32-bit OpenMP and DebugOpenMP dlls have been created in there correct...

Failing to set COM+ ConstructorString on Win7 - CryptProtectData changes?

UPDATED I'm trying to programmatic-ally set a COM+ component's ConstructorString with a value for later initialization. The code in question works fine on WinXP, Win2k3, Vista and Win2k8. I'm failing on Win7 - Home Premium version. I've determined by trial and error that there seems to be a size limit on the constructor string - if t...

How do I get each comp result ?

I would like to check diffs and when files are not same,stop compare files. Compare any files C:/UML/reports/* and C:/UML/Test/*. In this two directory has same file names and also aim is to want to compare same file by name. I try to that by below code in .bat file. diff.bat @echo off for %%i in (C:\UML\reports\*) do comp %%i C:\UML...

Windows Forms / C#: only one object instance out of many will paint

Here's the problem: I've been working on a little game where monsters bounce off the walls (edges) of the main form, and it's going swimmingly, but it only paints one of each type of monster when it should be iterating through a list of each of them and calling their OnPaint and Move methods: private void Pacmen_Paint(object sender, Pa...

Determining directory equivalence (Windows)

Say I have two directory paths: C:\Shares\Apple\Orange and \\MACHINENAME\Apple\Orange Is there a way to (programmatically) determine if they refer to the same directory? In general, can I determine whether two directory references are equivalent without comparing paths? ...

Why does Java return a date in GMT-4.5 when choosing Co-ordinated Universal Time time zone in Windows?

We have seen a strange issue on some Windows XP machines involving the "Co-ordinated Universal Time" time zone. Not all Windows XP machines seem to have it, but on those that do, the following simple Java program public class TimeTest { public static void main(String[] args) { System.out.println(java.util.TimeZone.getDefault...

Thread behavior on multicore machines

Does the threads of a single process run in parallel on a multi-core machine on windows XP? Is the behavior same on different windows versions (windows server editions) I have heard that only threads of different processes run in parallel. ...

How to debug driver load error?

I've made a driver for Windows, compiled it and tried to start it via SC manager, but I get the system error from the SC manager API: ERROR_PROC_NOT_FOUND The specified procedure could not be found. Is there a way to get more information about why exactly the driver fails to start? WinDbg or something? If I comment out all code in my ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from Win32? A registry setting maybe? Thanks for any insight. Doug ...

Display message in windows dialogue box using "cout" - C++

Can a windows message box be display using the cout syntax? I also need the command prompt window to be suppressed / hidden. There are ways to call the messagebox function and display text through its usage, but the main constraint here is that cout syntax must be used. cout << "message"; I was thinking of invoking the VB msgbox co...

Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service should be used if possible. But still I am not able to understand that if it has powerful access to local resources, how attacker can acce...

Windows Workflow - Is there a way to guarantee only one workflow running?

The workflow is being published as a wcf service, and I need to guarantee that workflows execute sequentially. Is there a way--in code or in the config--to guarantee the runtime doesn't launch two workflows concurrently? ...

Determine VRAM size on windows

I need to determine roughly how much VRAM a system's graphics card has. I know all the reasons why I shouldn't but I do. It doesn't need to be perfect (some cards lie etc.) but I need a ballpark. On mac it's fairly easy through core graphics and IOKit to just politely ask how much VRAM is attached to a display, but I haven't a clue on wi...

What is the clock source for the count returned by QueryPerfomanceCounter

I was under the impression that QueryPerformanceCounter was actually accessing the counter that feeds the HPET (High Performance Event Timer)---the difference of course being that HPET is a timer which send an interrupt when the counter value matches the desired interval whereas to make a timer "out of" QueryPerformanceCounter you have t...

property or method by DISPID

Is it possible to know if a given DISPID (result of GetIDsOfNames) is either a method, a property getter or setter ? ...

How to configure something like phpmyadmin in windows and linux?

When I visit http://domain.name/DIRECTORy,it should go to another DOCUMENT_ROOT. I'm using Apache,how to configure it correct in windows and linux respectively? ...

How do I get colour with Windows command prompt using RSpec in Ruby?

In other o/s RSpec returns nicely coloured results (red, green etc). However in the windows (Vista) command prompt my text output is just plain old boring white. How can I bring colour to my RSpec test results? Thanks Evolve ...

What causes ClickOnce URLDownloadToCacheFile failed during installation?

I'm getting the following error when installing my ClickOnce application via firefox. It doesn't happen with IE on the same computer. I swear I've installed it via firefox before. This is a Windows 7 machine. The following properties have been set: Property: [AdminUser] = true {boolean} Property: [ProcessorArchitecture] = Intel {string}...

Windows SMTP server for email api

Hi, I'm architecting a web service where users can update, for example, a blog by sending an email. What's a good email server for Windows for this? Any other advice / examples appreciated! Thanks, Jason ...