GetWindowsDirectory

    GetWindowsDirectory - 운영체제 설치경로

    Declare Function GetWindowsDirectory Lib "Kernel32" Alias "GetWindowsDirectoryA" (ByVal Name As String, ByVal Size As Integer) As Integer ▶VB.NET 선언 Dim sName As String = Space(10) GetWindowsDirectory(sName, 11) sName ▶VB.NET 호출 [System.Runtime.InteropServices.DllImport("Kernel32.dll")] private static extern int GetWindowsDirectory(StringBuilder Name, int Size); ▶C# 선언 StringBuilder sName = new ..