是否有一个相当于WinAPI的GetColorDirectory在.NET? [英] Is there an equivalent to WinAPI GetColorDirectory in .NET?

查看:214
本文介绍了是否有一个相当于WinAPI的GetColorDirectory在.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有功能的 GetColorDirectory

或者我应该只是通过一个DLL调用?

Or should I just call through a DLL?

的目的是为了获得与颜色配置文件

The purpose is to get the path to the system directory with color profiles

推荐答案

在系统目录的路径按照 MSDN 你调用使用API​​的:

As per MSDN you call it using the API:

[DllImport(DllImport.Mscms, CharSet = CharSet.Auto, BestFitMapping = false)]
internal static extern bool GetColorDirectory(IntPtr pMachineName, StringBuilder pBuffer, ref uint pdwSize);

这篇关于是否有一个相当于WinAPI的GetColorDirectory在.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆