2

We have a windows application created using Visual Basic 6.0.

An external application accesses the controls and data present in the forms (screens) of our VB application and prompts validation messages to the user. We assume that the external application is using the 'FindWindow', 'FindWindowEx' API functions present in the user32.dll to access our application using the logic as explained in the following link.

Get Text From Specific Textboxes From External Application - Visual Basic .Net

Is it possible to restrict the external applications from accessing the controls and data present in the forms (screens) of our VB application? Is there any method to restrict this anonymous access?

Thanks in Advance.

Thanks, Sujatha.

Community
  • 1
  • 1
N Sujatha
  • 21
  • 1
  • Hard to stop this in a way that can't be circumvented. Can you give us more details? Who created this external application - an over-confident legitimate user in another department, a Russian spy, or who? How bad a problem is it? – MarkJ Oct 27 '14 at 12:23

2 Answers2

2

One of the easiest ways to fend off hijackers is to substitute controls from How To Install the Microsoft Windowless Controls for VB6 for many of the intrinsic controls.

This simple step thwarts a lot of the parasites.

Bob77
  • 13,167
  • 1
  • 29
  • 37
1

Your program hands the text over. The VB6 forms package is doing it for you. Subclass the window and kill the GetText message. See https://www.google.com.au/search?q=vb6+subclass+form.