Is there an equivalent to WinAPI GetColorDirectory in .NET?

泪湿孤枕 提交于 2019-12-24 01:37:20

问题


Is there an analogue of the function GetColorDirectory?

Or should I just call through a DLL?

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


回答1:


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);


来源:https://stackoverflow.com/questions/14792764/is-there-an-equivalent-to-winapi-getcolordirectory-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!