Mildly Hurtful Sarcasm

Meaningless ranting, just like everybody else.

Wednesday, May 13, 2009

I got writing pad custom.exe to work on Vista

I got Ruier's software/driver (custom.exe) that came with my handwriting pad (Legend LX-WRP-1) to work on Vista, finally, here is how...

Many years ago I bought this handwriting pad for cheap. It had apparently low quality software, cause even on Windows XP it had alot of problems: it assumed administrative rights for all users. To get it to work with limited user accounts, I had to make the entire ruier directory writable to all users. But at least it worked after that.

Recently I plugged it into my Vista machine, and at first it acted as if the driver wasn't recognized. No matter what I scribbled on the pad, nothing showed. Soon I realized I need to calibrate it from its configuration window found in Control Panel.

Now, I can draw 1 stroke but custom.exe (the main program) would just crash after that. I hook up the debugger and tried to debug, and found this call stack

0012fba8 031e0352 0x0
0012fbd0 031dfc1b PPGHOST!DSS+0xd112
0012fbf4 75f40f96 PPGHOST!DSS+0xc9db
0012fc0c 776399ce USER32!__fnHkINLPMOUSEHOOKSTRUCTEX+0x35
0012fc4c 75f3bc77 ntdll!KiUserCallbackDispatcher+0x2e
0012fc78 031ea80c USER32!NtUserCallNextHookEx+0xc
0012fcac 75f2f794 PPGHOST!SE+0x9e2c
0012fd24 75f30008 USER32!UserCallWinProcCheckWow+0x14b
0012fd88 75f25a2c USER32!DispatchMessageWorker+0x322
0012fd98 0040448f USER32!DispatchMessageA+0xf
0012fe30 77645b87 Custom+0x448f
0012fec0 75f29791 ntdll!RtlpLowFragHeapAllocFromContext+0xa6f
0012fee8 0040104b USER32!RegisterWindowMessageA+0x44
0012fef0 00407329 Custom+0x104b
0012fefc 004050b0 Custom+0x7329
0012ff88 76704911 Custom+0x50b0
0012ff94 7761e4b6 kernel32!BaseThreadInitThunk+0xe
0012ffd4 7761e489 ntdll!__RtlUserThreadStart+0x23
0012ffec 00000000 ntdll!_RtlUserThreadStart+0x1b


I could tell it was referencing some mouse hook struct, probably a callback to mouse events, but other than that, no help there. All I knew was it crashed in ppghost.dll. I brought up Microsoft Dependency Walker to try to gain some insight on ppghost.dll... oh well, almost all of its exported functions are just 2 to 3 letters long - someone tried very hard to obfuscate the code. I had to try something different.



I noticed something strange though. It only crashed when I started writing. It won't crash if I had just changed the settings. However, those settings were never saved. Normally settings are saved in the registry so I pulled up Process Monitor to trace registry activities; didn't find anything. But I noticed this application uses alot of .ini file. So I switched to look for file activities.

Bingo.



When it started up, it was trying to read WinPenJR (presumably Win Pen Junior?? another company's product?) directory under Windows directory, which did not exist. I went ahead and created C:\Windows\WinPenJR directory, and my handwriting pad started working.

I suspect there is some piracy going on here. Ruier itself looks like a shady company even from its own web page (I was trying to find updated driver). Though its binaries are all Ruier branded, the file names (custom.exe, WinPenJR) are identical to other products. Unless you tell me they are OEM (doubtful, cause it's crappy)... it smells funky.

What do you think?

Labels: ,

6 Comments:

At 6:44 PM, Anonymous Anonymous said...

Hi,

When ever I surf on web I never forget to visit this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]mildlyhurtfulsarcasm.blogspot.com really contains lot of useful information. I am sure due to busy scedules we really do not get time to care about our health. In plain english I must warn you that, you are not serious about your health. Research indicates that closely 90% of all U.S. adults are either chubby or weighty[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Therefore if you're one of these individuals, you're not alone. Its true that we all can't be like Brad Pitt, Angelina Jolie, Megan Fox, and have sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is really not as tough as you think. You need to improve some of you daily habbits to achive weight loss in short span of time.

About me: I am webmaster of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health expert who can help you lose weight quickly. If you do not want to go under painful training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for fast weight loss.

 
At 6:22 AM, Anonymous Jeremy said...

hey ya! i cant get lx-wrp-1 to work yes i got custom.exe but everysingle time i open the application it jus crashes

i made a directory in C:\WINDOWS but din seem to help at all

hmm can you help me ? thanks!

 
At 1:12 AM, Blogger 1plaintext said...

Jeremy,

I think what you want to try is make the ruier (or whatever brand you have) directory world writable (that is, add "Everyone" and give it Full Access"

 
At 1:44 PM, Anonymous Anonymous said...

llr q oly x, free porn. nem d, tik ehnscm! ssfq o iqr rr.

 
At 3:52 PM, Anonymous Anonymous said...

vqrq xolgz miasporn yrgvvc c rf p xxa

 
At 12:52 AM, Anonymous kevin said...

hey
Thanks for this article!
I came in from google
It saved me from reinstalling xp from windows 7. you have saved me much time and potentially looking bad for a client.
Thanks again man!

 

Post a Comment

<< Home