windows

C#-Windows forms text box should accept only url name....

Hi I need to validate that a textbox should accept only url names. Can anybody tell me please. I would be really thankful. ...

Tool to identify the similarities in logic between a function of C and C++

Is there a tool in either Linux/Windows that would enable us to determine if a logic of the particular function in C is same as that of a particular function in C++ ? ...

UAC and elevation prompt pattern

I've read several questions regarding UAC and privilege elevation but I've not found a satisfactory/comprehensive answer. I have this scenario: on Windows 6 or above, when the user opens a configuration window I have to show the shield (BCM_SETSHIELD) on the OK button only if privilege elevation will be required to complete the task. --...

Reading the SAM file with Java?

I want to be able to extract the LM hashes of window passwords within the SAM password file. When i open the SAM file in java using random access file i cant read a word. If i open the SAM using textpad, i can make out some ASCII words, but i couldnt find something resembling 34-E3-A2...... etc how can i do this? Please dont say Ophcrac...

Distributing mfc42.dll - is it still necessary?

I'm working on a new product that uses an Active-X control that requires the Microsoft Foundation Class and XML Parser libraries: MFC42.DLL (6.00.8447.0) MSVCRT.DLL (6.00.8397.0) MSXML3.DLL (8.00.7820.0) MSXML3A.DLL (8.00.7820.0) MSXML3R.DLL (8.00.7820.0) Since my product is only for Windows XP and newer, I was wondering if it is ...

Decrypting the hashed windows passwords in SAM

I realise passwords are hashed using LMHash and then encrypted using SYSKEY, is there any sort of implementation code (preferably in Java) for SYSKEY so that i can create rainbow tables? ...

How to prevent from Wix removing registry entries on uninstall?

<RegistryKey Id="MyServerRegInstallDir" Root="HKLM" Key="Software\MyApp\Server" Action="create"> <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" /> <RegistryValue Name="DataDirectory" Type="string" Value="[MYAPPDATADIR]" /> </RegistryKey> The subkeys InstallDir and DataDirectory is deleted on uninstall....

Suggest user-mode filesystem filter framework plz

I need a user-mode filesystem filter (not virtual filesystem). One of such frameworks is http://eldos.com/cbflt/, but it has some bugs and I need an alternative. Suggest similar frameworks. ...

When embedding Java in a C++ application, which files do I need to take?

Our C++ application hosts Sun's JVM and I need to upgrade it to the newest version on Windows. I downloaded JDK 6u20, but I have no idea which folders to take into our installation. We currently have some version of Java 5 but it seems that whoever did it in the first place, cherry picked the files. I'd like to know which folders to tak...

Get windows serial for XP, Vista and Seven

I'm retrieving Windows XP license key with this function but it does not work for Vista and Seven. How can I get the license key at both of these Windows versions? Public Function sGetXPKey() As String Dim result As String = String.Empty Dim RegKey As RegistryKey = _ Registry.LocalMachine.OpenSubKey("Software\Microsoft\Wind...

How to get MRU List data?

Hi, how can i get data prgogrammaticaly from windows registry MRU list? I am using vc++. For example windows xp search history is located in Software\Microsoft\Search Assistant\ACMru\5603. How can i get data from it? EDIT:I still dont know howto do this, can you be more specific? So what steps do i need to do to have acess to data? ...

ASP.NET + thread-aware unmanaged API

I'm thinking over an ASP.NET application that uses ESENT for persistance. At this point this is just my hobby project, so the requirements are very flexible. However I'd like it to work on Windows 7, Windows 2008, and 2008 R2, with .NET 3.5 and higher, and default IIS settings. In ESENT, most operations require you to open a session o...

libxml2 crash on second use on Windows

Hi, I've been using libxml2 push parsing (SAX) to parse an incoming XML stream, this works well first time but crashes on the second attempt every time, my code looks like this: xmlSAXHandler saxHandler; memset(&saxHandler, 0, sizeof(m_SaxHandler)); xmlSAXVersion(&saxHandler, 2); saxHandler.initialized = XML_SAX2_MAGIC; // so we do th...

Compile EXPAT to statically-linked .a on Windows

I am writing C program on Windows with MingW and want to use EXPAT XML library. I want to compile my program statically, so I need static .a library. Is there any way to compile EXPAT to .a static, independent library on Windows? ...

How to programmaticaly get windows search history?

Hi, how can i get the windows search history and use it in my program? For example i write ".doc" in windows search bar. Now i want in my program to find out from somewhere, that i searched for ".doc" in my system(not web). How can i do this? ...

Multi-window program

Hello. I read many articles on the topic, a few of them were here, on stackoverflow, but none of them asked my question. I'll try to be specific. I need to create an application (native WinAPI) with a main window (of window class "a"). When the user clicks a button there, a window of "b" class pops up. It might be modal or not, I don't ...

Possible to launch a process in a user's session from a service?

In Windows Vista/7/2008/2008R2, is it at all possible to launch a process in a user's session from a service? Specifically, the local session would be most useful. Everything I've been reading seems to say this isn't possible, but I figured I'd ask here before giving up completely. My service signs on as Local System. I'm coding in V...

Windows Services, ASP.NET webservice + C#

Hi, I have a serious problem (i think ;-)). We have webservice. A there is a method which we can call A. We have also a service, which invokes this method from webservice. On my local computer, invoking A, by service looks good. On a server, it doesn't work and I get an error like this: error: The request failed with the error messag...

Windows batch file 'del' not working

I am trying to do the following in a batch file on Windows 7: del "./cfg/config.cfg" del "./cfg/server_blacklist.txt" I tried these variations too: del ./cfg/config.cfg del ./cfg/server_blacklist.txt del "cfg/config.cfg" del "cfg/server_blacklist.txt" del cfg/config.cfg del cfg/server_blacklist.txt Without using the "-characters ...

ZedGraph in C #: no point shown.

Hey; i am trying ZedGraph in windows form. i imported the dll and it shows in UI designer successfully. when i compile and run the program. it pops up the zedgrah grilled view, but no points on it. could anyone help me see what was wrong? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; u...