MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / CreateWindowEx

Function CreateWindowEx

pkg/sys/zsyscall_windows.go:299–306  ·  view source on GitHub ↗
(exStyle uint32, className *uint16, windowName *uint16, style uint32, x int32, y int32, w int32, h int32, parent Hwnd, menu uintptr, instance windows.Handle, param uintptr)

Source from the content-addressed store, hash-verified

297}
298
299func CreateWindowEx(exStyle uint32, className *uint16, windowName *uint16, style uint32, x int32, y int32, w int32, h int32, parent Hwnd, menu uintptr, instance windows.Handle, param uintptr) (hwnd Hwnd, err error) {
300 r0, _, e1 := syscall.Syscall12(procCreateWindowExW.Addr(), 12, uintptr(exStyle), uintptr(unsafe.Pointer(className)), uintptr(unsafe.Pointer(windowName)), uintptr(style), uintptr(x), uintptr(y), uintptr(w), uintptr(h), uintptr(parent), uintptr(menu), uintptr(instance), uintptr(param))
301 hwnd = Hwnd(r0)
302 if hwnd == 0 {
303 err = errnoErr(e1)
304 }
305 return
306}
307
308func DefWindowProc(hwnd uintptr, msg uint32, wparam uintptr, lparam uintptr) (result uintptr) {
309 r0, _, _ := syscall.Syscall6(procDefWindowProcW.Addr(), 4, uintptr(hwnd), uintptr(msg), uintptr(wparam), uintptr(lparam), 0, 0)

Callers 1

Calls 2

HwndTypeAlias · 0.85
errnoErrFunction · 0.70

Tested by

no test coverage detected