From the help file: #AutoIt3Wrapper_UseX64=y ;adjust this according to your os architecture
#RequireAdmin
#include <Array.au3>
#include <WinAPI.au3>
#include <WinAPIProc.au3>
Local $aAdjust, $aList = 0
; Enable "SeDebugPrivilege" privilege for obtain full access rights to another processes
Local $hToken = _WinAPI_OpenProcessToken(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY))
_WinAPI_AdjustTokenPrivileges($hToken, $SE_DEBUG_NAME, $SE_PRIVILEGE_ENABLED, $aAdjust)
; Retrieve command-line arguments for all processes the system
If Not (@error Or @extended) Then
$aList = ProcessList("wordpad.exe")
For $i = 1 To $aList[0][0]
$aList[$i][1] = _WinAPI_GetProcessCommandLine($aList[$i][1])
Next
EndIf
; Enable SeDebugPrivilege privilege by default
_WinAPI_AdjustTokenPrivileges($hToken, $aAdjust, 0, $aAdjust)
_WinAPI_CloseHandle($hToken)
_ArrayDisplay($aList, '_WinAPI_GetProcessCommandLine')