1. Registry and other questions
- Posted by Ying Kit Leung <Ying-Kit.Leung at CAN.XEROX.COM> Oct 16, 2000
- 444 views
> 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!
2. Re: Registry and other questions
- Posted by Ben Fosberg <BenFosberg at ATT.NET> Oct 17, 2000
- 389 views
- Last edited Oct 18, 2000
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!
3. Re: Registry and other questions
- Posted by gebrandariz <gebrandariz at YAHOO.COM> Oct 18, 2000
- 417 views
Watch out! ----- Original Message ----- From: Ben Fosberg <BenFosberg at ATT.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, October 18, 2000 12:25 AM Subject: Re: Registry and other questions > 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). If your system is configured with user profiles ... (i.e. Control Panel > Passwords > User Profiles > "Users may ..." is checked and "All users.." is not, also Control Panel > Users includes a list of enabled users, and when you boot Win9.x it will ask you for a user name), then .. ... backing up User.dat in the Windows folder will not be enough! You must also back up the User.dat file in each and every user folder (%windir%\Profiles\Username), or at least the one corresponding to the user you're currently logged to. Remember that, with user profiles enabled, many things you do to the Registry will only become effective for that particular user. Sadly, most software doesn't take this into account. For instance, most installers will happily install within the current (logged) user, cheerfully ignoring all others. For more details, you may want to read the "Windows 98 Resource Kit Online Book", which you can also find in the Win98 CD or download, as a 3 MB HTML help file. Good luck. Gerardo E. Brandariz _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com