如何在VB中使用API [英] How to use APIs in VBs

查看:90
本文介绍了如何在VB中使用API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想了解是否以及如何在.vbs文件中使用Windows API。


我需要阅读来自.vbs的getprivateprofilestring的.ini文件...


谢谢


FE

Hi,

I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...

Thanks

FE

推荐答案

" FE" < FR ****** @ esnouf.net> schrieb
"FE" <fr******@esnouf.net> schrieb
我想知道是否以及如何在.vbs
文件中使用Windows API。

我需要读取带有getprivateprofilestring的.ini文件。 vbs
...
I would liket to know if and how to use Windows APIs in .vbs
files.

I need to read a .ini file with getprivateprofilestring from .vbs
...




这是一个VB.NET组(见组名)。

-

Armin



This is a VB.NET group (see group name).
--
Armin


例如在你想要的dll中声明这个函数。


私有声明函数SendMessage Lib" user32.dll"别名SendMessageA

(ByVal hWnd As IntPtr,ByVal wMsg as Int32,ByVal wParam As Int32,ByVal

lParam as Int32)As Int32


Const WM_VSCROLL As Int32 =& H115


Const SB_LINEDOWN As Int32 = 1

Const SB_LINEUP As Int32 = 0

-

问候 - 一个单手男人


作者:Fish .NET&保持.NET

======================================= ==

此帖子按原样提供。没有保证,

并且不授予任何权利。

" FE" < FR ****** @ esnouf.net>在消息中写道

news:ub ************** @ TK2MSFTNGP09.phx.gbl ...
Declare the function in the dll that you want like this for example.

Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA"
(ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal
lParam As Int32) As Int32

Const WM_VSCROLL As Int32 = &H115

Const SB_LINEDOWN As Int32 = 1

Const SB_LINEUP As Int32 = 0
--
Regards - One Handed Man

Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.
"FE" <fr******@esnouf.net> wrote in message
news:ub**************@TK2MSFTNGP09.phx.gbl...

我想知道是否以及如何在.vbs文件中使用Windows API。

我需要使用.vbs中的getprivateprofilestring读取.ini文件...

谢谢

FE
Hi,

I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...

Thanks

FE



" FE" < FR ****** @ esnouf.net> schrieb:
"FE" <fr******@esnouf.net> schrieb:
我想知道是否以及如何在.vbs文件中使用Windows API。

我需要从.vbs中读取带有getprivateprofilestring的.ini文件。 。
I would liket to know if and how to use Windows APIs in .vbs files.

I need to read a .ini file with getprivateprofilestring from .vbs ...




这是一个VB.NET语言组。请转到此:

新闻: //news.microsoft.com/microsoft....pting.vbscript

-

Herfried K. Wagner

MVP·VB Classic,VB.NET
http:// www。 mvps.org/dotnet


这篇关于如何在VB中使用API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆