mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-30 17:16:52 +13:00
24 lines
733 B
C#
24 lines
733 B
C#
// <copyright file="FindWindow.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace SystemTrayMenu.DllImports
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
/// <summary>
|
|
/// wraps the methodcalls to native windows dll's.
|
|
/// </summary>
|
|
public static partial class NativeMethods
|
|
{
|
|
public static IntPtr User32FindWindow(string lpClassName, string lpWindowName)
|
|
{
|
|
return FindWindow(lpClassName, lpWindowName);
|
|
}
|
|
|
|
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
|
|
|
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
|
|
}
|
|
}
|