I'm trying to call QueryDosDevice from AutoIt but second parameter of this function put me some problems.
In C I think the buffer can be created in this way
A pointer to a buffer that will receive the result of the query. The function fills this buffer with one or more null-terminated strings. The final null-terminated string is followed by an additional NULL.
LPTSTR buffer = new TCHAR;