Thread: RE: Re[2]: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Tom F. <to...@mu...> - 2003-01-22 11:14:38
|
> "Do you want this software to be available to all users(requires > admin rights) or only to the current user?(Yes/No)" Nooooooo. What does the answer "no" mean? :-) Even the klunky old Atari ST had a function to easily customise the words printed on the buttons. Windows... <shakes head in despair> Tom Forsyth - Muckyfoot bloke and Microsoft MVP. This email is the product of your deranged imagination, and does not in any way imply existence of the author. > -----Original Message----- > From: Kerim Borchaev [mailto:wa...@ho...] > Sent: 22 January 2003 09:06 > To: Brian Hook > Subject: Re[2]: [GD-Windows] Security/access when writing to registry > > > Hello Brian, > > Support both HKCU and HKLM. If your software is being installed > by an advanced user let her choose what to use. Like this: > > "Do you want this software to be available to all users(requires > admin rights) or only to the current user?(Yes/No)" > > And on start of your app first, say, look into CU(if the user > installed this soft for her personally ) and if nothing > found loook into LM. > > Best regards, > Kerim mailto:wa...@ho... > > Wednesday, January 22, 2003, 11:01:55 AM, you wrote: > > BH> Yes, I'm revisiting a thread that's over a year old =) > > BH> I've been using HKCU instead of HKLM like a good Windows > app, but it > BH> seems like you can't win 'em all. > > BH> The problem with HKCU is that, well, it's per user. I've > gotten very > BH> sporadic complaints about having to install our games > multiple times > BH> (including unlock codes), which isn't that big a deal. > But what IS a > BH> big deal is when you have multiple users on the same > machine trying > BH> to compete against each other, but now their high scores aren't > BH> shared. This is a pretty galling thing, since a lot of > our games are > BH> competitive that way and we do find that more than a few of our > BH> players are on multi-user systems. > > BH> Ideas on a clean solution to this problem? > > BH> Brian > > > > > BH> ------------------------------------------------------- > BH> This SF.net email is sponsored by: Scholarships for Techies! > BH> Can't afford IT training? All 2003 ictp students receive > scholarships. > BH> Get hands-on training in Microsoft, Cisco, Sun, > Linux/UNIX, and more. > BH> www.ictp.com/training/sourceforge.asp > BH> _______________________________________________ > BH> Gamedevlists-windows mailing list > BH> Gam...@li... > BH> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > BH> Archives: > BH> http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Gareth L. <GL...@cl...> - 2003-01-22 11:27:00
|
Oops, sorry about the previous email, was intended for Tom personally. On a more serious note, MessageBox() is a helper function, there is NOTHING stopping you from displaying your own dialog box with both options. > -----Original Message----- > From: Tom Forsyth [mailto:to...@mu...] > Sent: 22 January 2003 11:11 > To: gam...@li... > Subject: RE: Re[2]: [GD-Windows] Security/access when writing to > registry > > > > "Do you want this software to be available to all > users(requires > > admin rights) or only to the current user?(Yes/No)" > > Nooooooo. What does the answer "no" mean? :-) > > Even the klunky old Atari ST had a function to easily > customise the words > printed on the buttons. Windows... <shakes head in despair> > > > Tom Forsyth - Muckyfoot bloke and Microsoft MVP. > > This email is the product of your deranged imagination, > and does not in any way imply existence of the author. > > > -----Original Message----- > > From: Kerim Borchaev [mailto:wa...@ho...] > > Sent: 22 January 2003 09:06 > > To: Brian Hook > > Subject: Re[2]: [GD-Windows] Security/access when writing > to registry > > > > > > Hello Brian, > > > > Support both HKCU and HKLM. If your software is being installed > > by an advanced user let her choose what to use. Like this: > > > > "Do you want this software to be available to all > users(requires > > admin rights) or only to the current user?(Yes/No)" > > > > And on start of your app first, say, look into CU(if the user > > installed this soft for her personally ) and if nothing > > found loook into LM. > > > > Best regards, > > Kerim mailto:wa...@ho... > > > > Wednesday, January 22, 2003, 11:01:55 AM, you wrote: > > > > BH> Yes, I'm revisiting a thread that's over a year old =) > > > > BH> I've been using HKCU instead of HKLM like a good Windows > > app, but it > > BH> seems like you can't win 'em all. > > > > BH> The problem with HKCU is that, well, it's per user. I've > > gotten very > > BH> sporadic complaints about having to install our games > > multiple times > > BH> (including unlock codes), which isn't that big a deal. > > But what IS a > > BH> big deal is when you have multiple users on the same > > machine trying > > BH> to compete against each other, but now their high scores aren't > > BH> shared. This is a pretty galling thing, since a lot of > > our games are > > BH> competitive that way and we do find that more than a few of our > > BH> players are on multi-user systems. > > > > BH> Ideas on a clean solution to this problem? > > > > BH> Brian > > > > > > > > > > BH> ------------------------------------------------------- > > BH> This SF.net email is sponsored by: Scholarships for Techies! > > BH> Can't afford IT training? All 2003 ictp students receive > > scholarships. > > BH> Get hands-on training in Microsoft, Cisco, Sun, > > Linux/UNIX, and more. > > BH> www.ictp.com/training/sourceforge.asp > > BH> _______________________________________________ > > BH> Gamedevlists-windows mailing list > > BH> Gam...@li... > > BH> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > BH> Archives: > BH> http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |
From: Gareth L. <GL...@cl...> - 2003-01-22 11:26:03
|
In the case of you, the user, prefering to be the only user of the Super Banana Man(Hear after:The game) selection of the OK button is in order. If though, the opitunity of all users of the machine to the "The Game" is a preferance, the "Cancel" button should be the one pointed to with the pointing device. OK CANCEL > -----Original Message----- > From: Tom Forsyth [mailto:to...@mu...] > Sent: 22 January 2003 11:11 > To: gam...@li... > Subject: RE: Re[2]: [GD-Windows] Security/access when writing to > registry > > > > "Do you want this software to be available to all > users(requires > > admin rights) or only to the current user?(Yes/No)" > > Nooooooo. What does the answer "no" mean? :-) > > Even the klunky old Atari ST had a function to easily > customise the words > printed on the buttons. Windows... <shakes head in despair> > > > Tom Forsyth - Muckyfoot bloke and Microsoft MVP. > > This email is the product of your deranged imagination, > and does not in any way imply existence of the author. > > > -----Original Message----- > > From: Kerim Borchaev [mailto:wa...@ho...] > > Sent: 22 January 2003 09:06 > > To: Brian Hook > > Subject: Re[2]: [GD-Windows] Security/access when writing > to registry > > > > > > Hello Brian, > > > > Support both HKCU and HKLM. If your software is being installed > > by an advanced user let her choose what to use. Like this: > > > > "Do you want this software to be available to all > users(requires > > admin rights) or only to the current user?(Yes/No)" > > > > And on start of your app first, say, look into CU(if the user > > installed this soft for her personally ) and if nothing > > found loook into LM. > > > > Best regards, > > Kerim mailto:wa...@ho... > > > > Wednesday, January 22, 2003, 11:01:55 AM, you wrote: > > > > BH> Yes, I'm revisiting a thread that's over a year old =) > > > > BH> I've been using HKCU instead of HKLM like a good Windows > > app, but it > > BH> seems like you can't win 'em all. > > > > BH> The problem with HKCU is that, well, it's per user. I've > > gotten very > > BH> sporadic complaints about having to install our games > > multiple times > > BH> (including unlock codes), which isn't that big a deal. > > But what IS a > > BH> big deal is when you have multiple users on the same > > machine trying > > BH> to compete against each other, but now their high scores aren't > > BH> shared. This is a pretty galling thing, since a lot of > > our games are > > BH> competitive that way and we do find that more than a few of our > > BH> players are on multi-user systems. > > > > BH> Ideas on a clean solution to this problem? > > > > BH> Brian > > > > > > > > > > BH> ------------------------------------------------------- > > BH> This SF.net email is sponsored by: Scholarships for Techies! > > BH> Can't afford IT training? All 2003 ictp students receive > > scholarships. > > BH> Get hands-on training in Microsoft, Cisco, Sun, > > Linux/UNIX, and more. > > BH> www.ictp.com/training/sourceforge.asp > > BH> _______________________________________________ > > BH> Gamedevlists-windows mailing list > > BH> Gam...@li... > > BH> https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > BH> Archives: > BH> http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555 |
From: Wayne C. <wc...@re...> - 2003-01-22 11:39:21
|
> In the case of you, the user, prefering to be the only user of the Super > Banana Man(Hear after:The game) selection of the OK button is in order. If > though, the opitunity of all users of the machine to the "The Game" is a > preferance, the "Cancel" button should be the one pointed to with the > pointing device. A re-phrasing of the question to suit the buttons would also be in order, the message body text has always been programmer specified :) "Would you like <app-name> to be installed for all users? (requires administrator priviledges)" resulting in a yes\no response. I usually take 'Cancel' to mean 'go no further'. Wayney "I'm sure at least 2% of my mails are not inane babble!" - Wayne Coles, 2003 -Virus scanned and cleared ok |
From: Tom F. <to...@mu...> - 2003-01-22 12:10:37
|
Sure, it just means adding it to the resources and all that malarky. Which is a huge hassle for every possible message in an app. It would be stupidly helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", "Hey dude", MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. Sorry - I'm just wishlisting. :-) Tom Forsyth - Muckyfoot bloke and Microsoft MVP. This email is the product of your deranged imagination, and does not in any way imply existence of the author. > -----Original Message----- > From: Gareth Lewin [mailto:GL...@cl...] > Sent: 22 January 2003 11:27 > To: gam...@li... > Subject: RE: Re[2]: [GD-Windows] Security/access when writing to > registry > > > Oops, sorry about the previous email, was intended for Tom > personally. On a > more serious note, MessageBox() is a helper function, there is NOTHING > stopping you from displaying your own dialog box with both options. > > > -----Original Message----- > > From: Tom Forsyth [mailto:to...@mu...] > > Sent: 22 January 2003 11:11 > > To: gam...@li... > > Subject: RE: Re[2]: [GD-Windows] Security/access when writing to > > registry > > > > > > > "Do you want this software to be available to all > > users(requires > > > admin rights) or only to the current user?(Yes/No)" > > > > Nooooooo. What does the answer "no" mean? :-) > > > > Even the klunky old Atari ST had a function to easily > > customise the words > > printed on the buttons. Windows... <shakes head in despair> > > > > > > Tom Forsyth - Muckyfoot bloke and Microsoft MVP. > > > > This email is the product of your deranged imagination, > > and does not in any way imply existence of the author. > > > > > -----Original Message----- > > > From: Kerim Borchaev [mailto:wa...@ho...] > > > Sent: 22 January 2003 09:06 > > > To: Brian Hook > > > Subject: Re[2]: [GD-Windows] Security/access when writing > > to registry > > > > > > > > > Hello Brian, > > > > > > Support both HKCU and HKLM. If your software is > being installed > > > by an advanced user let her choose what to use. Like this: > > > > > > "Do you want this software to be available to all > > users(requires > > > admin rights) or only to the current user?(Yes/No)" > > > > > > And on start of your app first, say, look into CU(if the user > > > installed this soft for her personally ) and if nothing > > > found loook into LM. > > > > > > Best regards, > > > Kerim mailto:wa...@ho... > > > > > > Wednesday, January 22, 2003, 11:01:55 AM, you wrote: > > > > > > BH> Yes, I'm revisiting a thread that's over a year old =) > > > > > > BH> I've been using HKCU instead of HKLM like a good Windows > > > app, but it > > > BH> seems like you can't win 'em all. > > > > > > BH> The problem with HKCU is that, well, it's per user. I've > > > gotten very > > > BH> sporadic complaints about having to install our games > > > multiple times > > > BH> (including unlock codes), which isn't that big a deal. > > > But what IS a > > > BH> big deal is when you have multiple users on the same > > > machine trying > > > BH> to compete against each other, but now their high > scores aren't > > > BH> shared. This is a pretty galling thing, since a lot of > > > our games are > > > BH> competitive that way and we do find that more than a > few of our > > > BH> players are on multi-user systems. > > > > > > BH> Ideas on a clean solution to this problem? > > > > > > BH> Brian > > > > > > > > > > > > > > > BH> ------------------------------------------------------- > > > BH> This SF.net email is sponsored by: Scholarships for Techies! > > > BH> Can't afford IT training? All 2003 ictp students receive > > > scholarships. > > > BH> Get hands-on training in Microsoft, Cisco, Sun, > > > Linux/UNIX, and more. > > > BH> www.ictp.com/training/sourceforge.asp > > > BH> _______________________________________________ > > > BH> Gamedevlists-windows mailing list > > > BH> Gam...@li... > > > BH> > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > BH> Archives: > > BH> http://sourceforge.net/mailarchive/forum.php?forum_idU5 > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive > scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, > and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > Gamedevlists-windows mailing list > > Gam...@li... > > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > > Archives: > > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |
From: Jon W. <hp...@mi...> - 2003-01-22 17:23:53
|
I betcha could have written a wrapper in the time it took you to write this e-mail. The wrapper would run at dialog box init message processing time, and just slam the string you want into the buttons you care about. WM_SETTEXT, if memory serves. Cheers, / h+ > -----Original Message----- > From: gam...@li... > [mailto:gam...@li...]On Behalf Of > Tom Forsyth > Sent: Wednesday, January 22, 2003 4:07 AM > To: gam...@li... > Subject: RE: Re[2]: [GD-Windows] Security/access when writing to > registry > > > Sure, it just means adding it to the resources and all that malarky. Which > is a huge hassle for every possible message in an app. It would > be stupidly > helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", > "Hey dude", > MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); > > OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. > > Sorry - I'm just wishlisting. :-) |
From: Javier A. <ja...@py...> - 2003-01-22 18:24:08
|
How would you write a wrapper like that for MessageBox? Jon Watte <hp...@mi...> wrote: > I betcha could have written a wrapper in the time it took you > to write this e-mail. The wrapper would run at dialog box init > message processing time, and just slam the string you want > into the buttons you care about. WM_SETTEXT, if memory serves. > > Cheers, > > / h+ > >> -----Original Message----- >> From: gam...@li... >> [mailto:gam...@li...]On Behalf Of >> Tom Forsyth >> >> >> Sure, it just means adding it to the resources and all that malarky. >> Which is a huge hassle for every possible message in an app. It would >> be stupidly >> helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", >> "Hey dude", >> MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); >> >> OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. >> >> Sorry - I'm just wishlisting. :-) Javier Arevalo Pyro Studios |
From: Jon W. <hp...@mi...> - 2003-01-22 19:02:19
|
My message was a reply to Tom where he said that adding button labels to a custom dialog required changing the resource file. If you have a custom dialog, all you need is one for each number of buttons you want; setting the lable on the buttons can be done by the dialog box proc and thus the wrapper he suggested can be easily implemented. Cheers, / h+ > How would you write a wrapper like that for MessageBox? > Jon Watte <hp...@mi...> wrote: > > I betcha could have written a wrapper in the time it took you > > to write this e-mail. The wrapper would run at dialog box init > > message processing time, and just slam the string you want > > into the buttons you care about. WM_SETTEXT, if memory serves. |
From: Wayne C. <wc...@re...> - 2003-01-22 12:16:32
|
> Sure, it just means adding it to the resources and all that malarky. Which > is a huge hassle for every possible message in an app. It would be > stupidly > helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", "Hey > dude", > MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); > > OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. > > Sorry - I'm just wishlisting. :-) I'm still waiting for the DoAI() function ;( Wayney "I'm sure at least 2% of my mails are not inane babble!" - Wayne Coles, 2003 -Virus scanned and cleared ok |
From: Andrew G. <ag...@cl...> - 2003-01-22 18:47:50
|
I think Jon exagerates a wee bit, although it's no great amount of work to come up with a replacement MessageBox which correctly sizes its self depending on the amount of text and buttons. I wonder though if it'd be possible to do something with GetClassInfo/UnRegisterClass/RegisterClass and just drop in your own WindowProc for the message box which adjusted a few things on startup and passed every call through to the real message box proc. Probabably more hassle than it's worth :) It's a real shame though that you can't specify replacement text for the default buttons, especially as you can already do something similar for the icon that's displayed. Andy @ Climax Brighton > -----Original Message----- > From: Javier Arevalo [mailto:ja...@py...] > Sent: 22 January 2003 18:33 > To: gam...@li... > Subject: Re: Re[2]: [GD-Windows] Security/access when writing to > registry > > > How would you write a wrapper like that for MessageBox? > > Jon Watte <hp...@mi...> wrote: > > I betcha could have written a wrapper in the time it took you > > to write this e-mail. The wrapper would run at dialog box init > > message processing time, and just slam the string you want > > into the buttons you care about. WM_SETTEXT, if memory serves. > > > > Cheers, > > > > / h+ > > > >> -----Original Message----- > >> From: gam...@li... > >> > [mailto:gam...@li...]On Behalf Of > >> Tom Forsyth > >> > >> > >> Sure, it just means adding it to the resources and all > that malarky. > >> Which is a huge hassle for every possible message in an > app. It would > >> be stupidly > >> helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", > >> "Hey dude", > >> MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); > >> > >> OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. > >> > >> Sorry - I'm just wishlisting. :-) > > Javier Arevalo > Pyro Studios > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |