Add this line into the header file:
Code:
#pragma comment(lib, "Advapi32.lib")