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 在屏幕分辨率更改后,服务器移动了字符以将其保留在屏幕上。
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈