Friday, December 4, 2009

Windows 7 wallpaper hack

I got my windows 7 loaded laptop, it is HP G71 model, on Dec 03, 2009. I started personalizing it. As part of that I edited the wallpaper entry.

I found a defect, the wallpaper would always stretch and no other settings could be enabled.

Hacking:

So I searched the registry with "Wallpaper" key word and Bingo. I hit the right place.
HKEY_CURRENT_USER\Control Panel\Desktop\WallpaperStyle is the entry used to set the value. I changed this value to 4 and thus fixed the issue.

Monday, October 5, 2009

Remote Heap walker - window ce

Remote heap walker is based on the Toolhelp.dll, functions like
CloseToolhelp32Snapshot
CreateToolhelp32Snapshot
Heap32First
Heap32ListFirst
Heap32ListNext
Heap32Next
Process32First
Process32Next
Toolhelp32ReadProcessMemory

are used to get the data. The client exe, cchwcli.exe, is located at
C:\Program Files\CE Remote Tools\5.01\target\wce500\x86\cchwcli.exe.

Monday, September 28, 2009

Printer and printing related articles from MSDN

http://msdn.microsoft.com/en-us/library/aa973522.aspx this link is the food for hungry minds, for windows printing. Enjoy. Microsoft has made a good doucumentation of all the needed elements for printing.

Printing using LPR command - Windows

Lately I was trying on the LPR commands. Then I fould the right way to do it.

====================
What LPR does?

Sends a print job to a network printer

Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d] filename

Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first
=============================================

Right way to print
1) lpr -S 16.180.100.31 -P LP "-o l" BlankPage.prn
2) lpr -S localhost -P LP "-o l" BlankPage.prn

====== for simple text files
1) lpr -S localhost -P LP -o Blank.txt

Source:
http://technet.microsoft.com/en-us/library/cc731926(WS.10).aspx