⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getlocaleinfo.htm

📁 vb的api函数
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>GetLocaleInfo</title>
</head>

<body background="../../../images/gray_weave.gif" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">


<div align="center"><center>

<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="16">GetLocaleInfo</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="102%" colspan="2">VB声明</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">Declare Function GetLocaleInfo Lib &quot;kernel32&quot; Alias 
    &quot;GetLocaleInfoA&quot; (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As 
    String, ByVal cchData As Long) As Long</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">说明</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">取得与指定“地方”有关的信息</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">返回值</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">Long,装载到缓冲区的字符数,或者cchData要求的缓冲区长度。零表示出错。会将<a
    href="GetLastError.htm">GetLastError</a>设为下述值之一:ERROR_INSUFFICIENT_BUFFER,ERROR_INVALID_FLAGS,ERROR_INVALID_PARAMETER</td>
  </tr>
  <tr>
    <td width="102%" colspan="2">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="77%">类型及说明</td>
  </tr>
  <tr>
    <td width="25%">Locale</td>
    <td width="77%">Long,欲为其获得信息的地方ID</td>
  </tr>
  <tr>
    <td width="25%">LCType</td>
    <td width="77%">Long,要取回的信息类型。参考api32.txt文件中带 LOCALE_ 
    前缀的常数。用OR运算符合并LOCALE_NOUSEROVERRIDE,从而强制使用系统默认信息——即使当前用户已修改了相关设置</td>
  </tr>
  <tr>
    <td width="25%">lpLCData</td>
    <td width="77%">String,指定一个缓冲区,用于装载要求的信息。注意预先将字串格式化成合适的长度</td>
  </tr>
  <tr>
    <td width="25%">cchData</td>
    <td width="77%">Long,lpLCData缓冲区的长度;如设为零,表示获取必要的缓冲区长度</td>
  </tr>
</table>
</center></div>


</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -