Madix_t


good day to all experts...

my internet monitoring system runs fine in more than a year now, but recently i encounter a problem in a latest internet games.

At first my form as a wall paper will be always at the top of all open programs at the desktop. When dis-abled at the server that's the time they can use the workstation. but one user yesterday found a hole in my system, that when they press the windows logo key then click the mouse at the start button, then to programs then to a certain new internet game and click it, my form now will be at the background when that particular game will start. So it dis-abled the purpose.

So my idea is that to dis-able the windows logo key, or the start button momentarily, than when my form is to be released, this two will be back to its normal state.

i look at the ON KEY LABEL help there is none for windows logo key...

Thank you very much for any help regarding this matter.





Re: how do i disable the windows logo key?

dni


You may change user rights or change main form properties.







Re: how do i disable the windows logo key?

Markish

Hi,

I think you can look at http://www.codeproject.com/win32/AntonioWinLock.asp Download the dll and even sample code is available in VB.

This approach would solve your issue.

Best regards,

Markish







Re: how do i disable the windows logo key?

Madix_t

i did not use any user rights, it's just if you use my workstation it was controlled at the server.. only recently that someone got a way to use without permission...thanks




Re: how do i disable the windows logo key?

Madix_t

thanks markish, but i wanted that all should purely VFP code.






Re: how do i disable the windows logo key?


Re: how do i disable the windows logo key?

Madix_t

thank you dni for your help, i try to copy paste the code i found there:

LOCAL obj, ex As Exception
TRY
obj = CREATEOBJECT("AppLauncher")
WITH obj
.StartProcessInNewDesktop(;
"C:\Program Files\Internet Explorer\iexplore.exe",;
"www.universalthread.com")

IF .errorno <> 0
.errorno, .message
ENDIF
ENDWITH

CATCH TO ex
ex.ErrorNo, ex.Message
ENDTRY
But it doesn't work , it says "AppLauncher not found", i also download the demo at the link provided, and try to run it yes it works at all the specific target, it hides the start menu, but when you press the windows logo, the pop-up menu where the programs located still pops-up.
is there a code for dis-abling this windows logo key, Because it's not good to look at all of your keyboard for every workstation that has a window key pulled-out just to dis-able this key, he..he..he
Thank you very,very, very much for the help to all





Re: how do i disable the windows logo key?

Madix_t

good day to all

is there any idea how to dis-able the windows logo key ....please help






Re: how do i disable the windows logo key?

Madix_t

Ok...thank you very very much for those who try to help me, hope you will help me again for my next problem.

can i modify the registry value of a keyboard layout in VFP, cause i want to put a click button in a form dis-abling and or enabling a certain shortcut in a registry through my program, how can we do that

thanks to everybody






Re: how do i disable the windows logo key?

Tamar E. Granor

It's better to start a new thread for a new question.

You may want to be a little more clear about what you're trying to accomplish, too. I'm not understanding your question.

Tamar




Re: how do i disable the windows logo key?

Madix_t

I am sorry for posting a new question with-in the same thread ma'am,

though i wait for an answer to my question, i also tried to look for another sources, and found the answer to my question there, and that's is by editing the registry, and it comes to my mind, how can i edit the registry without opening the REGEDIT through VFP, and how can i dis-able it momentarily.

As my first problem is regarding on-line games that will dis-able my wallpaper (VFP Form).... this is how it works...


My workstation cannot be used without an authorization from the server, so what i have done is to make a wallpaper (VFP form) that is always at the top, no matter what application you will open, those application will always at the background.and cannot be used. But now new on-line game updates makes my application obsolete, by pressing the windows logo key, click the start menu, then to programs then to the on-line game (like DOTA; warcraft) you can now start playing.

so i have to dis-able this key momentarily, and will be enabled again after allowing the user.

i Hope my explanation will be understood, thank you very much for any help regarding this matter.







Re: how do i disable the windows logo key?

Tamar E. Granor

There's a class in the FoxPro Foundation Classes that makes communication with the Registry easier. Look in Registry.VCX in the FFC folder.

I wrote an article about using this class a while back. Check the Jan. '02 issue.

Tamar




Re: how do i disable the windows logo key?

Madix_t

thank you ma'am i'll check it out






Re: how do i disable the windows logo key?

PB_UK

I'm not sure you'll find a "pure" VFP method to disable the windows logo key - VFP is (ultimately) an application, and the windows logo key functions as part of the operating system. To disable that you are essentially having to bypass part of the operating system. For example, what happens if someone brings up the task manager and uses the file, new task option Or even press the windows logo key + R (to bring up the run window) (though if you could disable the windows logo key then that one wouldn't be an issue!).

While I can understand what you are trying to achieve I believe there are tools available to limit users access to a workstation and they work at a lower level (stopping applications from running totally).

There is one thing you may be able to do, and that is to change the registry for the winlogon to run your application instead of the normal explorer.exe to your own applicaiton. I have done that with some success on a PC that was to run just the internet explorer (change the entry to iexplore.exe instead). However, to be fool proof you need to make some system changes to make other applications not permitted (particularly regedit). Even then, the ctrl-alt-delete and new task option *may* get around this.

The key, if you want to try it, can be found at HKLM, Software, Microsoft, Windows NT, Winlogon - look for the shell item and change the value there.

BE WARNED - IF YOU CHANGE THIS AND DON'T GIVE A METHOD TO CHANGE IT BACK TO NORMAL YOU *COULD* SERIOUSLY LIMIT ACCESS TO YOUR MACHINE.

Registry editing is not something to be undertaken lightly.

Cheers.






Re: how do i disable the windows logo key?

Madix_t

(BE WARNED - IF YOU CHANGE THIS AND DON'T GIVE A METHOD TO CHANGE IT BACK TO NORMAL YOU *COULD* SERIOUSLY LIMIT ACCESS TO YOUR MACHINE)

Yes, i was able to find a way to dis-able the windows logo key at the registry, but i wonder,... there must be a way to dis-able and or enable it back without having to manually configure the regedit.exe at windows folder, Madam tamar point me to FFC folder, and in the process of trying to figure it how to make an ON & OFF button for dis-abling & enabling the win logo key function from it.

thank you very much