728x90
반응형
728x170
■ WTSRegisterSessionNotification API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
using System;
using System.Runtime.InteropServices;
#region WTS 세션 통지 등록하기 - WTSRegisterSessionNotification(windowHandle, flag)
/// <summary>
/// WTS 세션 통지 등록하기
/// </summary>
/// <param name="windowHandle">윈도우 핸들</param>
/// <param name="flag">플래그</param>
/// <returns>처리 결과</returns>
[DllImport("wtsapi32")]
private static extern bool WTSRegisterSessionNotification(IntPtr windowHandle, int flag);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[C#/WIN32] FindWindowEx API 함수 선언하기 (0) | 2021.01.21 |
---|---|
[C#/WIN32] FindWindow API 함수 선언하기 (0) | 2021.01.21 |
[C#/WIN32] GetMessageExtraInfo API 함수 선언하기 (0) | 2021.01.21 |
[C#/WIN32] SendInput API 함수 선언하기 (0) | 2021.01.21 |
[C#/WIN32] WTSUnRegisterSessionNotification API 함수 선언하기 (0) | 2021.01.10 |
[C#/WIN32] UnregisterHotKey API 함수 선언하기 (0) | 2021.01.10 |
[C#/WIN32] RegisterHotKey API 함수 선언하기 (0) | 2021.01.10 |
[C#/WIN32] PlaySound API 함수 선언하기 (0) | 2020.12.28 |
[C#/WIN32] PlaySound API 함수 선언하기 (0) | 2020.12.28 |
[C#/WIN32] InternetGetConnectedState API 함수 선언하기 (0) | 2020.12.28 |
댓글을 달아 주세요