网站首页  词典首页

请输入您要查询的函数:

 

术语 avsetmmthreadcharacteristics
释义 AvSetMmThreadCharacteristics
语法:
C++
HANDLE WINAPI AvSetMmThreadCharacteristics(
__in LPCTSTR TaskName,
__inout LPDWORD TaskIndex
);
AvSetMmThreadCharacteristics功能
协会与指定的任务调用线程。
参数
TaskName [in]
任务的名称执行。此名称必须与下列项HKEY_LOCAL_MACHINE的一个子项名称\\软件\\微软\\视窗NT \\ CurrentVersion \\多媒体\\ SystemProfile \\任务。
TaskIndex [ in , out ]
独特的任务标识符。第一次调用此函数,这个值必须是0的投入。该指数值返回输出,可在随后的电话投入使用。
返回值
如果函数成功,它返回的句柄任务。
如果函数失败,返回0。要检索扩展的错误信息,调用GetLastError。
以下是可能的错误代码。
返回codeDescription
ERROR_INVALID_TASK_INDEXEither TaskIndex不为0在第一次调用或不认可的价值(在后续调用)。
ERROR_INVALID_TASK_NAMEThe指定的任务不匹配的任何任务存储在注册表中。
ERROR_PRIVILEGE_NOT_HELDThe调用方没有足够的权限。
备注
当任务完成后,调用AvRevertMmThreadCharacteristics功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderAvrt.h
LibraryAvrt.lib
DLLAvrt.dll
Unicode和ANSI namesAvSetMmThreadCharacteristicsW(Unicode)和AvSetMmThreadCharacteristicsA(ANSI)的
参见
多媒体类计划程序服务
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==AvSetMmThreadCharacteristics Function
Associates the calling thread with the specified task.
Syntax
C++
HANDLE WINAPI AvSetMmThreadCharacteristics(
__in LPCTSTR TaskName,
__inout LPDWORD TaskIndex
);
Parameters
TaskName [in]
The name of the task to be performed. This name must match the name of one of the subkeys of the following key HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks.
TaskIndex [in, out]
The unique task identifier. The first time this function is called, this value must be 0 on input. The index value is returned on output and can be used as input in subsequent calls.
Return Value
If the function succeeds, it returns a handle to the task.
If the function fails, it returns 0. To retrieve extended error information, call GetLastError .
The following are possible error codes.
Return codeDescription
ERROR_INVALID_TASK_INDEXEither TaskIndex is not 0 on the first call or is not recognized value (on subsequent calls).
ERROR_INVALID_TASK_NAMEThe specified task does not match any of the tasks stored in the registry.
ERROR_PRIVILEGE_NOT_HELDThe caller does not have sufficient privilege.

Remarks
When the task is completed, call the AvRevertMmThreadCharacteristics function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderAvrt.h
LibraryAvrt.lib
DLLAvrt.dll
Unicode and ANSI namesAvSetMmThreadCharacteristicsW (Unicode) and AvSetMmThreadCharacteristicsA (ANSI)
See Also
Multimedia Class Scheduler Service
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms681974(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:27:41