0

I'm trying to generate a unique hardware id for my application and I saw something simple but it's from autoit, the function is _WinAPI_UniqueHardwareID() which generate unique id base on hardware and changes every time you change/add something on your computer. My question is there a similar function in c++ or simplest way to generate similar output.

NOTE: for windows only and as I said, if there is no similar , how to do this in c++?

3

1 Answer 1

2

There's no way to do that in C++ itself. This feature is completely platform dependent. On Windows, you got some way to do with _WinAPI_UniqueHardwareID. Other systems you need to do this "analog function by yourself"... example: getting CPU id + Network MAC Address + Harddrive size + memory size + ... + whatever the platform delivers to you!

Some systems you can be UNABLE to do that... for example, iOS you just can't grab any information from hardware ENOUGH to identify the device as that particular device...

in other words: isn't not related to C/C++... it's completely related to the platform!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.