windows

Writing generic code Problem for File accessing from "My Documents" for Windows Xp and Windows 7

Hi All, Sir, i am working in a java application.On that application i have to access files from "My Documents". The problem is coming with windows version when i am using windows 7, it can be accessed as "Documents" folder but for windows XP it is "My Documents". I am writing following code to access files from "Documents" folder in w...

msmdpump to SSAS

Hi, I have got msmdpump.dll set up on a windows 7 machine pointing to an SSAS instance on another server and every request I send is being logged in the event viewer with the following error. Event ID: 10 Qualifiers: 16653 Message: Message-handling subsystem: The message manager for the default locale cannot be foun...

Mapping Windows drive path to a RESTful API for cental file storage

Is this possible? Is there a programme that will allow this to happen? I have a program that needs to access a lot of data from a central storage, but the likes of Amazon S3 only allows access via RESTful API which is no good for this program. Only UNC or drive letters are acceptable... Help! Bernard ...

Developing Windows apps with JavaScript.

I'm currently in the need of developing a Windows application. I want to keep things simple (in the spirit of uTorrent) and I would like the result program to be a single .exe file containing all that it needs. The program is simple. It just needs some UI. It needs to run for a long period of time (lay there as a tray icon). It needs to...

What does kernel memory contain in Windows OS?

Hi. As is widely known, a program running under 32-bit Windows OS has only 2GB of virtual memory available. Also it is known that the other 2GB are reserved as Kernel space. But what is actually in that kernel space? I could understand reserve needed for kernel itself, but why kernel space in VAS of process? Thanks. ...

Why does MAKEINTRESOURCE() work?

Hi, The macro is defined as: #define MAKEINTRESOURCEA(i) ((LPSTR)((ULONG_PTR)((WORD)(i)))) #define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i)))) How come this can be used to indicate either a resource ID (a 16-bit unsigned int) or its name (a pointer to an array of char)? Doesn't this effectively limit the address space (on ...

Windows GUID listings

I've been looking for a complete listing of important GUIDs the best I can find is http://www.myplugins.info/guids/guidlist.php although it seems like it is still missing some things like the GUID for IContextMenu. Would anyone know how to find these? Or is there a better listing of commonly used GUIDs in Windows? ...

What is a Windows command-line EXE's "side-by-side configuration" and how do I correct it?

I have a simple .exe written in C++ (built with Visual Studio 2005) that tests some hardware using a supplied API. It works fine on the Windows 7 machine I built it on, but when I copy it to another (Windows 7) machine and run it (from the command-line) I get: The application has failed to start because its side-by-side configurat...

Add a border icon to the form

Using Delphi I would like to add another button to the border icon buttons; close, maximize, minimize. Any ideas on how to do this? ...

Problem testing services in Windows 2000 Advanced Server

Hi there: I developed a little application in Delphi 7 using the unit cwinsrvc, widely used by Delphi programmers. My application only has to test if a service is running. It works in all machines I have tested, including Windows XP and Windows 2000 Advanced Server. The problem is that there is a machine (windows 2000 Advanced Server) i...

Access Local Machine Certificate Store in Java?

Is it possible to access certificates stored in the Local Machine store (rather than Current User) from a Java Servlet? I've tried using the MSCAPI provider opening the "Windows-MY" and "Windows-ROOT" stores, but neither contain certificates from the Local Machine store. ...

Ways for an unmanaged Windows process to crash?

I am trying to understand the ways in which an unmanaged user-mode Windows process can "crash" (which is really too much of a catch-all term). Here are the ways I know of so far: Unhandled Structured Exception Default UnhandledExceptionFilter: postmortem debugger in pre-Vista; WerFault in Vista+ Custom UnhandledExceptionFilter: may d...

SIGHUP equivalent in powershell

I am interested in knowing if we can catch SIGINT, SIGHUP equivalent signals in Powershell and how to do it? I also could not find if there is anything equivalent in powershell like "stty -echo" in unix environment. Thanks, ...

Communicating with Windows Process via RPC from a Java application

I'm looking to communicate with a windows process via RPC. The application I want to communicate with is developed in C++ using Visual Studio 2008. The application provides its interface through an idl file which is then compiled using the microsoft midl tool. This application is already developed and cannot be modified. I'm looking to ...

Finding Resource in Msgina.dll

Currently I am using Windows Media center Edition. I want to extract the bitmap that Windows displays during classic logon Process. I have searched Msgina.dll using Resource hacker. I found The bitmap for professional edition,Embedded and for Home edition. But I am unable to find bitmap for Windows xp Media center edition. So, How can I ...

How to create a Junction Point using WinApi?

There is CreateHardLink function to create Hardlinks.(Since Win2000) And There is CreateSymbolicLink function since Vista has been released. But why isn't there a CreateJunction? How does mklink make a junction? And How do I write codes to make junction in my app? ...

Python raw_input("") error

Hello, I am writing a simple commandline script that uses raw_input, but it doesn't seem to work. This code: print "Hello!" raw_input("") Produces this error: Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> raw_input("") TypeError: 'str' object is not callable I have never encountered this error before,...

Can stdcall have a variable arguments?

As far as I know, only the caller-clean-stack convention can use variable arguments. By the way, the WinApi StringCchPrintfW is declared like this.(I removed the SAL) _inline HRESULT _stdcall StringCchPrintfW( STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat, ... ); Can stdcall have a variable arguments eithe...

How to get a live snapshot from IP camera?

Has anyone ever managed to do this? I'm totally out of clues now.. ...

C#/WMI: How to remotely check if Windows has updates ready to be installed?

Hi I tried finding a solution for this on google without much luck, perhaps someone here knows how to do this? ...