github.com/kbinani/win@v0.3.0/comctl32.go (about)

     1  // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go
     2  // go run internal/cmd/gen/gen.go
     3  
     4  // +build windows
     5  
     6  package win
     7  
     8  import (
     9  	"syscall"
    10  	"unsafe"
    11  )
    12  
    13  var (
    14  	// Library
    15  	libcomctl32 uintptr
    16  
    17  	// Functions
    18  	createMappedBitmap           uintptr
    19  	createPropertySheetPage      uintptr
    20  	createStatusWindow           uintptr
    21  	createToolbarEx              uintptr
    22  	createUpDownControl          uintptr
    23  	dPA_Create                   uintptr
    24  	dPA_DeleteAllPtrs            uintptr
    25  	dPA_DeletePtr                uintptr
    26  	dPA_Destroy                  uintptr
    27  	dPA_DestroyCallback          uintptr
    28  	dPA_EnumCallback             uintptr
    29  	dPA_GetPtr                   uintptr
    30  	dPA_InsertPtr                uintptr
    31  	dPA_Search                   uintptr
    32  	dPA_SetPtr                   uintptr
    33  	dPA_Sort                     uintptr
    34  	dSA_Create                   uintptr
    35  	dSA_DeleteAllItems           uintptr
    36  	dSA_Destroy                  uintptr
    37  	dSA_DestroyCallback          uintptr
    38  	dSA_GetItemPtr               uintptr
    39  	dSA_InsertItem               uintptr
    40  	defSubclassProc              uintptr
    41  	destroyPropertySheetPage     uintptr
    42  	drawInsert                   uintptr
    43  	drawStatusText               uintptr
    44  	flatSB_EnableScrollBar       uintptr
    45  	flatSB_GetScrollInfo         uintptr
    46  	flatSB_GetScrollPos          uintptr
    47  	flatSB_GetScrollProp         uintptr
    48  	flatSB_GetScrollPropPtr      uintptr
    49  	flatSB_GetScrollRange        uintptr
    50  	flatSB_SetScrollInfo         uintptr
    51  	flatSB_SetScrollPos          uintptr
    52  	flatSB_SetScrollProp         uintptr
    53  	flatSB_SetScrollRange        uintptr
    54  	flatSB_ShowScrollBar         uintptr
    55  	getEffectiveClientRect       uintptr
    56  	getMUILanguage               uintptr
    57  	imageList_Add                uintptr
    58  	imageList_AddMasked          uintptr
    59  	imageList_BeginDrag          uintptr
    60  	imageList_Copy               uintptr
    61  	imageList_Create             uintptr
    62  	imageList_Destroy            uintptr
    63  	imageList_DragEnter          uintptr
    64  	imageList_DragLeave          uintptr
    65  	imageList_DragMove           uintptr
    66  	imageList_DragShowNolock     uintptr
    67  	imageList_Draw               uintptr
    68  	imageList_DrawEx             uintptr
    69  	imageList_DrawIndirect       uintptr
    70  	imageList_Duplicate          uintptr
    71  	imageList_EndDrag            uintptr
    72  	imageList_GetBkColor         uintptr
    73  	imageList_GetDragImage       uintptr
    74  	imageList_GetIcon            uintptr
    75  	imageList_GetIconSize        uintptr
    76  	imageList_GetImageCount      uintptr
    77  	imageList_GetImageInfo       uintptr
    78  	imageList_LoadImage          uintptr
    79  	imageList_Merge              uintptr
    80  	imageList_Read               uintptr
    81  	imageList_Remove             uintptr
    82  	imageList_Replace            uintptr
    83  	imageList_ReplaceIcon        uintptr
    84  	imageList_SetBkColor         uintptr
    85  	imageList_SetDragCursorImage uintptr
    86  	imageList_SetIconSize        uintptr
    87  	imageList_SetImageCount      uintptr
    88  	imageList_SetOverlayImage    uintptr
    89  	imageList_Write              uintptr
    90  	initCommonControls           uintptr
    91  	initCommonControlsEx         uintptr
    92  	initMUILanguage              uintptr
    93  	initializeFlatSB             uintptr
    94  	lBItemFromPt                 uintptr
    95  	makeDragList                 uintptr
    96  	menuHelp                     uintptr
    97  	propertySheet                uintptr
    98  	removeWindowSubclass         uintptr
    99  	setWindowSubclass            uintptr
   100  	showHideMenuCtl              uintptr
   101  	str_SetPtrW                  uintptr
   102  	taskDialog                   uintptr
   103  	taskDialogIndirect           uintptr
   104  	uninitializeFlatSB           uintptr
   105  	addMRUStringW                uintptr
   106  	createMRUListW               uintptr
   107  	createToolbar                uintptr
   108  	enumMRUListW                 uintptr
   109  	freeMRUList                  uintptr
   110  	imageList_AddIcon            uintptr
   111  	imageList_GetFlags           uintptr
   112  	imageList_GetImageRect       uintptr
   113  	imageList_SetFilter          uintptr
   114  	imageList_SetFlags           uintptr
   115  )
   116  
   117  func init() {
   118  	// Library
   119  	libcomctl32 = doLoadLibrary("comctl32.dll")
   120  
   121  	// Functions
   122  	createMappedBitmap = doGetProcAddress(libcomctl32, "CreateMappedBitmap")
   123  	createPropertySheetPage = doGetProcAddress(libcomctl32, "CreatePropertySheetPageW")
   124  	createStatusWindow = doGetProcAddress(libcomctl32, "CreateStatusWindowW")
   125  	createToolbarEx = doGetProcAddress(libcomctl32, "CreateToolbarEx")
   126  	createUpDownControl = doGetProcAddress(libcomctl32, "CreateUpDownControl")
   127  	dPA_Create = doGetProcAddress(libcomctl32, "DPA_Create")
   128  	dPA_DeleteAllPtrs = doGetProcAddress(libcomctl32, "DPA_DeleteAllPtrs")
   129  	dPA_DeletePtr = doGetProcAddress(libcomctl32, "DPA_DeletePtr")
   130  	dPA_Destroy = doGetProcAddress(libcomctl32, "DPA_Destroy")
   131  	dPA_DestroyCallback = doGetProcAddress(libcomctl32, "DPA_DestroyCallback")
   132  	dPA_EnumCallback = doGetProcAddress(libcomctl32, "DPA_EnumCallback")
   133  	dPA_GetPtr = doGetProcAddress(libcomctl32, "DPA_GetPtr")
   134  	dPA_InsertPtr = doGetProcAddress(libcomctl32, "DPA_InsertPtr")
   135  	dPA_Search = doGetProcAddress(libcomctl32, "DPA_Search")
   136  	dPA_SetPtr = doGetProcAddress(libcomctl32, "DPA_SetPtr")
   137  	dPA_Sort = doGetProcAddress(libcomctl32, "DPA_Sort")
   138  	dSA_Create = doGetProcAddress(libcomctl32, "DSA_Create")
   139  	dSA_DeleteAllItems = doGetProcAddress(libcomctl32, "DSA_DeleteAllItems")
   140  	dSA_Destroy = doGetProcAddress(libcomctl32, "DSA_Destroy")
   141  	dSA_DestroyCallback = doGetProcAddress(libcomctl32, "DSA_DestroyCallback")
   142  	dSA_GetItemPtr = doGetProcAddress(libcomctl32, "DSA_GetItemPtr")
   143  	dSA_InsertItem = doGetProcAddress(libcomctl32, "DSA_InsertItem")
   144  	defSubclassProc = doGetProcAddress(libcomctl32, "DefSubclassProc")
   145  	destroyPropertySheetPage = doGetProcAddress(libcomctl32, "DestroyPropertySheetPage")
   146  	drawInsert = doGetProcAddress(libcomctl32, "DrawInsert")
   147  	drawStatusText = doGetProcAddress(libcomctl32, "DrawStatusTextW")
   148  	flatSB_EnableScrollBar = doGetProcAddress(libcomctl32, "FlatSB_EnableScrollBar")
   149  	flatSB_GetScrollInfo = doGetProcAddress(libcomctl32, "FlatSB_GetScrollInfo")
   150  	flatSB_GetScrollPos = doGetProcAddress(libcomctl32, "FlatSB_GetScrollPos")
   151  	flatSB_GetScrollProp = doGetProcAddress(libcomctl32, "FlatSB_GetScrollProp")
   152  	flatSB_GetScrollPropPtr = doGetProcAddress(libcomctl32, "FlatSB_GetScrollPropPtr")
   153  	flatSB_GetScrollRange = doGetProcAddress(libcomctl32, "FlatSB_GetScrollRange")
   154  	flatSB_SetScrollInfo = doGetProcAddress(libcomctl32, "FlatSB_SetScrollInfo")
   155  	flatSB_SetScrollPos = doGetProcAddress(libcomctl32, "FlatSB_SetScrollPos")
   156  	flatSB_SetScrollProp = doGetProcAddress(libcomctl32, "FlatSB_SetScrollProp")
   157  	flatSB_SetScrollRange = doGetProcAddress(libcomctl32, "FlatSB_SetScrollRange")
   158  	flatSB_ShowScrollBar = doGetProcAddress(libcomctl32, "FlatSB_ShowScrollBar")
   159  	getEffectiveClientRect = doGetProcAddress(libcomctl32, "GetEffectiveClientRect")
   160  	getMUILanguage = doGetProcAddress(libcomctl32, "GetMUILanguage")
   161  	imageList_Add = doGetProcAddress(libcomctl32, "ImageList_Add")
   162  	imageList_AddMasked = doGetProcAddress(libcomctl32, "ImageList_AddMasked")
   163  	imageList_BeginDrag = doGetProcAddress(libcomctl32, "ImageList_BeginDrag")
   164  	imageList_Copy = doGetProcAddress(libcomctl32, "ImageList_Copy")
   165  	imageList_Create = doGetProcAddress(libcomctl32, "ImageList_Create")
   166  	imageList_Destroy = doGetProcAddress(libcomctl32, "ImageList_Destroy")
   167  	imageList_DragEnter = doGetProcAddress(libcomctl32, "ImageList_DragEnter")
   168  	imageList_DragLeave = doGetProcAddress(libcomctl32, "ImageList_DragLeave")
   169  	imageList_DragMove = doGetProcAddress(libcomctl32, "ImageList_DragMove")
   170  	imageList_DragShowNolock = doGetProcAddress(libcomctl32, "ImageList_DragShowNolock")
   171  	imageList_Draw = doGetProcAddress(libcomctl32, "ImageList_Draw")
   172  	imageList_DrawEx = doGetProcAddress(libcomctl32, "ImageList_DrawEx")
   173  	imageList_DrawIndirect = doGetProcAddress(libcomctl32, "ImageList_DrawIndirect")
   174  	imageList_Duplicate = doGetProcAddress(libcomctl32, "ImageList_Duplicate")
   175  	imageList_EndDrag = doGetProcAddress(libcomctl32, "ImageList_EndDrag")
   176  	imageList_GetBkColor = doGetProcAddress(libcomctl32, "ImageList_GetBkColor")
   177  	imageList_GetDragImage = doGetProcAddress(libcomctl32, "ImageList_GetDragImage")
   178  	imageList_GetIcon = doGetProcAddress(libcomctl32, "ImageList_GetIcon")
   179  	imageList_GetIconSize = doGetProcAddress(libcomctl32, "ImageList_GetIconSize")
   180  	imageList_GetImageCount = doGetProcAddress(libcomctl32, "ImageList_GetImageCount")
   181  	imageList_GetImageInfo = doGetProcAddress(libcomctl32, "ImageList_GetImageInfo")
   182  	imageList_LoadImage = doGetProcAddress(libcomctl32, "ImageList_LoadImageW")
   183  	imageList_Merge = doGetProcAddress(libcomctl32, "ImageList_Merge")
   184  	imageList_Read = doGetProcAddress(libcomctl32, "ImageList_Read")
   185  	imageList_Remove = doGetProcAddress(libcomctl32, "ImageList_Remove")
   186  	imageList_Replace = doGetProcAddress(libcomctl32, "ImageList_Replace")
   187  	imageList_ReplaceIcon = doGetProcAddress(libcomctl32, "ImageList_ReplaceIcon")
   188  	imageList_SetBkColor = doGetProcAddress(libcomctl32, "ImageList_SetBkColor")
   189  	imageList_SetDragCursorImage = doGetProcAddress(libcomctl32, "ImageList_SetDragCursorImage")
   190  	imageList_SetIconSize = doGetProcAddress(libcomctl32, "ImageList_SetIconSize")
   191  	imageList_SetImageCount = doGetProcAddress(libcomctl32, "ImageList_SetImageCount")
   192  	imageList_SetOverlayImage = doGetProcAddress(libcomctl32, "ImageList_SetOverlayImage")
   193  	imageList_Write = doGetProcAddress(libcomctl32, "ImageList_Write")
   194  	initCommonControls = doGetProcAddress(libcomctl32, "InitCommonControls")
   195  	initCommonControlsEx = doGetProcAddress(libcomctl32, "InitCommonControlsEx")
   196  	initMUILanguage = doGetProcAddress(libcomctl32, "InitMUILanguage")
   197  	initializeFlatSB = doGetProcAddress(libcomctl32, "InitializeFlatSB")
   198  	lBItemFromPt = doGetProcAddress(libcomctl32, "LBItemFromPt")
   199  	makeDragList = doGetProcAddress(libcomctl32, "MakeDragList")
   200  	menuHelp = doGetProcAddress(libcomctl32, "MenuHelp")
   201  	propertySheet = doGetProcAddress(libcomctl32, "PropertySheetW")
   202  	removeWindowSubclass = doGetProcAddress(libcomctl32, "RemoveWindowSubclass")
   203  	setWindowSubclass = doGetProcAddress(libcomctl32, "SetWindowSubclass")
   204  	showHideMenuCtl = doGetProcAddress(libcomctl32, "ShowHideMenuCtl")
   205  	str_SetPtrW = doGetProcAddress(libcomctl32, "Str_SetPtrW")
   206  	taskDialog = doGetProcAddress(libcomctl32, "TaskDialog")
   207  	taskDialogIndirect = doGetProcAddress(libcomctl32, "TaskDialogIndirect")
   208  	uninitializeFlatSB = doGetProcAddress(libcomctl32, "UninitializeFlatSB")
   209  	addMRUStringW = doGetProcAddress(libcomctl32, "AddMRUStringW")
   210  	createMRUListW = doGetProcAddress(libcomctl32, "CreateMRUListW")
   211  	createToolbar = doGetProcAddress(libcomctl32, "CreateToolbar")
   212  	enumMRUListW = doGetProcAddress(libcomctl32, "EnumMRUListW")
   213  	freeMRUList = doGetProcAddress(libcomctl32, "FreeMRUList")
   214  	imageList_AddIcon = doGetProcAddress(libcomctl32, "ImageList_AddIcon")
   215  	imageList_GetFlags = doGetProcAddress(libcomctl32, "ImageList_GetFlags")
   216  	imageList_GetImageRect = doGetProcAddress(libcomctl32, "ImageList_GetImageRect")
   217  	imageList_SetFilter = doGetProcAddress(libcomctl32, "ImageList_SetFilter")
   218  	imageList_SetFlags = doGetProcAddress(libcomctl32, "ImageList_SetFlags")
   219  }
   220  
   221  func CreateMappedBitmap(hInstance HINSTANCE, idBitmap INT_PTR, wFlags UINT, lpColorMap *COLORMAP, iNumMaps int32) HBITMAP {
   222  	ret1 := syscall6(createMappedBitmap, 5,
   223  		uintptr(hInstance),
   224  		uintptr(unsafe.Pointer(idBitmap)),
   225  		uintptr(wFlags),
   226  		uintptr(unsafe.Pointer(lpColorMap)),
   227  		uintptr(iNumMaps),
   228  		0)
   229  	return HBITMAP(ret1)
   230  }
   231  
   232  func CreatePropertySheetPage(constPropSheetPagePointer /*const*/ *PROPSHEETPAGE) HPROPSHEETPAGE {
   233  	ret1 := syscall3(createPropertySheetPage, 1,
   234  		uintptr(unsafe.Pointer(constPropSheetPagePointer)),
   235  		0,
   236  		0)
   237  	return HPROPSHEETPAGE(ret1)
   238  }
   239  
   240  func CreateStatusWindow(style LONG, lpszText string, hwndParent HWND, wID UINT) HWND {
   241  	lpszTextStr := unicode16FromString(lpszText)
   242  	ret1 := syscall6(createStatusWindow, 4,
   243  		uintptr(style),
   244  		uintptr(unsafe.Pointer(&lpszTextStr[0])),
   245  		uintptr(hwndParent),
   246  		uintptr(wID),
   247  		0,
   248  		0)
   249  	return HWND(ret1)
   250  }
   251  
   252  func CreateToolbarEx(hwnd HWND, ws DWORD, wID UINT, nBitmaps int32, hBMInst HINSTANCE, wBMID *uint32, lpButtons /*const*/ *TBBUTTON, iNumButtons int32, dxButton int32, dyButton int32, dxBitmap int32, dyBitmap int32, uStructSize UINT) HWND {
   253  	ret1 := syscall15(createToolbarEx, 13,
   254  		uintptr(hwnd),
   255  		uintptr(ws),
   256  		uintptr(wID),
   257  		uintptr(nBitmaps),
   258  		uintptr(hBMInst),
   259  		uintptr(unsafe.Pointer(wBMID)),
   260  		uintptr(unsafe.Pointer(lpButtons)),
   261  		uintptr(iNumButtons),
   262  		uintptr(dxButton),
   263  		uintptr(dyButton),
   264  		uintptr(dxBitmap),
   265  		uintptr(dyBitmap),
   266  		uintptr(uStructSize),
   267  		0,
   268  		0)
   269  	return HWND(ret1)
   270  }
   271  
   272  func CreateUpDownControl(dwStyle DWORD, x int32, y int32, cx int32, cy int32, hParent HWND, nID int32, hInst HINSTANCE, hBuddy HWND, nUpper int32, nLower int32, nPos int32) HWND {
   273  	ret1 := syscall12(createUpDownControl, 12,
   274  		uintptr(dwStyle),
   275  		uintptr(x),
   276  		uintptr(y),
   277  		uintptr(cx),
   278  		uintptr(cy),
   279  		uintptr(hParent),
   280  		uintptr(nID),
   281  		uintptr(hInst),
   282  		uintptr(hBuddy),
   283  		uintptr(nUpper),
   284  		uintptr(nLower),
   285  		uintptr(nPos))
   286  	return HWND(ret1)
   287  }
   288  
   289  func DPA_Create(cItemGrow int32) HDPA {
   290  	ret1 := syscall3(dPA_Create, 1,
   291  		uintptr(cItemGrow),
   292  		0,
   293  		0)
   294  	return HDPA(ret1)
   295  }
   296  
   297  func DPA_DeleteAllPtrs(hdpa HDPA) bool {
   298  	ret1 := syscall3(dPA_DeleteAllPtrs, 1,
   299  		uintptr(hdpa),
   300  		0,
   301  		0)
   302  	return ret1 != 0
   303  }
   304  
   305  func DPA_DeletePtr(hdpa HDPA, i int32) uintptr {
   306  	ret1 := syscall3(dPA_DeletePtr, 2,
   307  		uintptr(hdpa),
   308  		uintptr(i),
   309  		0)
   310  	return (uintptr)(unsafe.Pointer(ret1))
   311  }
   312  
   313  func DPA_Destroy(hdpa HDPA) bool {
   314  	ret1 := syscall3(dPA_Destroy, 1,
   315  		uintptr(hdpa),
   316  		0,
   317  		0)
   318  	return ret1 != 0
   319  }
   320  
   321  func DPA_DestroyCallback(hdpa HDPA, pfnCB DAENUMCALLBACK, pData uintptr) {
   322  	pfnCBCallback := syscall.NewCallback(func(pRawArg uintptr, pDataRawArg uintptr) uintptr {
   323  		ret := pfnCB(pRawArg, pDataRawArg)
   324  		return uintptr(ret)
   325  	})
   326  	syscall3(dPA_DestroyCallback, 3,
   327  		uintptr(hdpa),
   328  		pfnCBCallback,
   329  		pData)
   330  }
   331  
   332  func DPA_EnumCallback(hdpa HDPA, pfnCB DAENUMCALLBACK, pData uintptr) {
   333  	pfnCBCallback := syscall.NewCallback(func(pRawArg uintptr, pDataRawArg uintptr) uintptr {
   334  		ret := pfnCB(pRawArg, pDataRawArg)
   335  		return uintptr(ret)
   336  	})
   337  	syscall3(dPA_EnumCallback, 3,
   338  		uintptr(hdpa),
   339  		pfnCBCallback,
   340  		pData)
   341  }
   342  
   343  func DPA_GetPtr(hdpa HDPA, i INT_PTR) uintptr {
   344  	ret1 := syscall3(dPA_GetPtr, 2,
   345  		uintptr(hdpa),
   346  		uintptr(unsafe.Pointer(i)),
   347  		0)
   348  	return (uintptr)(unsafe.Pointer(ret1))
   349  }
   350  
   351  func DPA_InsertPtr(hdpa HDPA, i int32, p uintptr) int32 {
   352  	ret1 := syscall3(dPA_InsertPtr, 3,
   353  		uintptr(hdpa),
   354  		uintptr(i),
   355  		p)
   356  	return int32(ret1)
   357  }
   358  
   359  func DPA_Search(hdpa HDPA, pFind uintptr, iStart int32, pfnCompare DACOMPARE, lParam LPARAM, options UINT) int32 {
   360  	pfnCompareCallback := syscall.NewCallback(func(p1RawArg uintptr, p2RawArg uintptr, lParamRawArg LPARAM) uintptr {
   361  		ret := pfnCompare(p1RawArg, p2RawArg, lParamRawArg)
   362  		return uintptr(ret)
   363  	})
   364  	ret1 := syscall6(dPA_Search, 6,
   365  		uintptr(hdpa),
   366  		pFind,
   367  		uintptr(iStart),
   368  		pfnCompareCallback,
   369  		uintptr(lParam),
   370  		uintptr(options))
   371  	return int32(ret1)
   372  }
   373  
   374  func DPA_SetPtr(hdpa HDPA, i int32, p uintptr) bool {
   375  	ret1 := syscall3(dPA_SetPtr, 3,
   376  		uintptr(hdpa),
   377  		uintptr(i),
   378  		p)
   379  	return ret1 != 0
   380  }
   381  
   382  func DPA_Sort(hdpa HDPA, pfnCompare DACOMPARE, lParam LPARAM) bool {
   383  	pfnCompareCallback := syscall.NewCallback(func(p1RawArg uintptr, p2RawArg uintptr, lParamRawArg LPARAM) uintptr {
   384  		ret := pfnCompare(p1RawArg, p2RawArg, lParamRawArg)
   385  		return uintptr(ret)
   386  	})
   387  	ret1 := syscall3(dPA_Sort, 3,
   388  		uintptr(hdpa),
   389  		pfnCompareCallback,
   390  		uintptr(lParam))
   391  	return ret1 != 0
   392  }
   393  
   394  func DSA_Create(cbItem int32, cItemGrow int32) HDSA {
   395  	ret1 := syscall3(dSA_Create, 2,
   396  		uintptr(cbItem),
   397  		uintptr(cItemGrow),
   398  		0)
   399  	return HDSA(ret1)
   400  }
   401  
   402  func DSA_DeleteAllItems(hdsa HDSA) bool {
   403  	ret1 := syscall3(dSA_DeleteAllItems, 1,
   404  		uintptr(hdsa),
   405  		0,
   406  		0)
   407  	return ret1 != 0
   408  }
   409  
   410  func DSA_Destroy(hdsa HDSA) bool {
   411  	ret1 := syscall3(dSA_Destroy, 1,
   412  		uintptr(hdsa),
   413  		0,
   414  		0)
   415  	return ret1 != 0
   416  }
   417  
   418  func DSA_DestroyCallback(hdsa HDSA, pfnCB DAENUMCALLBACK, pData uintptr) {
   419  	pfnCBCallback := syscall.NewCallback(func(pRawArg uintptr, pDataRawArg uintptr) uintptr {
   420  		ret := pfnCB(pRawArg, pDataRawArg)
   421  		return uintptr(ret)
   422  	})
   423  	syscall3(dSA_DestroyCallback, 3,
   424  		uintptr(hdsa),
   425  		pfnCBCallback,
   426  		pData)
   427  }
   428  
   429  func DSA_GetItemPtr(hdsa HDSA, i int32) uintptr {
   430  	ret1 := syscall3(dSA_GetItemPtr, 2,
   431  		uintptr(hdsa),
   432  		uintptr(i),
   433  		0)
   434  	return (uintptr)(unsafe.Pointer(ret1))
   435  }
   436  
   437  func DSA_InsertItem(hdsa HDSA, i int32, pitem /*const*/ uintptr) int32 {
   438  	ret1 := syscall3(dSA_InsertItem, 3,
   439  		uintptr(hdsa),
   440  		uintptr(i),
   441  		pitem)
   442  	return int32(ret1)
   443  }
   444  
   445  func DefSubclassProc(hWnd HWND, uMsg UINT, wParam WPARAM, lParam LPARAM) LRESULT {
   446  	ret1 := syscall6(defSubclassProc, 4,
   447  		uintptr(hWnd),
   448  		uintptr(uMsg),
   449  		uintptr(wParam),
   450  		uintptr(lParam),
   451  		0,
   452  		0)
   453  	return LRESULT(ret1)
   454  }
   455  
   456  func DestroyPropertySheetPage(unnamed0 HPROPSHEETPAGE) bool {
   457  	ret1 := syscall3(destroyPropertySheetPage, 1,
   458  		uintptr(unnamed0),
   459  		0,
   460  		0)
   461  	return ret1 != 0
   462  }
   463  
   464  func DrawInsert(handParent HWND, hLB HWND, nItem int32) {
   465  	syscall3(drawInsert, 3,
   466  		uintptr(handParent),
   467  		uintptr(hLB),
   468  		uintptr(nItem))
   469  }
   470  
   471  func DrawStatusText(hDC HDC, lprc /*const*/ *RECT, pszText string, uFlags UINT) {
   472  	pszTextStr := unicode16FromString(pszText)
   473  	syscall6(drawStatusText, 4,
   474  		uintptr(hDC),
   475  		uintptr(unsafe.Pointer(lprc)),
   476  		uintptr(unsafe.Pointer(&pszTextStr[0])),
   477  		uintptr(uFlags),
   478  		0,
   479  		0)
   480  }
   481  
   482  func FlatSB_EnableScrollBar(unnamed0 HWND, unnamed1 int32, unnamed2 UINT) bool {
   483  	ret1 := syscall3(flatSB_EnableScrollBar, 3,
   484  		uintptr(unnamed0),
   485  		uintptr(unnamed1),
   486  		uintptr(unnamed2))
   487  	return ret1 != 0
   488  }
   489  
   490  func FlatSB_GetScrollInfo(unnamed0 HWND, code int32, unnamed2 *SCROLLINFO) bool {
   491  	ret1 := syscall3(flatSB_GetScrollInfo, 3,
   492  		uintptr(unnamed0),
   493  		uintptr(code),
   494  		uintptr(unsafe.Pointer(unnamed2)))
   495  	return ret1 != 0
   496  }
   497  
   498  func FlatSB_GetScrollPos(unnamed0 HWND, code int32) int32 {
   499  	ret1 := syscall3(flatSB_GetScrollPos, 2,
   500  		uintptr(unnamed0),
   501  		uintptr(code),
   502  		0)
   503  	return int32(ret1)
   504  }
   505  
   506  func FlatSB_GetScrollProp(unnamed0 HWND, propIndex int32, unnamed2 *int32) bool {
   507  	ret1 := syscall3(flatSB_GetScrollProp, 3,
   508  		uintptr(unnamed0),
   509  		uintptr(propIndex),
   510  		uintptr(unsafe.Pointer(unnamed2)))
   511  	return ret1 != 0
   512  }
   513  
   514  func FlatSB_GetScrollPropPtr(unnamed0 HWND, propIndex int32, unnamed2 PINT_PTR) bool {
   515  	ret1 := syscall3(flatSB_GetScrollPropPtr, 3,
   516  		uintptr(unnamed0),
   517  		uintptr(propIndex),
   518  		uintptr(unsafe.Pointer(unnamed2)))
   519  	return ret1 != 0
   520  }
   521  
   522  func FlatSB_GetScrollRange(unnamed0 HWND, code int32, unnamed2 *int32, unnamed3 *int32) bool {
   523  	ret1 := syscall6(flatSB_GetScrollRange, 4,
   524  		uintptr(unnamed0),
   525  		uintptr(code),
   526  		uintptr(unsafe.Pointer(unnamed2)),
   527  		uintptr(unsafe.Pointer(unnamed3)),
   528  		0,
   529  		0)
   530  	return ret1 != 0
   531  }
   532  
   533  func FlatSB_SetScrollInfo(unnamed0 HWND, code int32, unnamed2 *SCROLLINFO, fRedraw bool) int32 {
   534  	ret1 := syscall6(flatSB_SetScrollInfo, 4,
   535  		uintptr(unnamed0),
   536  		uintptr(code),
   537  		uintptr(unsafe.Pointer(unnamed2)),
   538  		getUintptrFromBool(fRedraw),
   539  		0,
   540  		0)
   541  	return int32(ret1)
   542  }
   543  
   544  func FlatSB_SetScrollPos(unnamed0 HWND, code int32, pos int32, fRedraw bool) int32 {
   545  	ret1 := syscall6(flatSB_SetScrollPos, 4,
   546  		uintptr(unnamed0),
   547  		uintptr(code),
   548  		uintptr(pos),
   549  		getUintptrFromBool(fRedraw),
   550  		0,
   551  		0)
   552  	return int32(ret1)
   553  }
   554  
   555  func FlatSB_SetScrollProp(unnamed0 HWND, index UINT, newValue INT_PTR, unnamed3 bool) bool {
   556  	ret1 := syscall6(flatSB_SetScrollProp, 4,
   557  		uintptr(unnamed0),
   558  		uintptr(index),
   559  		uintptr(unsafe.Pointer(newValue)),
   560  		getUintptrFromBool(unnamed3),
   561  		0,
   562  		0)
   563  	return ret1 != 0
   564  }
   565  
   566  func FlatSB_SetScrollRange(unnamed0 HWND, code int32, min int32, max int32, fRedraw bool) int32 {
   567  	ret1 := syscall6(flatSB_SetScrollRange, 5,
   568  		uintptr(unnamed0),
   569  		uintptr(code),
   570  		uintptr(min),
   571  		uintptr(max),
   572  		getUintptrFromBool(fRedraw),
   573  		0)
   574  	return int32(ret1)
   575  }
   576  
   577  func FlatSB_ShowScrollBar(unnamed0 HWND, code int32, unnamed2 bool) bool {
   578  	ret1 := syscall3(flatSB_ShowScrollBar, 3,
   579  		uintptr(unnamed0),
   580  		uintptr(code),
   581  		getUintptrFromBool(unnamed2))
   582  	return ret1 != 0
   583  }
   584  
   585  func GetEffectiveClientRect(hWnd HWND, lprc *RECT, lpInfo /*const*/ *int32) {
   586  	syscall3(getEffectiveClientRect, 3,
   587  		uintptr(hWnd),
   588  		uintptr(unsafe.Pointer(lprc)),
   589  		uintptr(unsafe.Pointer(lpInfo)))
   590  }
   591  
   592  func GetMUILanguage() LANGID {
   593  	ret1 := syscall3(getMUILanguage, 0,
   594  		0,
   595  		0,
   596  		0)
   597  	return LANGID(ret1)
   598  }
   599  
   600  func ImageList_Add(himl HIMAGELIST, hbmImage HBITMAP, hbmMask HBITMAP) int32 {
   601  	ret1 := syscall3(imageList_Add, 3,
   602  		uintptr(himl),
   603  		uintptr(hbmImage),
   604  		uintptr(hbmMask))
   605  	return int32(ret1)
   606  }
   607  
   608  func ImageList_AddMasked(himl HIMAGELIST, hbmImage HBITMAP, crMask COLORREF) int32 {
   609  	ret1 := syscall3(imageList_AddMasked, 3,
   610  		uintptr(himl),
   611  		uintptr(hbmImage),
   612  		uintptr(crMask))
   613  	return int32(ret1)
   614  }
   615  
   616  func ImageList_BeginDrag(himlTrack HIMAGELIST, iTrack int32, dxHotspot int32, dyHotspot int32) bool {
   617  	ret1 := syscall6(imageList_BeginDrag, 4,
   618  		uintptr(himlTrack),
   619  		uintptr(iTrack),
   620  		uintptr(dxHotspot),
   621  		uintptr(dyHotspot),
   622  		0,
   623  		0)
   624  	return ret1 != 0
   625  }
   626  
   627  func ImageList_Copy(himlDst HIMAGELIST, iDst int32, himlSrc HIMAGELIST, iSrc int32, uFlags UINT) bool {
   628  	ret1 := syscall6(imageList_Copy, 5,
   629  		uintptr(himlDst),
   630  		uintptr(iDst),
   631  		uintptr(himlSrc),
   632  		uintptr(iSrc),
   633  		uintptr(uFlags),
   634  		0)
   635  	return ret1 != 0
   636  }
   637  
   638  func ImageList_Create(cx int32, cy int32, flags UINT, cInitial int32, cGrow int32) HIMAGELIST {
   639  	ret1 := syscall6(imageList_Create, 5,
   640  		uintptr(cx),
   641  		uintptr(cy),
   642  		uintptr(flags),
   643  		uintptr(cInitial),
   644  		uintptr(cGrow),
   645  		0)
   646  	return HIMAGELIST(ret1)
   647  }
   648  
   649  func ImageList_Destroy(himl HIMAGELIST) bool {
   650  	ret1 := syscall3(imageList_Destroy, 1,
   651  		uintptr(himl),
   652  		0,
   653  		0)
   654  	return ret1 != 0
   655  }
   656  
   657  func ImageList_DragEnter(hwndLock HWND, x int32, y int32) bool {
   658  	ret1 := syscall3(imageList_DragEnter, 3,
   659  		uintptr(hwndLock),
   660  		uintptr(x),
   661  		uintptr(y))
   662  	return ret1 != 0
   663  }
   664  
   665  func ImageList_DragLeave(hwndLock HWND) bool {
   666  	ret1 := syscall3(imageList_DragLeave, 1,
   667  		uintptr(hwndLock),
   668  		0,
   669  		0)
   670  	return ret1 != 0
   671  }
   672  
   673  func ImageList_DragMove(x int32, y int32) bool {
   674  	ret1 := syscall3(imageList_DragMove, 2,
   675  		uintptr(x),
   676  		uintptr(y),
   677  		0)
   678  	return ret1 != 0
   679  }
   680  
   681  func ImageList_DragShowNolock(fShow bool) bool {
   682  	ret1 := syscall3(imageList_DragShowNolock, 1,
   683  		getUintptrFromBool(fShow),
   684  		0,
   685  		0)
   686  	return ret1 != 0
   687  }
   688  
   689  func ImageList_Draw(himl HIMAGELIST, i int32, hdcDst HDC, x int32, y int32, fStyle UINT) bool {
   690  	ret1 := syscall6(imageList_Draw, 6,
   691  		uintptr(himl),
   692  		uintptr(i),
   693  		uintptr(hdcDst),
   694  		uintptr(x),
   695  		uintptr(y),
   696  		uintptr(fStyle))
   697  	return ret1 != 0
   698  }
   699  
   700  func ImageList_DrawEx(himl HIMAGELIST, i int32, hdcDst HDC, x int32, y int32, dx int32, dy int32, rgbBk COLORREF, rgbFg COLORREF, fStyle UINT) bool {
   701  	ret1 := syscall12(imageList_DrawEx, 10,
   702  		uintptr(himl),
   703  		uintptr(i),
   704  		uintptr(hdcDst),
   705  		uintptr(x),
   706  		uintptr(y),
   707  		uintptr(dx),
   708  		uintptr(dy),
   709  		uintptr(rgbBk),
   710  		uintptr(rgbFg),
   711  		uintptr(fStyle),
   712  		0,
   713  		0)
   714  	return ret1 != 0
   715  }
   716  
   717  func ImageList_DrawIndirect(pimldp *IMAGELISTDRAWPARAMS) bool {
   718  	ret1 := syscall3(imageList_DrawIndirect, 1,
   719  		uintptr(unsafe.Pointer(pimldp)),
   720  		0,
   721  		0)
   722  	return ret1 != 0
   723  }
   724  
   725  func ImageList_Duplicate(himl HIMAGELIST) HIMAGELIST {
   726  	ret1 := syscall3(imageList_Duplicate, 1,
   727  		uintptr(himl),
   728  		0,
   729  		0)
   730  	return HIMAGELIST(ret1)
   731  }
   732  
   733  func ImageList_EndDrag() {
   734  	syscall3(imageList_EndDrag, 0,
   735  		0,
   736  		0,
   737  		0)
   738  }
   739  
   740  func ImageList_GetBkColor(himl HIMAGELIST) COLORREF {
   741  	ret1 := syscall3(imageList_GetBkColor, 1,
   742  		uintptr(himl),
   743  		0,
   744  		0)
   745  	return COLORREF(ret1)
   746  }
   747  
   748  func ImageList_GetDragImage(ppt *POINT, pptHotspot *POINT) HIMAGELIST {
   749  	ret1 := syscall3(imageList_GetDragImage, 2,
   750  		uintptr(unsafe.Pointer(ppt)),
   751  		uintptr(unsafe.Pointer(pptHotspot)),
   752  		0)
   753  	return HIMAGELIST(ret1)
   754  }
   755  
   756  func ImageList_GetIcon(himl HIMAGELIST, i int32, flags UINT) HICON {
   757  	ret1 := syscall3(imageList_GetIcon, 3,
   758  		uintptr(himl),
   759  		uintptr(i),
   760  		uintptr(flags))
   761  	return HICON(ret1)
   762  }
   763  
   764  func ImageList_GetIconSize(himl HIMAGELIST, cx *int, cy *int) bool {
   765  	ret1 := syscall3(imageList_GetIconSize, 3,
   766  		uintptr(himl),
   767  		uintptr(unsafe.Pointer(cx)),
   768  		uintptr(unsafe.Pointer(cy)))
   769  	return ret1 != 0
   770  }
   771  
   772  func ImageList_GetImageCount(himl HIMAGELIST) int32 {
   773  	ret1 := syscall3(imageList_GetImageCount, 1,
   774  		uintptr(himl),
   775  		0,
   776  		0)
   777  	return int32(ret1)
   778  }
   779  
   780  func ImageList_GetImageInfo(himl HIMAGELIST, i int32, pImageInfo *IMAGEINFO) bool {
   781  	ret1 := syscall3(imageList_GetImageInfo, 3,
   782  		uintptr(himl),
   783  		uintptr(i),
   784  		uintptr(unsafe.Pointer(pImageInfo)))
   785  	return ret1 != 0
   786  }
   787  
   788  func ImageList_LoadImage(hi HINSTANCE, lpbmp string, cx int32, cGrow int32, crMask COLORREF, uType UINT, uFlags UINT) HIMAGELIST {
   789  	lpbmpStr := unicode16FromString(lpbmp)
   790  	ret1 := syscall9(imageList_LoadImage, 7,
   791  		uintptr(hi),
   792  		uintptr(unsafe.Pointer(&lpbmpStr[0])),
   793  		uintptr(cx),
   794  		uintptr(cGrow),
   795  		uintptr(crMask),
   796  		uintptr(uType),
   797  		uintptr(uFlags),
   798  		0,
   799  		0)
   800  	return HIMAGELIST(ret1)
   801  }
   802  
   803  func ImageList_Merge(himl1 HIMAGELIST, i1 int32, himl2 HIMAGELIST, i2 int32, dx int32, dy int32) HIMAGELIST {
   804  	ret1 := syscall6(imageList_Merge, 6,
   805  		uintptr(himl1),
   806  		uintptr(i1),
   807  		uintptr(himl2),
   808  		uintptr(i2),
   809  		uintptr(dx),
   810  		uintptr(dy))
   811  	return HIMAGELIST(ret1)
   812  }
   813  
   814  func ImageList_Read(pstm LPSTREAM) HIMAGELIST {
   815  	ret1 := syscall3(imageList_Read, 1,
   816  		uintptr(unsafe.Pointer(pstm)),
   817  		0,
   818  		0)
   819  	return HIMAGELIST(ret1)
   820  }
   821  
   822  func ImageList_Remove(himl HIMAGELIST, i int32) bool {
   823  	ret1 := syscall3(imageList_Remove, 2,
   824  		uintptr(himl),
   825  		uintptr(i),
   826  		0)
   827  	return ret1 != 0
   828  }
   829  
   830  func ImageList_Replace(himl HIMAGELIST, i int32, hbmImage HBITMAP, hbmMask HBITMAP) bool {
   831  	ret1 := syscall6(imageList_Replace, 4,
   832  		uintptr(himl),
   833  		uintptr(i),
   834  		uintptr(hbmImage),
   835  		uintptr(hbmMask),
   836  		0,
   837  		0)
   838  	return ret1 != 0
   839  }
   840  
   841  func ImageList_ReplaceIcon(himl HIMAGELIST, i int32, hicon HICON) int32 {
   842  	ret1 := syscall3(imageList_ReplaceIcon, 3,
   843  		uintptr(himl),
   844  		uintptr(i),
   845  		uintptr(hicon))
   846  	return int32(ret1)
   847  }
   848  
   849  func ImageList_SetBkColor(himl HIMAGELIST, clrBk COLORREF) COLORREF {
   850  	ret1 := syscall3(imageList_SetBkColor, 2,
   851  		uintptr(himl),
   852  		uintptr(clrBk),
   853  		0)
   854  	return COLORREF(ret1)
   855  }
   856  
   857  func ImageList_SetDragCursorImage(himlDrag HIMAGELIST, iDrag int32, dxHotspot int32, dyHotspot int32) bool {
   858  	ret1 := syscall6(imageList_SetDragCursorImage, 4,
   859  		uintptr(himlDrag),
   860  		uintptr(iDrag),
   861  		uintptr(dxHotspot),
   862  		uintptr(dyHotspot),
   863  		0,
   864  		0)
   865  	return ret1 != 0
   866  }
   867  
   868  func ImageList_SetIconSize(himl HIMAGELIST, cx int32, cy int32) bool {
   869  	ret1 := syscall3(imageList_SetIconSize, 3,
   870  		uintptr(himl),
   871  		uintptr(cx),
   872  		uintptr(cy))
   873  	return ret1 != 0
   874  }
   875  
   876  func ImageList_SetImageCount(himl HIMAGELIST, uNewCount UINT) bool {
   877  	ret1 := syscall3(imageList_SetImageCount, 2,
   878  		uintptr(himl),
   879  		uintptr(uNewCount),
   880  		0)
   881  	return ret1 != 0
   882  }
   883  
   884  func ImageList_SetOverlayImage(himl HIMAGELIST, iImage int32, iOverlay int32) bool {
   885  	ret1 := syscall3(imageList_SetOverlayImage, 3,
   886  		uintptr(himl),
   887  		uintptr(iImage),
   888  		uintptr(iOverlay))
   889  	return ret1 != 0
   890  }
   891  
   892  func ImageList_Write(himl HIMAGELIST, pstm LPSTREAM) bool {
   893  	ret1 := syscall3(imageList_Write, 2,
   894  		uintptr(himl),
   895  		uintptr(unsafe.Pointer(pstm)),
   896  		0)
   897  	return ret1 != 0
   898  }
   899  
   900  func InitCommonControls() {
   901  	syscall3(initCommonControls, 0,
   902  		0,
   903  		0,
   904  		0)
   905  }
   906  
   907  func InitCommonControlsEx(unnamed0 /*const*/ *INITCOMMONCONTROLSEX) bool {
   908  	ret1 := syscall3(initCommonControlsEx, 1,
   909  		uintptr(unsafe.Pointer(unnamed0)),
   910  		0,
   911  		0)
   912  	return ret1 != 0
   913  }
   914  
   915  func InitMUILanguage(uiLang LANGID) {
   916  	syscall3(initMUILanguage, 1,
   917  		uintptr(uiLang),
   918  		0,
   919  		0)
   920  }
   921  
   922  func InitializeFlatSB(unnamed0 HWND) bool {
   923  	ret1 := syscall3(initializeFlatSB, 1,
   924  		uintptr(unnamed0),
   925  		0,
   926  		0)
   927  	return ret1 != 0
   928  }
   929  
   930  func LBItemFromPt(hLB HWND, pt POINT, bAutoScroll bool) int32 {
   931  	ret1 := syscall6(lBItemFromPt, 4,
   932  		uintptr(hLB),
   933  		uintptr(pt.X),
   934  		uintptr(pt.Y),
   935  		getUintptrFromBool(bAutoScroll),
   936  		0,
   937  		0)
   938  	return int32(ret1)
   939  }
   940  
   941  func MakeDragList(hLB HWND) bool {
   942  	ret1 := syscall3(makeDragList, 1,
   943  		uintptr(hLB),
   944  		0,
   945  		0)
   946  	return ret1 != 0
   947  }
   948  
   949  func MenuHelp(uMsg UINT, wParam WPARAM, lParam LPARAM, hMainMenu HMENU, hInst HINSTANCE, hwndStatus HWND, lpwIDs *UINT) {
   950  	syscall9(menuHelp, 7,
   951  		uintptr(uMsg),
   952  		uintptr(wParam),
   953  		uintptr(lParam),
   954  		uintptr(hMainMenu),
   955  		uintptr(hInst),
   956  		uintptr(hwndStatus),
   957  		uintptr(unsafe.Pointer(lpwIDs)),
   958  		0,
   959  		0)
   960  }
   961  
   962  func PropertySheet(unnamed0 /*const*/ *PROPSHEETHEADER) INT_PTR {
   963  	ret1 := syscall3(propertySheet, 1,
   964  		uintptr(unsafe.Pointer(unnamed0)),
   965  		0,
   966  		0)
   967  	return (INT_PTR)(unsafe.Pointer(ret1))
   968  }
   969  
   970  func RemoveWindowSubclass(hWnd HWND, pfnSubclass SUBCLASSPROC, uIdSubclass *uint32) bool {
   971  	pfnSubclassCallback := syscall.NewCallback(func(hWndRawArg HWND, uMsgRawArg UINT, wParamRawArg WPARAM, lParamRawArg LPARAM, uIdSubclassRawArg UINT_PTR, dwRefDataRawArg DWORD_PTR) uintptr {
   972  		ret := pfnSubclass(hWndRawArg, uMsgRawArg, wParamRawArg, lParamRawArg, uIdSubclassRawArg, dwRefDataRawArg)
   973  		return uintptr(ret)
   974  	})
   975  	ret1 := syscall3(removeWindowSubclass, 3,
   976  		uintptr(hWnd),
   977  		pfnSubclassCallback,
   978  		uintptr(unsafe.Pointer(uIdSubclass)))
   979  	return ret1 != 0
   980  }
   981  
   982  func SetWindowSubclass(hWnd HWND, pfnSubclass SUBCLASSPROC, uIdSubclass *uint32, dwRefData *uint32) bool {
   983  	pfnSubclassCallback := syscall.NewCallback(func(hWndRawArg HWND, uMsgRawArg UINT, wParamRawArg WPARAM, lParamRawArg LPARAM, uIdSubclassRawArg UINT_PTR, dwRefDataRawArg DWORD_PTR) uintptr {
   984  		ret := pfnSubclass(hWndRawArg, uMsgRawArg, wParamRawArg, lParamRawArg, uIdSubclassRawArg, dwRefDataRawArg)
   985  		return uintptr(ret)
   986  	})
   987  	ret1 := syscall6(setWindowSubclass, 4,
   988  		uintptr(hWnd),
   989  		pfnSubclassCallback,
   990  		uintptr(unsafe.Pointer(uIdSubclass)),
   991  		uintptr(unsafe.Pointer(dwRefData)),
   992  		0,
   993  		0)
   994  	return ret1 != 0
   995  }
   996  
   997  func ShowHideMenuCtl(hWnd HWND, uFlags *uint32, lpInfo *int32) bool {
   998  	ret1 := syscall3(showHideMenuCtl, 3,
   999  		uintptr(hWnd),
  1000  		uintptr(unsafe.Pointer(uFlags)),
  1001  		uintptr(unsafe.Pointer(lpInfo)))
  1002  	return ret1 != 0
  1003  }
  1004  
  1005  func Str_SetPtrW(ppsz *LPWSTR, psz string) bool {
  1006  	pszStr := unicode16FromString(psz)
  1007  	ret1 := syscall3(str_SetPtrW, 2,
  1008  		uintptr(unsafe.Pointer(ppsz)),
  1009  		uintptr(unsafe.Pointer(&pszStr[0])),
  1010  		0)
  1011  	return ret1 != 0
  1012  }
  1013  
  1014  func TaskDialog(hwndOwner HWND, hInstance HINSTANCE, pszWindowTitle string, pszMainInstruction string, pszContent string, dwCommonButtons TASKDIALOG_COMMON_BUTTON_FLAGS, pszIcon string, pnButton *int) HRESULT {
  1015  	pszWindowTitleStr := unicode16FromString(pszWindowTitle)
  1016  	pszMainInstructionStr := unicode16FromString(pszMainInstruction)
  1017  	pszContentStr := unicode16FromString(pszContent)
  1018  	pszIconStr := unicode16FromString(pszIcon)
  1019  	ret1 := syscall9(taskDialog, 8,
  1020  		uintptr(hwndOwner),
  1021  		uintptr(hInstance),
  1022  		uintptr(unsafe.Pointer(&pszWindowTitleStr[0])),
  1023  		uintptr(unsafe.Pointer(&pszMainInstructionStr[0])),
  1024  		uintptr(unsafe.Pointer(&pszContentStr[0])),
  1025  		uintptr(dwCommonButtons),
  1026  		uintptr(unsafe.Pointer(&pszIconStr[0])),
  1027  		uintptr(unsafe.Pointer(pnButton)),
  1028  		0)
  1029  	return HRESULT(ret1)
  1030  }
  1031  
  1032  func TaskDialogIndirect(pTaskConfig /*const*/ *TASKDIALOGCONFIG, pnButton *int, pnRadioButton *int, pfVerificationFlagChecked *BOOL) HRESULT {
  1033  	ret1 := syscall6(taskDialogIndirect, 4,
  1034  		uintptr(unsafe.Pointer(pTaskConfig)),
  1035  		uintptr(unsafe.Pointer(pnButton)),
  1036  		uintptr(unsafe.Pointer(pnRadioButton)),
  1037  		uintptr(unsafe.Pointer(pfVerificationFlagChecked)),
  1038  		0,
  1039  		0)
  1040  	return HRESULT(ret1)
  1041  }
  1042  
  1043  func UninitializeFlatSB(unnamed0 HWND) HRESULT {
  1044  	ret1 := syscall3(uninitializeFlatSB, 1,
  1045  		uintptr(unnamed0),
  1046  		0,
  1047  		0)
  1048  	return HRESULT(ret1)
  1049  }
  1050  
  1051  func AddMRUStringW(hList HANDLE, lpszString string) INT {
  1052  	lpszStringStr := unicode16FromString(lpszString)
  1053  	ret1 := syscall3(addMRUStringW, 2,
  1054  		uintptr(hList),
  1055  		uintptr(unsafe.Pointer(&lpszStringStr[0])),
  1056  		0)
  1057  	return INT(ret1)
  1058  }
  1059  
  1060  func CreateMRUListW(infoW /*const*/ *MRUINFO) HANDLE {
  1061  	ret1 := syscall3(createMRUListW, 1,
  1062  		uintptr(unsafe.Pointer(infoW)),
  1063  		0,
  1064  		0)
  1065  	return HANDLE(ret1)
  1066  }
  1067  
  1068  func CreateToolbar(hwnd HWND, style DWORD, wID UINT, nBitmaps INT, hBMInst HINSTANCE, wBMID UINT, lpButtons /*const*/ *TBBUTTON, iNumButtons INT) HWND {
  1069  	ret1 := syscall9(createToolbar, 8,
  1070  		uintptr(hwnd),
  1071  		uintptr(style),
  1072  		uintptr(wID),
  1073  		uintptr(nBitmaps),
  1074  		uintptr(hBMInst),
  1075  		uintptr(wBMID),
  1076  		uintptr(unsafe.Pointer(lpButtons)),
  1077  		uintptr(iNumButtons),
  1078  		0)
  1079  	return HWND(ret1)
  1080  }
  1081  
  1082  func EnumMRUListW(hList HANDLE, nItemPos INT, lpBuffer LPVOID, nBufferSize DWORD) INT {
  1083  	ret1 := syscall6(enumMRUListW, 4,
  1084  		uintptr(hList),
  1085  		uintptr(nItemPos),
  1086  		uintptr(unsafe.Pointer(lpBuffer)),
  1087  		uintptr(nBufferSize),
  1088  		0,
  1089  		0)
  1090  	return INT(ret1)
  1091  }
  1092  
  1093  func FreeMRUList(hMRUList HANDLE) {
  1094  	syscall3(freeMRUList, 1,
  1095  		uintptr(hMRUList),
  1096  		0,
  1097  		0)
  1098  }
  1099  
  1100  func ImageList_AddIcon(himl HIMAGELIST, hIcon HICON) INT {
  1101  	ret1 := syscall3(imageList_AddIcon, 2,
  1102  		uintptr(himl),
  1103  		uintptr(hIcon),
  1104  		0)
  1105  	return INT(ret1)
  1106  }
  1107  
  1108  func ImageList_GetFlags(himl HIMAGELIST) DWORD {
  1109  	ret1 := syscall3(imageList_GetFlags, 1,
  1110  		uintptr(himl),
  1111  		0,
  1112  		0)
  1113  	return DWORD(ret1)
  1114  }
  1115  
  1116  func ImageList_GetImageRect(himl HIMAGELIST, i INT, lpRect *RECT) bool {
  1117  	ret1 := syscall3(imageList_GetImageRect, 3,
  1118  		uintptr(himl),
  1119  		uintptr(i),
  1120  		uintptr(unsafe.Pointer(lpRect)))
  1121  	return ret1 != 0
  1122  }
  1123  
  1124  func ImageList_SetFilter(himl HIMAGELIST, i INT, dwFilter DWORD) bool {
  1125  	ret1 := syscall3(imageList_SetFilter, 3,
  1126  		uintptr(himl),
  1127  		uintptr(i),
  1128  		uintptr(dwFilter))
  1129  	return ret1 != 0
  1130  }
  1131  
  1132  func ImageList_SetFlags(himl HIMAGELIST, flags DWORD) DWORD {
  1133  	ret1 := syscall3(imageList_SetFlags, 2,
  1134  		uintptr(himl),
  1135  		uintptr(flags),
  1136  		0)
  1137  	return DWORD(ret1)
  1138  }