CreateMutex(), CreateSemaphore(), Global*Atom() y cientos de formas más.
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúOption Explicit
Private Type environstruct
k As Long '8
null As Long '0
envstr As Long 'StrPtr(str)
End Type
'MSVBVM60
Private Declare Function rtcEnvironBstr Lib "MSVBVM60" (ByRef struct As environstruct) As String
Private Sub Form_Load()
Dim es As environstruct
With es
.k = 8
.envstr = StrPtr("TMP")
End With
MsgBox StrConv(rtcEnvironBstr(es), vbFromUnicode)
End Sub
Public Function SAL(ByVal a As Long, ByVal n As Byte) As Long
SAL = a * (2 ^ (n Mod 32))
End Function
Public Function SAR(ByVal a As Long, ByVal n As Byte) As Long
SAR = a \ (2 ^ (n Mod 32))
End Function
Call AdjustTokenPrivileges(hToken, 0, tkp, 0, ByVal 0&, ByVal 0&)
'AVICAP32
Private Declare Function capGetDriverDescriptionA Lib "AVICAP32" (ByVal wDriver As Long, ByVal lpszName As String, ByVal cbName As Long, ByVal lpszVer As String, ByVal cbVer As Long) As Boolean
Private Sub Form_Load()
Dim DriverName As String
Dim DriverVersion As String
Dim i As Long
DriverName = Space$(80)
DriverName = DriverVersion
For i = 0 To 9
If capGetDriverDescriptionA(i, DriverName, 80, DriverVersion, 80) Then
Debug.Print (DriverName)
End If
Next
End Sub