Code:
if tonumber(Shell32Library.Shell_NotifyIcon(NIM_ADD,poi)) == 0 then MemoryEx.Free(lpBuff); hStruct:Close(); TTIi.DestroyIcon(Ih) return false, "Create tray icon failed" else MemoryEx.Free(lpBuff); hStruct:Close(); TTIi.DestroyIcon(Ih) return true, "OK" end
Code:
MemoryEx.Free(lpBuff); hStruct:Close(); TTIi.DestroyIcon(Ih); if tonumber(Shell32Library.Shell_NotifyIcon(NIM_ADD,poi)) == 0 then return false, "Create tray icon failed" else return true, "OK" end
Comment