コード例 #1
0
        public static void GetDefaultIconHandles(out IconHandle largeIconHandle, out IconHandle smallIconHandle)
        {
            largeIconHandle = null;
            smallIconHandle = null;

            SecurityHelper.DemandUIWindowPermission();

            var iconModuleFile = InteropMethods.GetModuleFileName(new HandleRef());

            InteropMethods.ExtractIconEx(iconModuleFile, 0, out largeIconHandle, out smallIconHandle, 1);
        }