728x90
반응형
728x170
■ GetNetworkParams API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
using System;
using System.Runtime.InteropServices;
#region 네트워크 매개 변수 구하기 - GetNetworkParams(fixedInformationHandle, bufferLength)
/// <summary>
/// 네트워크 매개 변수 구하기
/// </summary>
/// <param name="fixedInformationHandle">고정 정보 핸들</param>
/// <param name="bufferLength">버퍼 길이</param>
/// <returns>처리 결과</returns>
[DllImport("iphlpapi", CharSet = CharSet.Ansi)]
private static extern int GetNetworkParams(IntPtr fixedInformationHandle, ref uint bufferLength);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[C#/WIN32] OpenPrinter API 함수 선언하기 (0) | 2021.06.20 |
---|---|
[C#/WIN32] WTSFreeMemory API 함수 선언하기 (0) | 2021.06.11 |
[C#/WIN32] WTSQuerySessionInformationW API 함수 선언하기 (0) | 2021.06.11 |
[C#/WIN32] WTSGetActiveConsoleSessionId API 함수 선언하기 (0) | 2021.06.11 |
[C#/WIN32] NtQueryInformationProcess API 함수 선언하기 (0) | 2021.06.09 |
[C#/WIN32] GetDiskFreeSpaceEx API 함수 선언하기 (0) | 2021.06.05 |
[C#/WIN32] GetSystemPowerStatus API 함수 선언하기 (0) | 2021.06.05 |
[C#/WIN32] GlobalMemoryStatusEx API 함수 선언하기 (0) | 2021.06.05 |
[C#/WIN32] GetSystemInfo API 함수 선언하기 (0) | 2021.06.05 |
[C#/WIN32] IsProcessorFeaturePresent API 함수 선언하기 (0) | 2021.06.05 |
댓글을 달아 주세요