Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 41165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:08:15+00:00 2026-05-10T15:08:15+00:00

I was testing on a customer’s box this afternoon which has Windows Vista (He

  • 0

I was testing on a customer’s box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results).

We make use of a .DLL that gets the Hardware ID of the computer. It’s usage is very simple and the sample program I have created works. The Dll is This from AzSdk. In fact, this works perfectly under Windows XP. However, for some strange reason, inside our project (way bigger), we get this exception:

Exception Type:        System.DllNotFoundException Exception Message:     Unable to load DLL 'HardwareID.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6) Exception Target Site: GetHardwareID 

I don’t know what can be causing the problem, since I have full control over the folder. The project is a c#.net Windows Forms application and everything works fine, except the call for the external library.

I am declaring it like this: (note: it’s not a COM library and it doesn’t need to be registered).

[DllImport('HardwareID.dll')] public static extern String GetHardwareID(bool HDD,    bool NIC, bool CPU, bool BIOS, string sRegistrationCode); 

And then the calling code is quite simple:

private void button1_Click(object sender, EventArgs e) {     textBox1.Text = GetHardwareID(cb_HDD.Checked,                                    cb_NIC.Checked,                                    cb_CPU.Checked,                                    cb_BIOS.Checked,                                   '*Registration Code*'); } 

When you create a sample application, it works, but inside my projectit doesn’t. Under XP works fine. Any ideas about what should I do in Vista to make this work? As I’ve said, the folder and its sub-folders have Full Control for ‘Everybody’.

UPDATE: I do not have Vista SP 1 installed.

UPDATE 2: I have installed Vista SP1 and now, with UAC disabled, not even the simple sample works!!! 🙁 Damn Vista.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:08:16+00:00Added an answer on May 10, 2026 at 3:08 pm

    @Martín

    The reason you were not getting the UAC prompt is because UAC can only change how a process is started, once the process is running it must stay at the same elevation level. The UAC will prompt will happen if:

    • Vista thinks it’s an installer (lots of rules here, the simplest one is if it’s called ‘setup.exe’),
    • If it’s flagged as ‘Run as Administrator’ (you can edit this by changing the properties of the shortcut or the exe), or
    • If the exe contains a manifest requesting admin privileges.

    The first two options are workarounds for ‘legacy’ applications that were around before UAC, the correct way to do it for new applications is to embed a manifest resource asking for the privileges that you need.

    Some program, such as Process Explorer appear to elevate a running process (when you choose ‘Show details for all process’ in the file menu in this case) but what they really do is start a new instance, and it’s that new instance that gets elevated – not the one that was originally running. This is the recommend way of doing it if only some parts of your application need elevation (e.g. a special ‘admin options’ dialog).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can use IEnumerable.First() or IEnumerable.FirstOrDefault(). The difference is that… May 11, 2026 at 12:34 pm
  • added an answer The book An Introduction to Computational Learning Theory contains an… May 11, 2026 at 12:34 pm
  • added an answer You need to make two VirtualHost's with on pointing to… May 11, 2026 at 12:34 pm

Related Questions

I was testing on a customer's box this afternoon which has Windows Vista (He
I'm behind a firewall at work at the moment and I was testing something
I was doing some testing and straight LINQ-to-SQL queries run at least 80% faster
I was working with quality yesterday doing some formal testing. In their procedure they
I was currently developing a desktop application in C# using mono and testing in
Recently my team has spent too many hours setting up machines with previous product
Recently I had to fix a bug that was reported from the field. While
I work for a small web development company (only 2 to 3 developers) that
I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.