Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference

[Contents][Glossary][Index][Back][Next]

AIT_TaskbarItemIndex

Description

Returns the index of a selected item on the task bar.

Format

bool AIT_TaskbarItemIndex  (
  integer nIndex      // Index
);

Parameters

nIndex (output)

Specify a variable to receive the index of a task bar item. As the reference index is 1, the index for the first item is 1.

Return values

The return value is true if the function was executed normally, and false if not. If the function has returned false, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError may return.

Extended error number Error code
8 ERROR_NOT_ENOUGH_MEMORY
14 ERROR_OUTOFMEMORY
1400 ERROR_INVALID_WINDOW_HANDLE

Note

You can use this function in Windows 2000, Windows NT 4.0, Windows Me, and Windows 98. You cannot use it in Windows 8, Windows Server 2012, Windows 7, Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP.