Hi All.
Can anybody help me with the GetTempPath API call?
I've got the
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
declare in my form, but there seems to be some trickery involved in actually getting the path, since the function returns the length rather than the value of the path. I am under the impression that the buffer string should contain the path, but that doesn't seem to be correct.
Maybe there is a different/easier way of getting the user's temp path or maybe you can show me how this API call works.
Please help!!
Can anybody help me with the GetTempPath API call?
I've got the
Private Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
declare in my form, but there seems to be some trickery involved in actually getting the path, since the function returns the length rather than the value of the path. I am under the impression that the buffer string should contain the path, but that doesn't seem to be correct.
Maybe there is a different/easier way of getting the user's temp path or maybe you can show me how this API call works.
Please help!!