I'm trying to implement a clone of the 'run' dialog on the start menu under VB. This is done using 'drag and drop' api's. I have got it to accept files to be dragged on it by registering it as a droppable area, but now I need to get the file name of the file which has been dropped on to the text box. This is done using DragQueryFile, but MSDN is very vague and says that a parameter wParam is a pointer to an internal buffer containing the file name. Can anyone help me to get the file name?