Searching...
2:02 AM

Get Windows Dir

code:
Public Declare Function GetWindowsDirectory Lib "Kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long

Public Function GetWin() As String
Dim strWin As String

    strWin = Space(256)
    strPath = GetWindowsDirectory(strWin, 512)
    GetWin = Left$(strWin, strPath) & "\"

End Function

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Back to top!