Windows 7 + VB6 + Standard User’s + The Registry = Arg!

by Mark Wiseman on March 19th, 2010 | Posted in Revium Sandbox | Comment on this entry

I have spent the last couple of weeks assisting one of our client re-mediate some of the hundreds of VB6, Word, Excel and Outlook VBA add-ins in preparation for their XP to Windows 7 upgrade. It is no small task, believe me.

One of the earliest issues we ran into was for verifying registry changes made. It looked like the registry keys these add-ins modify were not being saved.

Consider this scenario: A user logs into windows and a VB6 assembly is run that query’s active directory and sets a registry key value to true or false if they belong one a particular user group. This setting is stored under:

hkcu software
HKEY_CURRENT_USER > Software > CompanyName > Setting

When we try to verify that the setting has been saved we try to open regedit and are prompted to enter User Credentials, so we enter the Administrator’s. When we look for the setting it doesn’t exist. But why? Our code didn’t throw any errors and after adding debug information RegCreateKeyEx returned a successful result.

It turns out the issue was with our verification. If you supply Admin Credentials in Windows 7 to run regedit it shows the Admin users HKEY_CURRENT_USER settings… Arg! It turns out when you run regedit you can just re-enter the Standard User’s password again to gain access.

Related posts:

  1. Email source code in MS Outlook
  2. Transparent login between ASP.NET web sites
  3. Sharepoint – Getting Photos from People and Groups
  4. Windows SharePoint Services Help Search – SPSearch Starting Error

Tags: registry, vb6, win7

« Cross-domain login in ASP.NET

Crystal Report Challenges »

Leave a Reply

Click here to cancel reply.

Recent Articles

  • FluentSecurity + MvcSiteMapProvider = Better .Net Security Management
  • Revium To Deliver The ACCC’s Energy Price Comparison website
  • Responsive Web Design
  • Vermont Consulting website launched
  • Code Compliance Monitoring Committee’s website launched
  • Revium: Victorian Government eService provider
  • BelcherPage2012 website goes for gold
  • Tangshan Burak’s website overhaul goes live.

Twitter

  • Sweet ... SugarCRM has new v6.5 for easier nav, rapid access. Call us if you need to get the best out of your CRM http://t.co/iqAcNO6F 6 days ago
  • Using Social Logins? - Nice article on trends and pitch for an aggregrated sharing approach for your site. See http://t.co/ZxFJqyAW 1 week ago
  • What are the issues and pitfalls fir choosing a CMS for your website. Come to the Internet Show in Melbourne on... http://t.co/bojO7dVV 2 weeks ago
  • More updates...

Revium Logo

  • Home
  • About
  • Expertise
  • Showcase
  • Contact

  • news
  • blog
  • sandbox
  • twitter
  • rss
  • visit our facebook page

We are Revium, hear us roar!

The news.

13 Feb

Revium To Deliver The ACCC’s Energy Price Comparison website

The ACCC selects Melbourne Based Digital Agency Revium to deliver the Australian Energy Regulator’s Online Energy Price Comparison website. The major purpose of the energy price…

Continue reading
View archive

The blog.

07 Nov

Revium: Victorian Government eService provider

Revium is pleased to be accepted on the refreshed Victorian eServices Panel, and proud to be able to provide the Victorian Government with Systems…

Continue reading
View archive

The sandbox.

08 May

FluentSecurity + MvcSiteMapProvider = Better .Net Security Management

In my continual quest for find better ways of doing anything and everything this week I decided to tackle on of my arch nemesis:…

Continue reading
View archive

eNewsletter.

 

© Copyright 2012. All Rights Reserved.

Revium Pty Ltd

info@revium.com.au Work +61 3 9429 2000

10 Harvey Street
Richmond, Victoria, 3121 Australia
View map

Disclaimer and privacy Revium Pty Ltd

Find us: web development, seo

 
Partner logos