windows

cmd.exe command line string limits

I've been working on spooling a bat file from a oracle query that would copy contents from one location to another, Now that command that are getting generated are of lengths that are greater than 255 characters, e.g C:> copy x y ( where len (x+y) > 255) As this is throwing an error, is there a work around to manage this kind of sit...

What is my LDAP Connection String

Are thee any tools out there that can tell you what your LDAP connection string is? ...

Installing multiple instances of the same windows service on a server.

So we've produced a windows service to feed data to our client application and everything is going great. The client has come up with a fun configuration request that requires two instances of this service running on the same server and configured to point at separate databases. So far I haven't been able to get this to happen and was ...

How do I get the module name that caused a structured exception given a _EXCEPTION_POINTERS struct? (win32 C++)

(Win32 platform c++) Using __try and __finally, how can I get the module name (And address) of the cause for an exception? I call GetExceptionInformation() but from that I am not sure where this information is. Given other resources online and in MSDN the Minidump handlers and other sample code seem to be able to get it, but I am not...

PHP + MySQL software

Hi guys. Need your suggestion on php/mysql software. I develop PHP websites using Dreamweaver, I also have to use phpmyadmin, sql query editor (to work with database) and WinSCP (to upload/backup files over SFTP). Could you suggest me please some software which contains all in one (PHP syntax highlighting, db connections and running sql...

Relationship between ManagedThreadID and Operating System ThreadID

I'm working on a multi-threaded C# Windows application that makes frequent calls into a native dll. These are blocking calls which can sometimes last quite a long time. In certain situations, I'd like to cancel these blocking calls on some worker threads from the main thread The native API I'm using provides a function for this purpo...

Forward declaration problem

I'm having a problem getting forward declaration to work (actually I'm not sure if it should work the way I intend). I have a cpp file as follows: int DialogModeless::Create(int dialogID, Presenter* pPresenter) { Ptrs* pPtrs = new Ptrs; pPtrs->pPresenter = pPresenter; pPtrs->pWnd = _derived; HINSTANCE hInstance = ::GetM...

On Terminal Server, how does a service start a process in a user's session?

From a Windows Service running on a Terminal Server (in global space), we would like to be able to start up a process running a windows application in a specific user's Terminal Server sessions. How does one go about doing this? The Scenerio: the windows service starts at boot time. After the user has logged into a Terminal Server user...

What's the advantage of having an 8-letter process?

If you run Sticky Note in Windows 7,its process, is called StikyNot.exe. Several other Windows processes keep their process names under 8 letters. Why do they do that? What is the advantage? Are they just clinging to the past? Or should everybody be publishing 8-letter executables? ...

iTunes integration advice

I'd like to get some feedback and references to any useful resources related to iTunes integration on Windows platform from fellow developers experienced in that area. COM SDK vs. JavaScript API? What are the advantages and limitations? Any useful blogs or discussion groups? Any recommended outsourced vendors experienced in this type of ...

Deleting keys with subkeys

How I can delete in Windows c++ registry keys with subkeys? RegDeleteKey() doesn't work. ...

Python get wrong value for os.environ["ProgramFiles"] on 64bit vista

Python 2.4.3 on a Vista64 machine. The following 2 variables are in the environment: ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) But when I run the following import os print os.environ["ProgramFiles"] print os.environ["ProgramFiles(x86)"] I get: C:\Program Files (x86) C:\Program Files (x86) Any idea how ...

Developers OS license with MSDN Premium Subscription

I have been looking at whether our MSDN Premium Subscriptions would cover upgrading our developer’s machines from Vista OEM to Win 7 RTM MSDN. The assumption here is that "design, develop, test, or demonstrate" covers the developer’s day job, so should cover the OS. I have found that other development shops seem to make this same assum...

Why is RDP so fast compared to other remote control software?

Hello, I use RDP-based Windows' Remote Client Desktop utility to connect to my desktop from my laptop. It's much faster and looks better than remote control applications like TeamViewer etc. Out of curiosity, why is RDP better? Thank you. ...

Is there an ideal size for executable modules on Windows?

I've been taking note of the .exe file size of many applications. I saw that Visual Studio 2005 has an .exe size of 453KB, and VS2008 of 1.04MB because they divide the application into many parts (.exe + many .dll files). I saw also that MS Outlook has a very large .exe file (11.8MB) while MS Word is very small (398KB)! After ponderi...

filemtime() not working in Windows PHP-CLI

I just got PHP-CLI working on my Windows machine so I could create scripts using PHP. However, I'm trying to write a script to cleanup my Firefox downloads folder of files older than X number of days, but I can't seem to get the filemtime() function working. Here is the function I wrote: function deleteOldFiles($dir, $days) { $mydir...

windows security

Good day Im trying to implement a read/write privilege in a folder but no delete rights in windows server 2003. Does anyone knows how to set this kind of security? Thanks ...

Building Mono's class libraries on Windows

Hi, Can anyone provide a step by step instruction on how to build the Mono class library (namely System.dll and mscorlib.dll) on windows? I can already build the core libmono/mono stuff using msvc. I've already looked at the following (none of them work...) http://ondotnet.com/pub/a/dotnet/2005/02/07/monowindows.html http://www.codep...

how can I make a Windows service beep?

I've got a service that acts as a watchdog for several apps/servers. There are no user sessions on this machine. I'd like the watchdog to be capable of beeping on the internal speaker should something go wrong (that'd be my queue to go fix whatever it's complaining about) when I try the Beep() API on Windows nothing happens - I susp...

Debugging the JNI code in VisualStudio 2003

How to debug the JNI code in VisualStudio 2003 without using eclipse? ...