Log in

View Full Version : Nag Screen equivalent


bratscher
August 18th, 2001, 17:08
Hi.

I am dealing with a software that uses an alternative way to display a nag screen. Instead of making a "sorry no" nag window itself, the program uses the default web browser to display a *.html file saying "No, you cannot use me". I'm trying to find the place in the code where this program opens the "bugger off" htm file, but there are no explicit references to it in the dead listing of the program. I think finding the code where the program opens the nag-screen equivalent *.htm file is key to finding where the program decides good boy, bad boy.
May anybody suggest a way to catch a program opening a .html file?

thanks

the snake
August 18th, 2001, 23:31
Hi
Try to break with "ShellExecuteA"...

The ShellExecute function opens or prints a specified file. The file can be an executable file or a document file. See ShellExecuteEx also.

HINSTANCE ShellExecute(

HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename string
LPTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);

I'm using it in my key-gens to sent the user to my homepage.
the snake