首先确定使用的API所在的动态库,例:gettickcount 函数 在kerner32.dll中
第二步,声明vb.net教程到VB.net中 。有二种方法
2.1
<System.Runtime.InteropServices.DllImport("kernel32.dll", EntryPoint:="GetTickCount")> _
Public Function GetTickCount() As Long
End Function
2.2
Public Declare Auto Function GetTickCount Lib “kernel32.dll” Alias “GetTickCount” () As Long
还可以简写成以下形式
Public Declare Function GetTickCount Lib "kernel32" () As Long
- 1
第三步,使用函数
Msgbox(GetTickCount().ToString)
- 1





![战神引擎传奇手游【1.76盛战传奇免授权版[摸摸登陆器]】最新整理Win系复古服务端+安卓苹果双端+GM授权物品后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251106/1B4E8594B3BEB90E8601D63A8A39CB0B.jpg)













