How to get a response message of LIST command (from CFTPConnection)

后端 未结 1 1373
你的背包
你的背包 2021-01-15 23:34

How can I get a response of LIST command executed with CFTPConnection::Command(). I can get the directory listing. But not free space size informat

1条回答
  •  迷失自我
    2021-01-16 00:10

    It does not look like that the MFC CFTPConnection class has an API to access the response message of the command executed.

    Though as the class is just a wrapper around Win32 Wininet functions, you can use InternetGetLastResponseInfo function to retrieve the response right after calling CFTPConnection::Command.

    Retrieves the last error description or server response on the thread calling this function.

    0 讨论(0)
提交回复
热议问题