#INCLUDE ApiRef.h LOCAL lRetVal, iBaseKey, sSubKey, iReservedm iClass, iOptions LOCAL iAccess, nAttrib, iHandle, iDisposition DECLARE INTEGER RegCreateKeyEx IN Win32API; INTEGER @iBaseKey,; STRING @sSubKey,; INTEGER @iReserved,; STRING @iClass,; INTEGER @iOptions,; INTEGER @iAccess,; INTEGER @iSecurity,; INTEGER @iHandle,; INTEGER @iDisposition iBaseKey = HKEY_LOCAL_MACHINE sSubKey = REG_TEST_KEY iReserved = REG_OPTION_RESERVED iClass = "" iOptions = REG_OPTION_NON_VOLATILE iAccess = KEY_ALL_ACCESS nAttrib = NULL iHandle = 0 iDisposition = 0 lRetVal = RegCreateKeyEx(@iBaseKey, @sSubKey, @iReserved, @iClass,; @iOptions, @iAccess, @nAttrib, @iHandle, @iDisposition) ? lRetVal, iHandle, iDisposition RETURN