zum Beispiel:
Private Declare PtrSafe Function CryptAcquireContext Lib "advapi32.dll" _
Alias "CryptAcquireContextA" ( _
ByRef phProv As Long, _
ByVal pszContainer As String, _
ByVal pszProvider As String, _
ByVal dwProvType As Long, _
ByVal dwFlags As Long) As Long
phProv ist ein Zeiger (Pointer) und muss deshalb LongPtr - im Zusammenhang mit PtrSafe - lauten.
|