网站首页  词典首页

请输入您要查询的函数:

 

术语 setusergeoid
释义 SetUserGeoID
语法:
BOOL SetUserGeoID(
__in GEOID GeoId
);
SetUserGeoID功能
设置为用户的地理位置标识。此标识符应该享有的地理位置表中描述的值之一。
参数
大地水准面 [in]
标识符用户的地理位置。
返回值
返回TRUE,如果成功,否则返回FALSE。
Windows XP, Windows Server 2003: This function does not supply extended error information.因此,不宜应用程序调用该函数后,GetLastError函数。如果应用程序调用GetLastError函数,它可以返回一些先前被调用函数设置值。
如果该函数没有成功,应用程序可以调用GetLastError函数,可以返回以下错误代码之一:
ERROR_ACCESS_DISABLED_BY_POLICY。计算机的组策略或用户已禁止此操作。
ERROR_INTERNAL_ERROR。发生意外的错误的功能。
ERROR_INVALID_PARAMETER。该参数值的任何无效。
备注
这个函数写入注册表中的一个,而不是某一特定的用户应用的地理位置。这一行动影响由用户运行其他应用程序的行为。作为一项规则,应用程序应调用此只有当用户明确要求功能的变化,但不纯粹是应用程序的具体原因。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderWinnls.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
国家语言支持
国家语言支持功能
地理位置表
GetUserGeoID
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月12号
==英文原文==SetUserGeoID Function
Sets the geographical location identifier for the user. This identifier should have one of the values described in Table of Geographical Locations .
Syntax
BOOL SetUserGeoID(
__in GEOID GeoId
);
Parameters
GeoId [in]
Identifier for the geographical location of the user.
Return Value
Returns TRUE if successful or FALSE otherwise.
Windows XP, Windows Server 2003: This function does not supply extended error information. Thus it is not appropriate for an application to call GetLastError after this function. If the application does call GetLastError , it can return a value set by some previously called function.
If this function does not succeed, the application can call GetLastError , which can return one of the following error codes:
ERROR_ACCESS_DISABLED_BY_POLICY. The group policy of the computer or the user has forbidden this operation.
ERROR_INTERNAL_ERROR. An unexpected error occurred in the function.
ERROR_INVALID_PARAMETER. Any of the parameter values was invalid.
Remarks
This function writes to the registry the geographical location for a particular user instead of a particular application. This action affects the behavior of other applications run by the user. As a rule, the application should call this function only when the user has explicitly requested changes, but not for purely application-specific reasons.
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWinnls.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
National Language Support
National Language Support Functions
Table of Geographical Locations
GetUserGeoID
Send comments about this topic to Microsoft
Build date: 7/12/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd374055(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:24:55