windows

How to Connect to IntraNet Web Service using the Windows Mobile Device emulator?

I have my Windows Mobile Application which connect to the Intranet Web Service. I am not able to access the internet/intranet resource using the emulator.. What i have tried is Installed Windows Mobile Center Opened the Emulator Given Cradle Ran the application Application Fails due to unavailability of the Web Service Please help me...

Create a modified own Com Object in the registry

I want to modified the Internet Explorer CLSID element in the registry: (HKEY_CLASSES_ROOT\CLSID{0002DF01-0000-0000-C000-000000000046} ) It is possible to copy this entry and replace the GUID and create a new alias? Where can I defined a new alias? (Later I want to open this Com Object in PowerShell) ...

Vim: gf opens directories, not files

I am trying to configure vim's 'path' and 'suffixesadd' so when I use gf over FILE_NAME, and pwd is /some/dir/, it opens /some/dir/FILE_NAME/File_Name.xml In vimrc I put: set suffixesadd=.xml set path=.,dir/** But, instead of opening File_Name.xml it opens the directory FILE_NAME What should I do to configure vim so it looks for fil...

boost::regex_search - boost kills my brain cells, again

Good programmers keep simple things easy right? And it's not like the boost documentation makes your life less uneasy... All I want is an implementation for: // fulfils the function of a regex matching where the pattern may match a // substring instead of the entire string bool search( std::string, std::string, SomeResultType ) So it...

Injecting Ctrl+C into target process

Hello, I have a process that has a CtrlBreak handler by calling SetConsoleCtrlHandler. This handler listens for CTRL_BREAK_EVENT and performs some action (without quitting). This process is not attached to a console. Let's call this the target process. Next, I have written a separate program which takes a PID and I'd like to start a rem...

Is there a way to tie SharePoint list template to a workflow

Is there any way to tie a workflow or a custom workflow develop in WWF to a list template. This workflow would be generic where I can deploy this list template to any site. ...

AWTPermission Exception while implementing Automatic update desktop application using java web start

Hi All, I am working in a Desktop application that provides Online Backup of data. In my application i am trying to implement automatic software update feature. For this i am using java web start. I have done the following process for using java web start. 1> created jar with all resources. 2> created jnlp file as : <?xml versi...

Get an IP_ADDRESS_STRING from GetAdaptersAddresses()?

GetAdaptersAddresses() will get you addresses in IP_ADAPTER_UNICAST_ADDRESS format, which is defined as: typedef struct _IP_ADAPTER_UNICAST_ADDRESS { union { struct { ULONG Length; DWORD Flags; } ; } ; struct _IP_ADAPTER_UNICAST_ADDRESS *Next; SOCKET_ADDRESS Address; IP_PREFIX_ORIGIN ...

Is there a DateFormatProvider that will use Windows localization information?

I'm writing a java gui application that has to display dates. Since this application is primarily going to run on Windows systems, I would like to be able to use date & time formats that correspond to the Windows localization settings. I found DateFormatProvider class, in Java 6, which gave me high hopes ... but I haven't found an impl...

Why Ubuntu eats more power than Windows?

I play full screen video with maximum volume or browse the Web with WiFi. Under Windows 7 my laptop works ~5 hours. Under Kubuntu 10.10 only ~2 hours. I've got Acer Aspire 1810TZ. Battery wear degree 90%. Installed: acpid acpi-support pm-utils upower Not installed: laptop-mode-tools I like Linux, don't want to change it. What to d...

Large .tmp files in C:\Windows\Temp

I have a Windows 2008 server which functions as a web service server, and every other week or so, the C:\Windows\Temp folder is filled with large (between 40-300 meg) files with names like: ~DF5D73.tmp, ~DFA95.tmp, etc. They appear My webservices on the server don't create any files with that type of name, and the contents don't appea...

Python 2.7: Themed "common dialog" tkinter interfaces via Ttk?

Python 2.7 (32-bit) Windows: We're experimenting with Python 2.7's support for themed Tkinter (ttk) for simple GUI's and have come away very impressed!! The one area where the new theme support seems to have come up short is how OS specific common dialogs are wrapped. Corrected: In other words, the MessageBox and ColorChooser common dia...

LSP or WFP? and some questions

I need change traffic on the fly, and on WFP for this need write driver, so i need using just LSP. Where in official documentation i can confirm LSP OS compatbility? Do i can with LSP change namespace traffic? What difference between LSP and WFP? ...

how can I force the startup manager to load on MAC OS X? or how to install a boot loader?? grub??

Hi there, I have a MAC mini with Windows and OS X installed in it. This mac is connected to a KVM and the keyboard that I use it's a regular PC keyboard. When I try to load the Startup Manager by pressing the Function key at startup, it fails and loads directly into OS X. I believe that the KVM is giving me trouble but I can't get rid o...

Custom avi/MP4 file writer

I am writing some video files under Windows from a camera. I need the data unaltered - not MP4's 'uncompressed' ie. no YUV, no color interpolation - just the raw camera sensor bytestream. At the moment I am writing this direct to disk and re-reading it later to recode into a usable video. But with no header I have to keep track of image...

What causes the differences between a driver on disk and a driver mapped to memory?

Hey, Today I tried to do a binary diffing of NDIS.sys, and I noticed something weird. I took a function, and began to diff it. The first 30 bytes were the same on the disk(using IDA) and on memory(using WinDbg). Then, something have changed. I saw something like "jmp _imp_XXXXX". the JMP bytes were the same, but the address was different...

How do i close an opened port in Windows 7?

when i try to start my java based server there is a message that says the port is already in use... And all my java web servers are stopped... So if anyone can help me i will appreciate it... ...

How to clear a process command line?

I would like to clear the command line of my process from within. For example, when viewing my process in Task Manager/Process Explorer, the command line entry would be empty. I would like to do this within the currently running process rather than restarting the process if possible. ...

How to programmatically get the current audio level?

Basically, what I need is a way to tap into the current audio output and check the sound level, i.e. I need to be able to check whether there is something playing on the audio device or not. I do not need to check the volume setting, but the actual playing audio stream's sound level. Sorry, I was asking about how to do it in Windows, o...

One set of code, two authentication schemes Forms Auth + Windows Auth: The lesser of evils

We have an application that is currently required to be accessed using two authentication schemes, Forms Auth and Active Directory or NTLM / Windows Auth. The way the application is now, there are two IIS sites pointing to different folders with the same set of files, everything identical except the web.config. Before anyone flames me ...