mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-28 15:21:37 +12:00
24 lines
689 B
C#
24 lines
689 B
C#
// <copyright file="GetDeviceCaps.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 int Gdi32GetDeviceCaps(IntPtr hdc, int nIndex)
|
|
{
|
|
return GetDeviceCaps(hdc, nIndex);
|
|
}
|
|
|
|
[DllImport("gdi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
|
|
|
private static extern int GetDeviceCaps(IntPtr hdc, int nIndex);
|
|
}
|
|
}
|