客户端远程桌面连到服务器
服务器想知道其mac,是不是只能通过用WTSQuerySessionInformation来获取其ip,再sendARP来得到mac地址?int state;
WTS_CLIENT_ADDRESS *ipAddr;
state = WTSQuerySessionInformation(WTS_CURRENT_SERVER_HANDLE,
WTS_CURRENT_SESSION, WTSClientAddress, (LPTSTR *)&ipAddr, &rn);为什么返回1,但取不到ip?
在本地调试,有影响吗?谢谢大家

解决方案 »

  1.   


    你的程序是控制台程序?
    Pointer to a WTS_CLIENT_ADDRESS structure containing the network type and network address of the client. If the session specified in the SessionId parameter is a console session, ppBuffer returns a NULL pointer. 
      

  2.   


    你的程序是控制台程序?
    Pointer to a WTS_CLIENT_ADDRESS structure containing the network type and network address of the client. If the session specified in the SessionId parameter is a console session, ppBuffer returns a NULL pointer.