Используя зажатый контрол + тык мышкой по имени ф-ции, получаем, что тип надо использовать такой: THandle. Зачем нужен - используя тык по кнопочке F1, получаем:
| Цитата | phToken
Pointer to a HANDLE variable that receives a handle to a token that represents the specified user.
You can use the returned handle in calls to the ImpersonateLoggedOnUser function. In most cases, the returned handle is a primary token that you can use in calls to the CreateProcessAsUser function. However, if you specify the LOGON32_LOGON_NETWORK flag, LogonUser returns an impersonation token that you cannot use in CreateProcessAsUser unless you call DuplicateTokenEx to convert it to a primary token. When you no longer need this handle, close it by calling the CloseHandle function. | |