Create hello-platform for Windows #10

Open
kornerr wants to merge 46 commits from hrbmac into master
pull from: hrbmac
Showing only changes of commit 14d81266ac - Show all commits
+1 -1
View File
@@ -3,7 +3,7 @@ import WinSDK
func otherSetupWindowIcons(_ iconId: Int) { func otherSetupWindowIcons(_ iconId: Int) {
// Only visit windows owned by this UI thread, never another application's window. // Only visit windows owned by this UI thread, never another application's window.
EnumThreadWindows(GetCurrentThreadId(), { wnd, iconId in EnumThreadWindows(GetCurrentThreadId(), { wnd, iconId in
let resource = UnsafePointer<WCHAR>(bitPattern: iconId) let resource = UnsafePointer<WCHAR>(bitPattern: Int(iconId))
let module = GetModuleHandleW(nil) let module = GetModuleHandleW(nil)
// Small icon // Small icon