windows

Why does Loader Snaps not work when attaching to a process?

When I configure GFlags to show loader snaps on an image MYEXE.exe and run the executable from windbg I get loader snaps output in the debug window. But when I use windbg to attach to the process already running I do not, even though I enabled loader snaps before the process was started. How can I get loader snaps to work when attachin...

How do I place my app window in a certain position in the desktop window hierarchy on Windows using win32 api?

I want my application window to be in a certain spot in the window hierarchy. That is, say I have 3 windows on my desktop. At the very bottom I have Word, the window on top of word is explorer, and the active foreground window is itunes. I want to place my application window on top of word but beneath explorer. How can I achieve this wit...

SQLCMD, when called from Powershell, returns ExitCode == 1, even if successful

Hi everyone. I have a Powershell script that calls sqlcmd to run a sql script that backs up a database: function RunSqlScriptWithErrorMessage { param([string]$sqlServer, [string]$sqlUserName, [string]$sqlPassword, [string]$scriptName, [string]$errorMessage) $commandName = "sqlcmd" $startInfo = New-Object Diagnostics.Proces...

Does PySVN need Subversion installed?

I have python script that uses pysvn and checks out or updates a local copy obtained also from a local repo. client.checkout(url, path, revision=pysvn.Revision(pysvn.opt_revision_kind.number, RevNumber), ignore_externals=False) I am running this on a windows machine in which I haven't installed subversion. The svnsync used to obtain ...

Unicode setlocale and strftime fails at windows

I have one page and it's encoding is UTF-8 and If i try to run that code in unix system everythings looks fine but when i try to run in windows(7) some chracters looks question mark(�). How can run the code fine both of two system(without using iconv). header('Content-Type: text/html; charset=UTF-8'); setlocale(LC_ALL, 'turkish'); echo ...

Cloning a repository results in a timeout

I upgraded my OS to Windows 7 and installed mercurial, but I can't seem to be able to clone any remote repository. Windows Firewall is disabled and I don't have a third-party firewall. I even tried to launch the command prompt as administrator. No matter what I do, I always get this Operation timed out error. Any ideas? c:\Users\Alfred>...

add album art to WMA file

I'm using WMP engine to convert audio to WMA format, but I didn't see any API that I can put a alubm art to WMA file. is there a way to do that? Thanks in advance. ...

Is it necessary to explicitly stop all threads prior to exiting a Win32 application?

I have a Win32 native VC++ application that upon entering WinMain() starts a separate thread, then does some useful job while that other thread is running, then simply exits WinMain() - the other thread is not explicitly stopped. This blog post says that a .NET application will not terminate in this case since the other thread is still ...

Input output communication between two programs

I have a third party java program called kgsgtp.jar which need to communicate with my own C++ (but mainly just C) program. The documentation for the java program states: ===================== You just need to make sure that stdin for kgsGtp it connected to the engine's output and stdout for kgsGtp is connected to the engine's inpu...

LD_DEBUG=files for Windows Visual Studio?

I'm quite stuck on a ddl loader problem under Windows Visual Studio 2009 C++. I have a framwork which loads plugins as DLL files, unfortunatly I have no sourcecode access to the framework. The dependency walker doesn't show any errors, but the framework just says "dependencies not found" when loading the plugin. I'm quite unfamiliar wit...

Running app as Windows Service reports COM error 80040154

Hi, I'm trying to convert a normal application to a service. The application uses an installed COM component. When its run as a standalone application, this finds and connects to the COM component, however having converted the app to a service, I get the above error. I understand that this could be related to the fact that in the "env...

PHP, LDAPS, APache and Multiple Server Certs

OK, ladies and gentlemen. If you could just read the whole thing before asking "Why would you want to do that!?!", I'd be much obliged ;) I am writing a PHP script to pull information from an LDAP server over LDAPS. I am using PHP 5.3, OpenLDAP and OpenSSL 0.9.7l (28 Sep 2006) and Apache 2.2 on a Windows 2003 server. I have one instanc...

How can I see if a network connection changes state?

I am writing an application that checks if the computer is connected to one particular network or not, and does some magic for our users. The application will run in the background and perform the check if the user requests it (menu in tray). I also want the application to automatically check and do magic if the user changes from wired ...

Can't copy big DB files using "copy", "robocopy" or even "eseutil"

I am having a problem copying large DB files (~100GB) in an automated script I am trying to write for a Windows Server. I have tried using "copy", "robocopy", and even "eseutil". My script is running on a Windows 2008 Server (destination of the file) and is pulling from a Windows 2003 Server (source of the file). I have already tried...

c# get windows users profile details?

I'm trying to get a detailed list (containing name, size, and last modified) of all user profile on a local machine. I can find the information by going to Computer->Properties->Advanced->(user profiles)Settings and i'm trying to find a way to pull in that information into my c# program. Thanks for the help! ...

Why are persisted user settings not loaded?

I have a windows application that uses an assembly that stores some configuration settings in the default application settings. The settings can be changed in run time and are persisted thus: Properties.Settings.Default.SelectedCOMPort = options.SelectedCOMPort; Properties.Settings.Default.Save(); The settings are saved correctly and...

Tortoise SVN "Can't read from connection error"

I have installed SVN server and try to access it using Tortoise SVN client. During the checkout/update process I randomly get an error "Can't read from connection. An existing connection was forcibly closed by the remote host". Some files are loaded (but sometimes not from the first time). I have googled a lot of similar problems, but h...

_heapwalk reports _HEAPBADNODE, causes breakpoint or loops endlessly

I use _heapwalk to gather statistics about the Process' standard heap. Under certain circumstances i observe unexpected behaviours like: _HEAPBADNODE is returned some breakpoint is triggered inside _heapwalk, telling me the heap might got corrupted access violation inside _heapWalk. I saw different behaviours on different Computers....

Login into windows from .NET application

I think it should be a windows service. when given certain conditions it should perform a login into the machine. The machine will be in the "login screen" checking a webservice to know who is the user and password it should use to login. Can this be done?, I don't want "automatic login" windows feature. Thanks! ...

How to check if a user is a member of a group in Windows with Ruby?

On Windows, how do I check to see if an authenticated user (ex: DOMAIN\User) is a member a local or domain group with Ruby? In this case Ruby is running on Windows Enterprise Server 2003. ...