0
I don't know. I have spent some time trying to figure out what to do; I have spent as much time as I should allow for this.
Have you looked at
Compile and Link Considerations? If not then that is likely to help. If you have not added Advapi32.lib to the list of libraries for the project then do that.
0
0
The code is not attached. Instead of attaching the code, if you can tell us where you got the code from, then that will help.
Is the code C++? I assume it is. Those error messages are from the link editor which is executed after the C++ compiler. There is probably an #include or possibly an #import missing, but this is an area with a lot of confusing details. Your best chance of sovling the problem is to read what the web site says where you got the code from. There is likely something you are overlooking.