There used to be a list of them hosted on m00.cx, but apparently that server is down now. Luckily, I made a local copy of the list when it was still up - it's a pretty long list and I didn't have to wait that long every time I needed to look something up. I uploaded my copy as a TXT file to
localhostr, go get it. In that list, you'll find that:
js code:
var ERROR_SUCCESS = 0;
var REG_BINARY = 3;
Now, this list is just a rip-off from the Win32 C++ header files, so you'll find that most of the constants are defined as a combination of other constants. For example, KEY_WRITE is defined as:
js code:
var KEY_WRITE = ((STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & (~SYNCHRONIZE));
If you want to use the constant in your script, you have to include all references constants as well, or you calculate the result and assign it to your constant directly.
Or you just Google something like "const KEY_WRITE" and see if there's a result with the value in it.