I was trying to get the EnvSet() but people on the internet say it only works while script runs.
So i went doing it with the registry instead.
I accidentally replaced "path" key with my own value.
What is the default value in Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\path ? for Win10X64 ?
Second question is:
Correct, I've been working on a UDF but been caught up with other project work, so haven't really been able to do a complete test:
#RequireAdmin ;~ Required when writing to System Environment Variable
; #VARIABLES# ===================================================================================================================
Global $MAX_VALUE_NAME = 1024
Global $HWND_BROADCAST = 0xffff
Global $WM_SETTINGCHANGE = 0x001A