The original code is passing them as strings, I'm not actually sure why but didn't want to change...

```registry_setvaldata(servicekey,"Start","4","REG_DWORD")```