64位Office API声明语句第111讲

news2025/1/21 2:54:07

跟我学VBA,我这里专注VBA, 授人以渔。我98年开始,从源码接触VBA已经20余年了,随着年龄的增长,越来越觉得有必要把这项技能传递给需要这项技术的职场人员。希望职场和数据打交道的朋友,都来学习VBA,利用VBA,起码可以提高自己的工作效率,可以有时间多陪陪父母,多陪陪家人,何乐而不为呢?我的教程一共九套,从入门开始一直讲到程序的分发,是学习利用VBA的实用教程。这份API资料是随高级教程赠送的.

这讲我们继续学习64位Office API声明语句第111讲,这些内容是MS的权威资料,看似枯燥,但对于想学习API函数的朋友是非常有用的。

a41cd840705250b40a111e6c83e5c819.jpeg

【分享成果,随喜正能量】你真正要做的事情,连神明都不要讲。安静地做,成功了再说。事以密成,言以泄败,隐忍且蓄势待发。潜龙勿用,才能见龙在天而当。。

当学员学习到高级阶段,如果引用API,这个资料可以直接查到64位写法。大多数情况下我们是将低版本的程序文件升级到高版本,这时您就不必为如下的错误提示所困扰了:

0d67ce4d09f1f072b7770a5c5f3f237b.jpeg

Const NI_SETCANDIDATE_PAGESTART = &H16

Const NI_SETCANDIDATE_PAGESIZE = &H17

' lParam for WM_IME_SETCONTEXT

Const ISC_SHOWUICANDIDATEWINDOW = &H1

Const ISC_SHOWUICOMPOSITIONWINDOW = &H80000000

Const ISC_SHOWUIGUIDELINE = &H40000000

Const ISC_SHOWUIALLCANDIDATEWINDOW = &HF

Const ISC_SHOWUIALL = &HC000000F

' dwIndex for ImmNotifyIME/NI_COMPOSITIONSTR

Const CPS_COMPLETE = &H1

Const CPS_CONVERT = &H2

Const CPS_REVERT = &H3

Const CPS_CANCEL = &H4

' Windows for Simplified Chinese Edition hot key ID from 0x10 - 0x2F

Const IME_CHOTKEY_IME_NONIME_TOGGLE = &H10

Const IME_CHOTKEY_SHAPE_TOGGLE = &H11

Const IME_CHOTKEY_SYMBOL_TOGGLE = &H12

' Windows for Japanese Edition hot key ID from 0x30 - 0x4F

Const IME_JHOTKEY_CLOSE_OPEN = &H30

' Windows for Korean Edition hot key ID from 0x50 - 0x6F

Const IME_KHOTKEY_SHAPE_TOGGLE = &H50

Const IME_KHOTKEY_HANJACONVERT = &H51

Const IME_KHOTKEY_ENGLISH = &H52

' Windows for Tranditional Chinese Edition hot key ID from 0x70 - 0x8F

Const IME_THOTKEY_IME_NONIME_TOGGLE = &H70

Const IME_THOTKEY_SHAPE_TOGGLE = &H71

Const IME_THOTKEY_SYMBOL_TOGGLE = &H72

' direct switch hot key ID from 0x100 - 0x11F

Const IME_HOTKEY_DSWITCH_FIRST = &H100

Const IME_HOTKEY_DSWITCH_LAST = &H11F

' IME private hot key from 0x200 - 0x21F

Const IME_ITHOTKEY_RESEND_RESULTSTR = &H200

Const IME_ITHOTKEY_PREVIOUS_COMPOSITION = &H201

Const IME_ITHOTKEY_UISTYLE_TOGGLE = &H202

' parameter of ImmGetCompositionString

Const GCS_COMPREADSTR = &H1

Const GCS_COMPREADATTR = &H2

Const GCS_COMPREADCLAUSE = &H4

Const GCS_COMPSTR = &H8

Const GCS_COMPATTR = &H10

Const GCS_COMPCLAUSE = &H20

Const GCS_CURSORPOS = &H80

Const GCS_DELTASTART = &H100

Const GCS_RESULTREADSTR = &H200

Const GCS_RESULTREADCLAUSE = &H400

Const GCS_RESULTSTR = &H800

Const GCS_RESULTCLAUSE = &H1000

' style bit flags for WM_IME_COMPOSITION

Const CS_INSERTCHAR = &H2000

Const CS_NOMOVECARET = &H4000

' bits of fdwInit of INPUTCONTEXT

' IME property bits

Const IME_PROP_AT_CARET = &H10000

Const IME_PROP_SPECIAL_UI = &H20000

Const IME_PROP_CANDLIST_START_FROM_1 = &H40000

Const IME_PROP_UNICODE = &H80000

' IME UICapability bits

Const UI_CAP_2700 = &H1

Const UI_CAP_ROT90 = &H2

Const UI_CAP_ROTANY = &H4

' ImmSetCompositionString Capability bits

Const SCS_CAP_COMPSTR = &H1

Const SCS_CAP_MAKEREAD = &H2

' IME WM_IME_SELECT inheritance Capability bits

Const SELECT_CAP_CONVERSION = &H1

Const SELECT_CAP_SENTENCE = &H2

' ID for deIndex of ImmGetGuideLine

Const GGL_LEVEL = &H1

Const GGL_INDEX = &H2

Const GGL_STRING = &H3

Const GGL_PRIVATE = &H4

' ID for dwLevel of GUIDELINE Structure

Const GL_LEVEL_NOGUIDELINE = &H0

Const GL_LEVEL_FATAL = &H1

Const GL_LEVEL_ERROR = &H2

Const GL_LEVEL_WARNING = &H3

Const GL_LEVEL_INFORMATION = &H4

' ID for dwIndex of GUIDELINE Structure

Const GL_ID_UNKNOWN = &H0

Const GL_ID_NOMODULE = &H1

Const GL_ID_NODICTIONARY = &H10

Const GL_ID_CANNOTSAVE = &H11

Const GL_ID_NOCONVERT = &H20

Const GL_ID_TYPINGERROR = &H21

Const GL_ID_TOOMANYSTROKE = &H22

Const GL_ID_READINGCONFLICT = &H23

Const GL_ID_INPUTREADING = &H24

Const GL_ID_INPUTRADICAL = &H25

Const GL_ID_INPUTCODE = &H26

Const GL_ID_INPUTSYMBOL = &H27

Const GL_ID_CHOOSECANDIDATE = &H28

Const GL_ID_REVERSECONVERSION = &H29

Const GL_ID_PRIVATE_FIRST = &H8000&

Const GL_ID_PRIVATE_LAST = &HFFFF&

' ID for dwIndex of ImmGetProperty

Const IGP_PROPERTY = &H4

Const IGP_CONVERSION = &H8

Const IGP_SENTENCE = &HC

Const IGP_UI = &H10

Const IGP_SETCOMPSTR = &H14

Const IGP_SELECT = &H18

' dwIndex for ImmSetCompositionString API

Const SCS_SETSTR = (GCS_COMPREADSTR Or GCS_COMPSTR)

Const SCS_CHANGEATTR = (GCS_COMPREADATTR Or GCS_COMPATTR)

Const SCS_CHANGECLAUSE = (GCS_COMPREADCLAUSE Or GCS_COMPCLAUSE)

' attribute for COMPOSITIONSTRING Structure

Const ATTR_INPUT = &H0

Const ATTR_TARGET_CONVERTED = &H1

Const ATTR_CONVERTED = &H2

Const ATTR_TARGET_NOTCONVERTED = &H3

Const ATTR_INPUT_ERROR = &H4

' bit field for IMC_SETCOMPOSITIONWINDOW, IMC_SETCANDIDATEWINDOW

Const CFS_DEFAULT = &H0

Const CFS_RECT = &H1

Const CFS_POINT = &H2

Const CFS_SCREEN = &H4

Const CFS_FORCE_POSITION = &H20

Const CFS_CANDIDATEPOS = &H40

Const CFS_EXCLUDE = &H80

' conversion direction for ImmGetConversionList

Const GCL_CONVERSION = &H1

Const GCL_REVERSECONVERSION = &H2

Const GCL_REVERSE_LENGTH = &H3

' bit field for conversion mode

Const IME_CMODE_ALPHANUMERIC = &H0

Const IME_CMODE_NATIVE = &H1

Const IME_CMODE_CHINESE = IME_CMODE_NATIVE

Const IME_CMODE_HANGEUL = IME_CMODE_NATIVE

Const IME_CMODE_JAPANESE = IME_CMODE_NATIVE

Const IME_CMODE_KATAKANA = &H2 ' only effect under IME_CMODE_NATIVE

Const IME_CMODE_LANGUAGE = &H3

Const IME_CMODE_FULLSHAPE = &H8

Const IME_CMODE_ROMAN = &H10

Const IME_CMODE_CHARCODE = &H20

Const IME_CMODE_HANJACONVERT = &H40

Const IME_CMODE_SOFTKBD = &H80

Const IME_CMODE_NOCONVERSION = &H100

Const IME_CMODE_EUDC = &H200

Const IME_CMODE_SYMBOL = &H400

Const IME_SMODE_NONE = &H0

Const IME_SMODE_PLAURALCLAUSE = &H1

Const IME_SMODE_SINGLECONVERT = &H2

Const IME_SMODE_AUTOMATIC = &H4

Const IME_SMODE_PHRASEPREDICT = &H8

' style of candidate

Const IME_CAND_UNKNOWN = &H0

Const IME_CAND_READ = &H1

Const IME_CAND_CODE = &H2

Const IME_CAND_MEANING = &H3

Const IME_CAND_RADICAL = &H4

Const IME_CAND_STROKE = &H5

' wParam of report message WM_IME_NOTIFY

Const IMN_CLOSESTATUSWINDOW = &H1

Const IMN_OPENSTATUSWINDOW = &H2

Const IMN_CHANGECANDIDATE = &H3

Const IMN_CLOSECANDIDATE = &H4

Const IMN_OPENCANDIDATE = &H5

Const IMN_SETCONVERSIONMODE = &H6

Const IMN_SETSENTENCEMODE = &H7

Const IMN_SETOPENSTATUS = &H8

Const IMN_SETCANDIDATEPOS = &H9

Const IMN_SETCOMPOSITIONFONT = &HA

Const IMN_SETCOMPOSITIONWINDOW = &HB

Const IMN_SETSTATUSWINDOWPOS = &HC

Const IMN_GUIDELINE = &HD

Const IMN_PRIVATE = &HE

' error code of ImmGetCompositionString

Const IMM_ERROR_NODATA = (-1)

Const IMM_ERROR_GENERAL = (-2)

' dialog mode of ImmConfigureIME

Const IME_CONFIG_GENERAL = 1

Const IME_CONFIG_REGISTERWORD = 2

Const IME_CONFIG_SELECTDICTIONARY = 3

' dialog mode of ImmEscape

Const IME_ESC_QUERY_SUPPORT = &H3

Const IME_ESC_RESERVED_FIRST = &H4

Const IME_ESC_RESERVED_LAST = &H7FF

Const IME_ESC_PRIVATE_FIRST = &H800

Const IME_ESC_PRIVATE_LAST = &HFFF

Const IME_ESC_SEQUENCE_TO_INTERNAL = &H1001

Const IME_ESC_GET_EUDC_DICTIONARY = &H1003

Const IME_ESC_SET_EUDC_DICTIONARY = &H1004

Const IME_ESC_MAX_KEY = &H1005

Const IME_ESC_IME_NAME = &H1006

Const IME_ESC_SYNC_HOTKEY = &H1007

Const IME_ESC_HANJA_MODE = &H1008

' style of word registration

Const IME_REGWORD_STYLE_EUDC = &H1

Const IME_REGWORD_STYLE_USER_FIRST = &H80000000

Const IME_REGWORD_STYLE_USER_LAST = &HFFFFFFFF

' type of soft keyboard

' for Windows Tranditional Chinese Edition

Const SOFTKEYBOARD_TYPE_T1 = &H1

' for Windows Simplified Chinese Edition

Const SOFTKEYBOARD_TYPE_C1 = &H2

' ***********************************************************************

' * *

' * mcx.h -- This module defines the 32-Bit Windows MCX APIs *

' * *

' * Copyright (c) 1990-1995, Microsoft Corp. All rights reserved. *

' * *

' ************************************************************************/

Type MODEMDEVCAPS

        dwActualSize As Long

        dwRequiredSize As Long

        dwDevSpecificOffset As Long

        dwDevSpecificSize As Long

    ' product and version identification

        dwModemProviderVersion As Long

        dwModemManufacturerOffset As Long

        dwModemManufacturerSize As Long

        dwModemModelOffset As Long

        dwModemModelSize As Long

        dwModemVersionOffset As Long

        dwModemVersionSize As Long

    ' local option capabilities

        dwDialOptions As Long ' bitmap of supported values

        dwCallSetupFailTimer As Long ' maximum in seconds

        dwInactivityTimeout As Long ' maximum in seconds

        dwSpeakerVolume As Long ' bitmap of supported values

        dwSpeakerMode As Long ' bitmap of supported values

        dwModemOptions As Long ' bitmap of supported values

        dwMaxDTERate As Long ' maximum value in bit/s

        dwMaxDCERate As Long ' maximum value in bit/s

    ' Variable portion for proprietary expansion

        abVariablePortion(1) As Byte

End Type

Type MODEMSETTINGS

        dwActualSize As Long

        dwRequiredSize As Long

        dwDevSpecificOffset As Long

        dwDevSpecificSize As Long

    ' static local options (read/write)

        dwCallSetupFailTimer As Long ' seconds

        dwInactivityTimeout As Long ' seconds

        dwSpeakerVolume As Long ' level

        dwSpeakerMode As Long ' mode

        dwPreferredModemOptions As Long ' bitmap

    ' negotiated options (read only) for current or last call

        dwNegotiatedModemOptions As Long ' bitmap

        dwNegotiatedDCERate As Long ' bit/s

    ' Variable portion for proprietary expansion

        abVariablePortion(1) As Byte

End Type

' Dial Options

Const DIALOPTION_BILLING = &H40 ' Supports wait for bong "$"

Const DIALOPTION_QUIET = &H80 ' Supports wait for quiet "@"

Const DIALOPTION_DIALTONE = &H100 ' Supports wait for dial tone "W"

' SpeakerVolume for MODEMDEVCAPS

Const MDMVOLFLAG_LOW = &H1

Const MDMVOLFLAG_MEDIUM = &H2

Const MDMVOLFLAG_HIGH = &H4

ff163141f7864c950f17d98ea3cb6bab.jpeg

我20多年的VBA实践经验,全部浓缩在下面的各个教程中:


8e11074bce60251ca1abf37bc857b098.jpeg

772553bb5d7c1d4ac1833cf880b83bd4.jpeg

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1064079.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

企业使用SSL证书对于SEO有多重要

在当今竞争激烈的在线市场中,搜索引擎优化(SEO)是企业获得更高排名和增加网站流量的关键。在SEO策略中,企业使用SSL证书已经成为多重不可忽视的重要因素。让我们一起探究企业使用SSL证书对于SEO的重要性。 首先,搜索引…

socket.error: [Errno 10049]错误

今天在pycharm运行rl_server_no_training.py欲启动服务器时&#xff0c;却出现如下错误 Traceback (most recent call last):File "xxx/rl_server_no_training.py", line 333, in <module>main()File "xxx/rl_server_no_training.py", line 326, in…

【C++】运算符重载 ⑧ ( 左移运算符重载 | 友元函数 / 成员函数 实现运算符重载 | 类对象 使用 左移运算符 )

文章目录 一、左移运算符重载1、友元函数 / 成员函数 实现运算符重载2、类对象 使用 左移运算符3、左移运算符 << 重载 二、完整代码示例 一、左移运算符重载 1、友元函数 / 成员函数 实现运算符重载 运算符重载 的正规写法一般都是 使用 成员函数 的形式 实现的 ; 加法…

DLRover - 小记

文章目录 关于 DLRover 关于 DLRover github : https://github.com/intelligent-machine-learning/dlrover DLOver使大型人工智能模型的分布式训练变得简单、稳定、快速和绿色。 它可以在分布式集群上自动训练深度学习模型。 它帮助模型开发人员专注于模型结构&#xff0c;而…

手把手教你从零开始腾讯云服务器部署(连接建站教程)

使用腾讯云服务器搭建网站全流程&#xff0c;包括轻量应用服务器和云服务器CVM建站教程&#xff0c;轻量可以使用应用镜像一键建站&#xff0c;云服务器CVM可以通过安装宝塔面板的方式来搭建网站&#xff0c;腾讯云服务器网txyfwq.com分享使用腾讯云服务器建站教程&#xff0c;…

双周回顾#001 - 火烧云

工作以来&#xff0c;许久未曾见过如此壮观的火烧云景观了。 文章 1、穿透的 DIV &#xff08;pointer-events&#xff09;1 pointer-events 是一个蛮有趣的 CSS3 属性&#xff0c;虽然主要是针对 SVG &#xff0c;但其中几个属性应用在 div 上也是颇有意思。 顾名思义&…

学会自我投资:美团四大名著之<高效能人士的七个习惯>

你有没有这些问题&#xff1f;如果有&#xff0c;那么本文也许对你有用。 受害者心理&#xff0c;如果有人对你说粗话&#xff0c;就怼回去。消极被动。 没有计划。没有目标。不会担心自己的行为带来的后果。随波逐流。及时行乐&#xff0c;做个玩世不恭者。 拖延。总是先做紧…

vue +element 批量删除

1.拿到当前勾选状态 在el-table里边去写 单选用第一个 多选用第二个 select"selectHandle" :当用户手动勾选数据行的 Checkbox 时触发的事件 select-all"selectHandle":当用户手动勾选全选 Checkbox 时触发的事件// 点击勾选选择器selectHandle(selection…

机器学习:决策树

决策树 决策树是一种基于树形结构的模型&#xff0c;决策树从根节点开始&#xff0c;一步步走到叶子节点&#xff08;决策&#xff09;&#xff0c;所有的数据最终都会落到叶子节点&#xff0c;既可以做分类也可以做回归。 特征选择 根节点的选择该用哪一个特征呢&#xff…

【python海洋专题十二】年平均的南海海表面温度图

【python海洋专题十二】年平均的南海海表面温度图 上期内容 南海水深图 本期内容 年平均的南海平面温度图 数据来源 NCEP/DOE Reanalysis II: NOAA Physical Sciences Laboratory NCEP/DOE Reanalysis II skt.skt.sfc.mon.ltm.nc Part01. 本文重点内容 前几期地形图&a…

SSM - Springboot - MyBatis-Plus 全栈体系(二十一)

第四章 SpringMVC 四、RESTFUL 风格设计和实战 1. RESTFul 风格概述 1.1 RESTFul 风格简介 RESTful&#xff08;Representational State Transfer&#xff09;是一种软件架构风格&#xff0c;用于设计网络应用程序和服务之间的通信。它是一种基于标准 HTTP 方法的简单和轻量…

QT基础入门——QMainWindow与对话框QDialog

前言&#xff1a; Qt 并没有专门的菜单项类&#xff0c;只是使用一个QAction类&#xff0c;抽象出公共的动作。当我们把QAction对象添加到菜单&#xff0c;就显示成一个菜单项&#xff0c;添加到工具栏&#xff0c;就显示成一个工具按钮。用户可以通过点击菜单项、点击工具栏按…

visual studio解决bug封装dll库

1.速度最大化 O2 2.设置输出目录 配置属性/常规/输出目录 链接器/常规/输出dll文件 链接器/调试/输出程序数据库pdb文件 链接器/高级/导入库 3.输出X86 X64分别对应的dll、lib、pdb 然后修改更新说明 更新说明格式如下&#xff1a; 4.将库提交到FTP每日更新库文档下 和测试交接…

运维/全栈必备Window指令

运维/全栈必备Window指令 前言 大家好 我是寸铁 除了Linux有常用的命令 Windows也有 下面让我们一起来看看吧! 总共是40个命令&#xff0c;按照前缀大致划分成25个命令。 便于系统学习和掌握。 需要用到的快捷键&#xff1a; 复制键&#xff1a; ctrl insert退出键&#x…

JTAG/SWD接口定义

目录 1. ST-Link接口定义 2. ULINK2接口定义 为方便查阅&#xff0c;将ST-LINK和ULINK的JTAG和SWD接口定义总结如下&#xff1a; 1. ST-Link接口定义 Pin no. ST-LINK/V2 connector (CN3) ST-LINK/V2 function Target connection (JTAG) Target connection (SWD) 1 VA…

Linux:环境变量、地址空间

目录 一、环境变量 1、什么是环境变量 2、常见的环境变量 3、环境变量相关命令 二、地址空间 1、进程地址空间 2、虚拟地址空间 一、环境变量 1、什么是环境变量 首先先举个环境变量的例子&#xff1a; 我们在Linux中&#xff0c;运行ls、pwd之类的命令&#xff0c;直…

RabbitMQ学习笔记(下):延迟队列,发布确认高级,备份交换机

十、延迟队列 延迟队列 概念&#xff1a; 延迟队列使用场景&#xff1a; 流程图&#xff1a; 延迟队列整合Springboot 导入依赖&#xff1a; <dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot…

基于SSM的电脑硬件库存管理系统的设计与实现

末尾获取源码 开发语言&#xff1a;Java Java开发工具&#xff1a;JDK1.8 后端框架&#xff1a;SSM 前端&#xff1a;采用JSP技术开发 数据库&#xff1a;MySQL5.7和Navicat管理工具结合 服务器&#xff1a;Tomcat8.5 开发软件&#xff1a;IDEA / Eclipse 是否Maven项目&#x…

物联网AI MicroPython传感器学习 之 IR人体红外传感器

学物联网&#xff0c;来万物简单IoT物联网&#xff01;&#xff01; 一、产品简介 热释电红外运动传感器能检测运动的人或动物身上发出的红外线&#xff0c;输出开关信号&#xff0c;可以应用于各种需要检测运动人体的场合。传统的热释电红外传感器需要人体热释电红外探头、专…

C++基础语法——unordered_map和unordered_set

1. unordered系列关联式容器 在C98中&#xff0c;STL提供了底层为红黑树结构的一系列关联式容器&#xff0c;在查询时效率可达到log(N)&#xff0c;即最差情况下需要比较红黑树的高度次&#xff0c;当树中的节点非常多时&#xff0c;查询效率也不理想。最好的查询是&#xff0c…