2016-07-01から1ヶ月間の記事一覧
C# 9.0 using System; using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; var FOLDERID_DocumentsLibrary = new Guid("{7B0DB17D-9CD2-4A93-9733-46CC89022E7C}"); Console.WriteLine(SHGetKnownFolderPath(FOLDERID_Documents…
ドライブが自動実行されるメディアタイプを取得するサンプルコードです。 using System; using System.Linq; using System.Runtime.InteropServices; using System.Security; namespace ConsoleApplication1 { [SecurityCritical] class Program { [Suppress…