主题:[讨论]模块定义中的区别
我是个入门者,很多东西都要自己分析。
但看到模块那些定义的API就很难解读下去了
其中:Private Declare Function ...和 Public const ;Public Function还有
Public Type;Public Enum 等等这些定义有什么区别???还有图片和其他的数据也可以用string,long,single这些类型来运行嘛??
如下:
Public Const SYNCHRONIZE As Long = &H100000
Public Type TIME_ZONE_INFORMATION
Bias As Long
StandardName As String * 64
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName As String * 64
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
Public Enum COMPUTER_NAME_FORMAT
ComputerNameNetBIOS
ComputerNameDnsHostname
ComputerNameDnsDomain
ComputerNameDnsFullyQualified
ComputerNamePhysicalNetBIOS
ComputerNamePhysicalDnsHostname
ComputerNamePhysicalDnsDomain
ComputerNamePhysicalDnsFullyQualified
ComputerNameMax
End Enum
Public Function Thread32_Enum(ByRef Thread() As THREADENTRY32, _
ByVal lProcessID As Long) As Long
Private Declare Function ResumeThread Lib "kernel32.dll" (ByVal hThread As Long) As Long
但看到模块那些定义的API就很难解读下去了
其中:Private Declare Function ...和 Public const ;Public Function还有
Public Type;Public Enum 等等这些定义有什么区别???还有图片和其他的数据也可以用string,long,single这些类型来运行嘛??
如下:
Public Const SYNCHRONIZE As Long = &H100000
Public Type TIME_ZONE_INFORMATION
Bias As Long
StandardName As String * 64
StandardDate As SYSTEMTIME
StandardBias As Long
DaylightName As String * 64
DaylightDate As SYSTEMTIME
DaylightBias As Long
End Type
Public Enum COMPUTER_NAME_FORMAT
ComputerNameNetBIOS
ComputerNameDnsHostname
ComputerNameDnsDomain
ComputerNameDnsFullyQualified
ComputerNamePhysicalNetBIOS
ComputerNamePhysicalDnsHostname
ComputerNamePhysicalDnsDomain
ComputerNamePhysicalDnsFullyQualified
ComputerNameMax
End Enum
Public Function Thread32_Enum(ByRef Thread() As THREADENTRY32, _
ByVal lProcessID As Long) As Long
Private Declare Function ResumeThread Lib "kernel32.dll" (ByVal hThread As Long) As Long