How to add more DWORD keys and values in this code?

How to make more than one change in windows registry with this code?
How to add more DWORD keys and values?

#include <Windows.h>
#include <iostream>

using namespace std;

int main()

LONG IReg;
HKEY hKey;
DWORD dwData = 6;
IReg = RegCreateKeyEx
(
    HKEY_LOCAL_MACHINE,
    L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks\\Games",
    0,
    NULL,
    REG_OPTION_NON_VOLATILE,
    KEY_ALL_ACCESS | KEY_WOW64_64KEY,
    NULL,
    &hKey,
    NULL
);
if (IReg != ERROR_SUCCESS)
{
    cout << "Priority add failed & Error No -" << GetLastError() << endl;

}
cout << "Priority add success" << endl;

IReg = RegSetValueEx
(
    hKey,
    L"Priority",
    NULL,
    REG_DWORD,
    (LPBYTE)&dwData,
    sizeof(dwData)
);
if (IReg != ERROR_SUCCESS)
{
    cout << "RegSetValueEx add failed & Error No -" << GetLastError() << endl;
}
cout << "RegSetValueEx add success" << endl;
RegCloseKey(hKey);
return 0;