IAgentCharacter::GetMoveCause

[从 Windows 7 开始,Microsoft 代理已弃用,可能在后续版本的 Windows 中不可用。]

HRESULT GetMoveCause(
   long * pdwCause  // address of variable for cause of character move
);

检索字符上次移动的原因。

  • 返回指示操作成功的S_OK。

pdwCause

接收字符上次移动原因的变量的地址,该变量将为下列值之一:

说明
const unsigned shortNeverMoved = 0;
尚未移动字符。
const unsigned shortUserMoved = 1;
用户拖动了字符。
const unsigned shortProgramMoved = 2;
应用程序移动了 字符。
const unsigned shortOtherProgramMoved = 3;
另一个应用程序移动了字符。
const unsigned shortSystemMoved = 4
在屏幕分辨率更改后,服务器移动了字符以将其保留在屏幕上。

另请参阅

IAgentNotifySink::Move