how to get various hardware identifiers in VBA?

H

heidstar

i'm designing and building a piracy protection mechanism
for some access applications that i'm going to develop,
and i need to know how to use VBA code to get various
hardware identifiers.

i previously started a thread about this in mid may, and
was helped by TC, Graham and Peter (sorry, i didn't note
down your last names). the only tangible outcome from that
discussion was the function to return the windows product
id, which i expect i will probably use in conjunction with
whatever else i can get my grubby little paws on.

nearly everything else confused me, however i did get a
sense of how careful i have to be about the advice i take,
for example the common misconception that the volume
serial number is the hard disk serial number (whatever
that means!)

also, i now have a much better idea of what i'm looking
for. apparently there are some serial numbers that can be
changed with a simple dos command, and others that can be
changed only by changing the hardware because they are
stored in ROM.

i also got the impression that it is incredibly difficult
if not impossible to get the hardware identifiers i am
after, especially the more desirable non-changeable ones.

so i'll try not to ask the impossible here, but what are
some hardware identifiers that can be accessed from vba
code? and for each identifier:

how do i write the vba code to get it, or is there some
code i can copy? (i'm a total ignoramus with low level
programming)

how unique is the identifier? (they don't have to be
individually unique, because a combination of hardware ids
will probably be unique)

how easy is the identifier to change? (but it's not the
end of the world if it is easily changed, because i can
easily conceal what it is so that a pirate won't know to
change it)

what are the consequences of improperly changing the
identifier? (if changing the identifier will risk the
computer going haywire, then maybe a pirate would not want
to risk it)

those are the things i want considered for each hardware
identifier. thanks in advance :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top