术语 | flsgetvalue |
释义 | FlsGetValue 语法: C++ PVOID WINAPI FlsGetValue( __in DWORD dwFlsIndex ); FlsGetValue功能 检索值在调用纤维的纤维本地存储(后勤系统)为索引指定的财务和后勤系统插槽。每个纤维有其财务和后勤系统的每个指标的老虎。 参数 dwFlsIndex [in] 指数的财务和后勤系统是由FlsAlloc函数分配。 返回值 如果函数成功,返回值是存储的值在调用纤维的后勤系统插槽指定索引相关联。 如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。 备注 财务和后勤系统指标通常分配给FlsAlloc过程或函数在DLL初始化。经过财务和后勤系统索引分配过程的每一个纤维可以使用它来访问自己的财务和后勤系统的该指数的槽。阿纤维指定在调用一个后勤系统指数FlsSetValue存储在其插槽一个值。该线程在其后指定调用相同指数FlsSetValue检索存储的价值。 要求: client最低支持Vista 最低支持serverWindows服务器2003 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 纤维 FlsAlloc FlsSetValue 进程和线程函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==FlsGetValue Function Retrieves the value in the calling fiber's fiber local storage (FLS) slot for the specified FLS index. Each fiber has its own slot for each FLS index. Syntax C++ PVOID WINAPI FlsGetValue( __in DWORD dwFlsIndex ); Parameters dwFlsIndex [in] The FLS index that was allocated by the FlsAlloc function. Return Value If the function succeeds, the return value is the value stored in the calling fiber's FLS slot associated with the specified index. If the function fails, the return value is NULL. To get extended error information, call GetLastError . Remarks FLS indexes are typically allocated by the FlsAlloc function during process or DLL initialization. After an FLS index is allocated, each fiber of the process can use it to access its own FLS slot for that index. A fiber specifies an FLS index in a call to FlsSetValue to store a value in its slot. The thread specifies the same index in a subsequent call to FlsSetValue to retrieve the stored value. Requirements Minimum supported clientWindows Vista Minimum supported serverWindows Server 2003 HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Fibers FlsAlloc FlsSetValue Process and Thread Functions Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms683141(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。