When I check in the registry on the Data column it says (invalid DWORD value).
The name ToolBar shows correctly in the Name column and it says REG_DWORD in the Type column but in the Data column it says (invalid DWORD value)
How can I fix this?
That worked but now the value says 0x004d2201(5054977). bShow is only 1 byte long and maximum value a byte can hold is 255. Should I cast bShow to DWORD before I pass it to RegSetValueEx?