Re: Registry and other questions
- Posted by Ben Fosberg <BenFosberg at ATT.NET> Oct 17, 2000
- 388 views
I'm afraid most of what you need to know is over my head, but here's a little help, anyway: Davi de Figueiredo has written Euphoria wrappers for the routines you need to edit the Registry in Win 9.x; they have not been tested on NT4.0/2000 and may or may not work there, depending, among other things, on whether the Registry being modified is on the same machine as your program, the file system being used, and what sort of security settings are in effect. (You would have to have Administrator privileges, at least. You can get his file (reg.zip), which includes examples and documentation, thru the RDS website, (Recent User Contributions - Search on "Registry"). If downloading the file is a problem (it's actually on Davi's linked site), let me know and I'll email you a copy - the file is about 14K Be absolutely sure to back up the Registry before you try anything. It's actually contained in 2 hidden files - System.dat and User.dat in the Windows folder (at least on 9.x systems - can't remember the location for NT). You should also be sure that you can reboot your machine from a floppy if necessary. Can't tell you anything about disabling functions in another running program, or "hijacking" the keystrokes if the other program has the focus - think we'll have to defer to the real gurus for that one. Window covering everything should be straightforward if you know the screen resolution. Using the Create function in Win32lib, set the cx and cy parameters to match the screen resolution. If you don't know the resolution, it may more work. There's a Win API function called GetSystemMetrics that returns the dimensions of the screen, but I don't know if anyone ever wrote a Euphoria wrapper for it, so you may have to handle that yourself. Hope that's some help, anyway. Ying Kit Leung wrote: > > I think I may be able to help you, but if you're talking about > > the "Registry Database" in Windoz, it can be a dangerous (fatal, > > may not be able to reboot machine) operation, so I'd like a > > little more information - > > > > Do you mean the Windows Registry? > > Yes. > > > If so, which version of Windows? > > Windows 95/98/NT and maybe 2000/ME. (3.11?) > > > Do you just want to make the change on your own machine, or are > > you talking about writing a program to change it? > > Part of a program. > > > Do you need to make just one change, for one specific file type, > > or need to know how to make the change for any file type? If it's > > one specific change - give me the details, and I'll supply you > > with detailed instructions. On the other hand, if you need the > > general procedure for writing the code to do it, I'll make some > > general suggestions. > > > > Ben > > File Type is .ppt. > Let me explain a little bit. There is something called PowerPoint > Viewer. It can be used to view PowerPoint presentation only. How- > ever, if somebody right click the mouse, there is a popped up menu with > the Edit option which, when selected, will send the file to the Power- > Point application. > > I want to disable the Edit option inside PowerPoint Viewer when my > program starts, and then change it back when my program ends. Any idea? > Also, I would like to ask can the Alt-F4 be captured? How about the > Alt-Tab? Can it be disabled when my program starts and enabled when my > program ends? One more question: How can I create a window large enough > to cover the whole screen including the Task Bar? > > > Thanks!