⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getwindowsdir.txt

📁 一部分关于VB编程的小技巧
💻 TXT
字号:
Public Declare Function GetWindowsDirectory Lib "kernel32" _
    Alias "GetWindowsDirectoryA" _
    (ByVal lpBuffer As String, ByVal nSize As Long) As Long

Public Function GetWinDir() As String
    Dim windir As String  ' receives path of Windows directory
    Dim SLength As Long  ' receives length of the string returned

    windir = Space(255)  ' initialize buffer to receive the string
    SLength = GetWindowsDirectory(windir, 255)  ' read the path of the Windows directory
    windir = Left(windir, SLength)  ' extract the returned string from the buffer
    GetWinDir = windir
End Function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -