windows

How to extract the Windows OEM Key from Windows.

How would I go about extracting the Windows OEM Key from the Registry and saving it to a file. ...

How to use a dll without knowing parameters?

I have a dll that I need to make use of. I also have a program that makes calls to this dll to use it. I need to be able to use this dll in another program, however previous programmer did not leave any documentation or source code. Is there a way I can monitor what calls are made to this dll and what is passed? ...

MySQL query running fine on v4.1.22 but not working on v5.x

I have an application that executes the following MySQL query: SELECT 402 AS user_id, p.id AS perm_id, p.name AS perm_name, lc.business_division_id, bd.name AS bd_name, bd.current_cycle, bd.current_moon, lc.name AS cycle_name, ...

CreateDIBSection is throwing, when trying to create cursor on Win

Hi, I am trying to create Cursor from png, and CreateDIBSection() is throwing. Follwoing is the snippet of code: HDC hdc = GetDC(NULL); void* lpBits = NULL; HBITMAP hBitmap; try { hBitmap = CreateDIBSection( hdc, (BITMAPINFO*)&bi, 0, &lpBits, NULL, (DWORD)0); } ReleaseDC(NULL, hdc); As CreateDIBSection is throwing, th...

Reading values from file and assigning it to variable in batch script

Hello to all, I want to read the file which contains the value of some variables which are used in my batch script. I have created a property file with format key=key_value key=key_value Now, I want to set environment variable's name as key and its value as key_value How can I assign? I have read the file but cannot separate the st...

Permission problem of .egg of easy_install under windows7/vista

I use the easy_install to install python packages in a virtuaenv under windows7. Due to the UAV, I have to run the CMD as administrator for installing packages. Here comes the problem, I notice that I can't import the package from a normal user account. >>> import tempita Traceback (most recent call last): File "<stdin>", line 1, i...

How to make window non transparent?

Dear All I want to make parent window as non transparent with RGB value as (99,99,99)? Previously my window was transparent but now i have requirement to make window as non transparent. Mentioned below are the function related to my parent window: ATOM MyRegisterClass(HINSTANCE hInstance) { LogEntry(L"Entered in myRegisterClass Fu...

How to determine the admin users of a given machine on domain?

I need to programmatically determine the name of the users who are administrator on a given machine on a windows network. How can I do it? I intend to use C# but if i need to use PInvoke to achieve this, that wouldn't be problem. ...

Can we use git-cvs on windows?

Hi SO, I'm comfortable using git, and I prefer it very much over CVS. Unfortunately, in our company, we have to use CVS as a version control system. I was wondering if there was anyway to use git locally while committing to the CVS repo, and I was elated when I found this SO question. Unfortunately, it does not seem to work on Windows. ...

.Net TimeZoneInfo ID - Is it Windows Language Specific?

I'm using the .net TimeZoneInfo FindSystemTimeZoneById method which I understand queries the registry. Are the values for Time Zone ID strings stored in the registry at "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Time Zone" dependent on the language of the Windows installation of the machine? The registry key cont...

MSBuild and Windows internals

Hello, Recently I needed to do some more advanced tweaking in our MSBuild/VS2008-based build system. My background is mostly UNIX systems, so I lacked knowledge on Windows-specific things; f.e. one of the surprises for me were that there are several different runtimes, which seem to be incompatible when linking two native projects compi...

Has BluetoothAuthenticateDevice Stopped Working Since Vista SP2?

The Win32 call BluetoothAuthenticateDevice doesn't seem to function properly since Vista SP2. If you pass in null for the PIN code, the Bluetooth Connection Wizard is supposed to be displayed, allowing the user to enter the pin code and pair the device. This was working fine until I installed SP2. Now, BluetoothAuthenticateDevice is fa...

Password for iis after installing

After installing IIS on my dev system, window xp professional, its asking for username and password while trying to access http://localhost. Can you please help me out. Tried googling and tried may things but could not resolve the issue. Anonymous access is enabled iusr_ is given full access to the wwwroot folder asp.net2.0 has been re...

How to programmatically clear the Kerberos ticket cache

Hi, Does anyone know how to clear out the Kerberos ticket cache on the local computer - using managed \ unmanaegd code? Thanks in advance! ...

programming an universal remote control

I have a remote control RM200 and I want to program it so I can detect key presses and send them to applications. Now, which API can I use in Windows? HID usb API? IRDA API? I'm confused. My remote is an IRDA remote but sometime I read that I can program this device with HID USB API???? ...

How to substract one generic list from another in C#2.0

First of all, it very well could be that I'm approaching my problem the wrong way, in which case I'd gladly accept alternatives. What I'm trying to achieve is to detect which drive was created after a USB device has been connected to a computer. Here is the simplified workflow: // Get list of removable drives before user connects the ...

Howto to receive shell events in a service

How do I get events about changed files, directories and media in a Windows service? ...

Is there any good Octave GUI/IDE for Windows?

The default GNU Octave installation comes with a CLI. If the same CLI was inside a Windows Forms or WPF or GTK interface it would be much better, as it would allow: White background Normal copy/past Normal window resizing Better fonts There is any better GUI for Octave already available? ...

How can I use a large wxCursor?

The wx.Cursor class automatically scales the image I give it to 32x32 and I need to use a cursor that is larger than that. On http://support.microsoft.com/kb/307213 I saw what might be the reason for this behavior Although cursors can, in theory, be any size, the system imposes a standard size that is exposed by means of the ...

Windows UDP sendto returns WSAEINTR

I have a UDP socket that is opened for output only. Here are the pertinent calls (I left out the error handling to make it easier to read): rc = WSAStartup(MAKEWORD(2, 2), &wsd); so = WSASocket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 0, 0); sendto(so, buf, bufLen, 0, (SOCKADDR *) &dest, sizeof(dest)); This socket is only written to. O...