且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有一个相当于WinAPI的GetColorDirectory在.NET?

更新时间:2023-01-06 22:47:27

在系统目录的路径按照 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);