github.com/kbinani/win@v0.3.0/imm32.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  	libimm32 uintptr
    16  
    17  	// Functions
    18  	immAssociateContext        uintptr
    19  	immAssociateContextEx      uintptr
    20  	immConfigureIME            uintptr
    21  	immCreateContext           uintptr
    22  	immDestroyContext          uintptr
    23  	immDisableIME              uintptr
    24  	immDisableTextFrameService uintptr
    25  	immEnumInputContext        uintptr
    26  	immEnumRegisterWord        uintptr
    27  	immEscape                  uintptr
    28  	immGetCandidateListCount   uintptr
    29  	immGetCandidateList        uintptr
    30  	immGetCandidateWindow      uintptr
    31  	immGetCompositionFont      uintptr
    32  	immGetCompositionString    uintptr
    33  	immGetCompositionWindow    uintptr
    34  	immGetContext              uintptr
    35  	immGetConversionList       uintptr
    36  	immGetConversionStatus     uintptr
    37  	immGetDefaultIMEWnd        uintptr
    38  	immGetDescription          uintptr
    39  	immGetGuideLine            uintptr
    40  	immGetIMEFileName          uintptr
    41  	immGetImeMenuItems         uintptr
    42  	immGetOpenStatus           uintptr
    43  	immGetProperty             uintptr
    44  	immGetRegisterWordStyle    uintptr
    45  	immGetStatusWindowPos      uintptr
    46  	immGetVirtualKey           uintptr
    47  	immInstallIME              uintptr
    48  	immIsIME                   uintptr
    49  	immIsUIMessage             uintptr
    50  	immNotifyIME               uintptr
    51  	immRegisterWord            uintptr
    52  	immReleaseContext          uintptr
    53  	immSetCandidateWindow      uintptr
    54  	immSetCompositionFont      uintptr
    55  	immSetCompositionString    uintptr
    56  	immSetCompositionWindow    uintptr
    57  	immSetConversionStatus     uintptr
    58  	immSetOpenStatus           uintptr
    59  	immSetStatusWindowPos      uintptr
    60  	immSimulateHotKey          uintptr
    61  	immUnregisterWord          uintptr
    62  	immCreateIMCC              uintptr
    63  	immCreateSoftKeyboard      uintptr
    64  	immDestroyIMCC             uintptr
    65  	immDestroySoftKeyboard     uintptr
    66  	immGenerateMessage         uintptr
    67  	immGetHotKey               uintptr
    68  	immGetIMCCLockCount        uintptr
    69  	immGetIMCCSize             uintptr
    70  	immGetIMCLockCount         uintptr
    71  	immLockIMC                 uintptr
    72  	immLockIMCC                uintptr
    73  	immProcessKey              uintptr
    74  	immReSizeIMCC              uintptr
    75  	immRequestMessage          uintptr
    76  	immShowSoftKeyboard        uintptr
    77  	immTranslateMessage        uintptr
    78  	immUnlockIMC               uintptr
    79  	immUnlockIMCC              uintptr
    80  )
    81  
    82  func init() {
    83  	// Library
    84  	libimm32 = doLoadLibrary("imm32.dll")
    85  
    86  	// Functions
    87  	immAssociateContext = doGetProcAddress(libimm32, "ImmAssociateContext")
    88  	immAssociateContextEx = doGetProcAddress(libimm32, "ImmAssociateContextEx")
    89  	immConfigureIME = doGetProcAddress(libimm32, "ImmConfigureIMEW")
    90  	immCreateContext = doGetProcAddress(libimm32, "ImmCreateContext")
    91  	immDestroyContext = doGetProcAddress(libimm32, "ImmDestroyContext")
    92  	immDisableIME = doGetProcAddress(libimm32, "ImmDisableIME")
    93  	immDisableTextFrameService = doGetProcAddress(libimm32, "ImmDisableTextFrameService")
    94  	immEnumInputContext = doGetProcAddress(libimm32, "ImmEnumInputContext")
    95  	immEnumRegisterWord = doGetProcAddress(libimm32, "ImmEnumRegisterWordW")
    96  	immEscape = doGetProcAddress(libimm32, "ImmEscapeW")
    97  	immGetCandidateListCount = doGetProcAddress(libimm32, "ImmGetCandidateListCountW")
    98  	immGetCandidateList = doGetProcAddress(libimm32, "ImmGetCandidateListW")
    99  	immGetCandidateWindow = doGetProcAddress(libimm32, "ImmGetCandidateWindow")
   100  	immGetCompositionFont = doGetProcAddress(libimm32, "ImmGetCompositionFontW")
   101  	immGetCompositionString = doGetProcAddress(libimm32, "ImmGetCompositionStringW")
   102  	immGetCompositionWindow = doGetProcAddress(libimm32, "ImmGetCompositionWindow")
   103  	immGetContext = doGetProcAddress(libimm32, "ImmGetContext")
   104  	immGetConversionList = doGetProcAddress(libimm32, "ImmGetConversionListW")
   105  	immGetConversionStatus = doGetProcAddress(libimm32, "ImmGetConversionStatus")
   106  	immGetDefaultIMEWnd = doGetProcAddress(libimm32, "ImmGetDefaultIMEWnd")
   107  	immGetDescription = doGetProcAddress(libimm32, "ImmGetDescriptionW")
   108  	immGetGuideLine = doGetProcAddress(libimm32, "ImmGetGuideLineW")
   109  	immGetIMEFileName = doGetProcAddress(libimm32, "ImmGetIMEFileNameW")
   110  	immGetImeMenuItems = doGetProcAddress(libimm32, "ImmGetImeMenuItemsW")
   111  	immGetOpenStatus = doGetProcAddress(libimm32, "ImmGetOpenStatus")
   112  	immGetProperty = doGetProcAddress(libimm32, "ImmGetProperty")
   113  	immGetRegisterWordStyle = doGetProcAddress(libimm32, "ImmGetRegisterWordStyleW")
   114  	immGetStatusWindowPos = doGetProcAddress(libimm32, "ImmGetStatusWindowPos")
   115  	immGetVirtualKey = doGetProcAddress(libimm32, "ImmGetVirtualKey")
   116  	immInstallIME = doGetProcAddress(libimm32, "ImmInstallIMEW")
   117  	immIsIME = doGetProcAddress(libimm32, "ImmIsIME")
   118  	immIsUIMessage = doGetProcAddress(libimm32, "ImmIsUIMessageW")
   119  	immNotifyIME = doGetProcAddress(libimm32, "ImmNotifyIME")
   120  	immRegisterWord = doGetProcAddress(libimm32, "ImmRegisterWordW")
   121  	immReleaseContext = doGetProcAddress(libimm32, "ImmReleaseContext")
   122  	immSetCandidateWindow = doGetProcAddress(libimm32, "ImmSetCandidateWindow")
   123  	immSetCompositionFont = doGetProcAddress(libimm32, "ImmSetCompositionFontW")
   124  	immSetCompositionString = doGetProcAddress(libimm32, "ImmSetCompositionStringW")
   125  	immSetCompositionWindow = doGetProcAddress(libimm32, "ImmSetCompositionWindow")
   126  	immSetConversionStatus = doGetProcAddress(libimm32, "ImmSetConversionStatus")
   127  	immSetOpenStatus = doGetProcAddress(libimm32, "ImmSetOpenStatus")
   128  	immSetStatusWindowPos = doGetProcAddress(libimm32, "ImmSetStatusWindowPos")
   129  	immSimulateHotKey = doGetProcAddress(libimm32, "ImmSimulateHotKey")
   130  	immUnregisterWord = doGetProcAddress(libimm32, "ImmUnregisterWordW")
   131  	immCreateIMCC = doGetProcAddress(libimm32, "ImmCreateIMCC")
   132  	immCreateSoftKeyboard = doGetProcAddress(libimm32, "ImmCreateSoftKeyboard")
   133  	immDestroyIMCC = doGetProcAddress(libimm32, "ImmDestroyIMCC")
   134  	immDestroySoftKeyboard = doGetProcAddress(libimm32, "ImmDestroySoftKeyboard")
   135  	immGenerateMessage = doGetProcAddress(libimm32, "ImmGenerateMessage")
   136  	immGetHotKey = doGetProcAddress(libimm32, "ImmGetHotKey")
   137  	immGetIMCCLockCount = doGetProcAddress(libimm32, "ImmGetIMCCLockCount")
   138  	immGetIMCCSize = doGetProcAddress(libimm32, "ImmGetIMCCSize")
   139  	immGetIMCLockCount = doGetProcAddress(libimm32, "ImmGetIMCLockCount")
   140  	immLockIMC = doGetProcAddress(libimm32, "ImmLockIMC")
   141  	immLockIMCC = doGetProcAddress(libimm32, "ImmLockIMCC")
   142  	immProcessKey = doGetProcAddress(libimm32, "ImmProcessKey")
   143  	immReSizeIMCC = doGetProcAddress(libimm32, "ImmReSizeIMCC")
   144  	immRequestMessage = doGetProcAddress(libimm32, "ImmRequestMessageW")
   145  	immShowSoftKeyboard = doGetProcAddress(libimm32, "ImmShowSoftKeyboard")
   146  	immTranslateMessage = doGetProcAddress(libimm32, "ImmTranslateMessage")
   147  	immUnlockIMC = doGetProcAddress(libimm32, "ImmUnlockIMC")
   148  	immUnlockIMCC = doGetProcAddress(libimm32, "ImmUnlockIMCC")
   149  }
   150  
   151  func ImmAssociateContext(unnamed0 HWND, unnamed1 HIMC) HIMC {
   152  	ret1 := syscall3(immAssociateContext, 2,
   153  		uintptr(unnamed0),
   154  		uintptr(unnamed1),
   155  		0)
   156  	return HIMC(ret1)
   157  }
   158  
   159  func ImmAssociateContextEx(unnamed0 HWND, unnamed1 HIMC, unnamed2 DWORD) bool {
   160  	ret1 := syscall3(immAssociateContextEx, 3,
   161  		uintptr(unnamed0),
   162  		uintptr(unnamed1),
   163  		uintptr(unnamed2))
   164  	return ret1 != 0
   165  }
   166  
   167  func ImmConfigureIME(unnamed0 HKL, unnamed1 HWND, unnamed2 DWORD, unnamed3 LPVOID) bool {
   168  	ret1 := syscall6(immConfigureIME, 4,
   169  		uintptr(unnamed0),
   170  		uintptr(unnamed1),
   171  		uintptr(unnamed2),
   172  		uintptr(unsafe.Pointer(unnamed3)),
   173  		0,
   174  		0)
   175  	return ret1 != 0
   176  }
   177  
   178  func ImmCreateContext() HIMC {
   179  	ret1 := syscall3(immCreateContext, 0,
   180  		0,
   181  		0,
   182  		0)
   183  	return HIMC(ret1)
   184  }
   185  
   186  func ImmDestroyContext(unnamed0 HIMC) bool {
   187  	ret1 := syscall3(immDestroyContext, 1,
   188  		uintptr(unnamed0),
   189  		0,
   190  		0)
   191  	return ret1 != 0
   192  }
   193  
   194  func ImmDisableIME(unnamed0 DWORD) bool {
   195  	ret1 := syscall3(immDisableIME, 1,
   196  		uintptr(unnamed0),
   197  		0,
   198  		0)
   199  	return ret1 != 0
   200  }
   201  
   202  func ImmDisableTextFrameService(idThread DWORD) bool {
   203  	ret1 := syscall3(immDisableTextFrameService, 1,
   204  		uintptr(idThread),
   205  		0,
   206  		0)
   207  	return ret1 != 0
   208  }
   209  
   210  func ImmEnumInputContext(idThread DWORD, lpfn IMCENUMPROC, lParam LPARAM) bool {
   211  	lpfnCallback := syscall.NewCallback(func(unnamed0RawArg HIMC, unnamed1RawArg LPARAM) uintptr {
   212  		ret := lpfn(unnamed0RawArg, unnamed1RawArg)
   213  		return uintptr(ret)
   214  	})
   215  	ret1 := syscall3(immEnumInputContext, 3,
   216  		uintptr(idThread),
   217  		lpfnCallback,
   218  		uintptr(lParam))
   219  	return ret1 != 0
   220  }
   221  
   222  func ImmEnumRegisterWord(unnamed0 HKL, unnamed1 REGISTERWORDENUMPROC, lpszReading string, unnamed3 DWORD, lpszRegister string, unnamed5 LPVOID) UINT {
   223  	lpszReadingStr := unicode16FromString(lpszReading)
   224  	lpszRegisterStr := unicode16FromString(lpszRegister)
   225  	unnamed1Callback := syscall.NewCallback(func(lpszReadingRawArg /*const*/ *uint16, unnamed1RawArg DWORD, lpszStringRawArg /*const*/ *uint16, unnamed3RawArg LPVOID) uintptr {
   226  		lpszReading := stringFromUnicode16(lpszReadingRawArg)
   227  		lpszString := stringFromUnicode16(lpszStringRawArg)
   228  		ret := unnamed1(lpszReading, unnamed1RawArg, lpszString, unnamed3RawArg)
   229  		return uintptr(ret)
   230  	})
   231  	ret1 := syscall6(immEnumRegisterWord, 6,
   232  		uintptr(unnamed0),
   233  		unnamed1Callback,
   234  		uintptr(unsafe.Pointer(&lpszReadingStr[0])),
   235  		uintptr(unnamed3),
   236  		uintptr(unsafe.Pointer(&lpszRegisterStr[0])),
   237  		uintptr(unsafe.Pointer(unnamed5)))
   238  	return UINT(ret1)
   239  }
   240  
   241  func ImmEscape(unnamed0 HKL, unnamed1 HIMC, unnamed2 UINT, unnamed3 LPVOID) LRESULT {
   242  	ret1 := syscall6(immEscape, 4,
   243  		uintptr(unnamed0),
   244  		uintptr(unnamed1),
   245  		uintptr(unnamed2),
   246  		uintptr(unsafe.Pointer(unnamed3)),
   247  		0,
   248  		0)
   249  	return LRESULT(ret1)
   250  }
   251  
   252  func ImmGetCandidateListCount(unnamed0 HIMC, lpdwListCount *uint32) DWORD {
   253  	ret1 := syscall3(immGetCandidateListCount, 2,
   254  		uintptr(unnamed0),
   255  		uintptr(unsafe.Pointer(lpdwListCount)),
   256  		0)
   257  	return DWORD(ret1)
   258  }
   259  
   260  func ImmGetCandidateList(unnamed0 HIMC, deIndex DWORD, unnamed2 *CANDIDATELIST, dwBufLen DWORD) DWORD {
   261  	ret1 := syscall6(immGetCandidateList, 4,
   262  		uintptr(unnamed0),
   263  		uintptr(deIndex),
   264  		uintptr(unsafe.Pointer(unnamed2)),
   265  		uintptr(dwBufLen),
   266  		0,
   267  		0)
   268  	return DWORD(ret1)
   269  }
   270  
   271  func ImmGetCandidateWindow(unnamed0 HIMC, unnamed1 DWORD, unnamed2 *CANDIDATEFORM) bool {
   272  	ret1 := syscall3(immGetCandidateWindow, 3,
   273  		uintptr(unnamed0),
   274  		uintptr(unnamed1),
   275  		uintptr(unsafe.Pointer(unnamed2)))
   276  	return ret1 != 0
   277  }
   278  
   279  func ImmGetCompositionFont(unnamed0 HIMC, unnamed1 LPLOGFONT) bool {
   280  	ret1 := syscall3(immGetCompositionFont, 2,
   281  		uintptr(unnamed0),
   282  		uintptr(unsafe.Pointer(unnamed1)),
   283  		0)
   284  	return ret1 != 0
   285  }
   286  
   287  func ImmGetCompositionString(unnamed0 HIMC, unnamed1 DWORD, unnamed2 LPVOID, unnamed3 DWORD) LONG {
   288  	ret1 := syscall6(immGetCompositionString, 4,
   289  		uintptr(unnamed0),
   290  		uintptr(unnamed1),
   291  		uintptr(unsafe.Pointer(unnamed2)),
   292  		uintptr(unnamed3),
   293  		0,
   294  		0)
   295  	return LONG(ret1)
   296  }
   297  
   298  func ImmGetCompositionWindow(unnamed0 HIMC, unnamed1 *COMPOSITIONFORM) bool {
   299  	ret1 := syscall3(immGetCompositionWindow, 2,
   300  		uintptr(unnamed0),
   301  		uintptr(unsafe.Pointer(unnamed1)),
   302  		0)
   303  	return ret1 != 0
   304  }
   305  
   306  func ImmGetContext(unnamed0 HWND) HIMC {
   307  	ret1 := syscall3(immGetContext, 1,
   308  		uintptr(unnamed0),
   309  		0,
   310  		0)
   311  	return HIMC(ret1)
   312  }
   313  
   314  func ImmGetConversionList(unnamed0 HKL, unnamed1 HIMC, unnamed2 string, unnamed3 *CANDIDATELIST, dwBufLen DWORD, uFlag UINT) DWORD {
   315  	unnamed2Str := unicode16FromString(unnamed2)
   316  	ret1 := syscall6(immGetConversionList, 6,
   317  		uintptr(unnamed0),
   318  		uintptr(unnamed1),
   319  		uintptr(unsafe.Pointer(&unnamed2Str[0])),
   320  		uintptr(unsafe.Pointer(unnamed3)),
   321  		uintptr(dwBufLen),
   322  		uintptr(uFlag))
   323  	return DWORD(ret1)
   324  }
   325  
   326  func ImmGetConversionStatus(unnamed0 HIMC, unnamed1 *uint32, unnamed2 *uint32) bool {
   327  	ret1 := syscall3(immGetConversionStatus, 3,
   328  		uintptr(unnamed0),
   329  		uintptr(unsafe.Pointer(unnamed1)),
   330  		uintptr(unsafe.Pointer(unnamed2)))
   331  	return ret1 != 0
   332  }
   333  
   334  func ImmGetDefaultIMEWnd(unnamed0 HWND) HWND {
   335  	ret1 := syscall3(immGetDefaultIMEWnd, 1,
   336  		uintptr(unnamed0),
   337  		0,
   338  		0)
   339  	return HWND(ret1)
   340  }
   341  
   342  func ImmGetDescription(unnamed0 HKL, unnamed1 LPWSTR, uBufLen UINT) UINT {
   343  	ret1 := syscall3(immGetDescription, 3,
   344  		uintptr(unnamed0),
   345  		uintptr(unsafe.Pointer(unnamed1)),
   346  		uintptr(uBufLen))
   347  	return UINT(ret1)
   348  }
   349  
   350  func ImmGetGuideLine(unnamed0 HIMC, dwIndex DWORD, unnamed2 LPWSTR, dwBufLen DWORD) DWORD {
   351  	ret1 := syscall6(immGetGuideLine, 4,
   352  		uintptr(unnamed0),
   353  		uintptr(dwIndex),
   354  		uintptr(unsafe.Pointer(unnamed2)),
   355  		uintptr(dwBufLen),
   356  		0,
   357  		0)
   358  	return DWORD(ret1)
   359  }
   360  
   361  func ImmGetIMEFileName(unnamed0 HKL, unnamed1 LPWSTR, uBufLen UINT) UINT {
   362  	ret1 := syscall3(immGetIMEFileName, 3,
   363  		uintptr(unnamed0),
   364  		uintptr(unsafe.Pointer(unnamed1)),
   365  		uintptr(uBufLen))
   366  	return UINT(ret1)
   367  }
   368  
   369  func ImmGetImeMenuItems(unnamed0 HIMC, unnamed1 DWORD, unnamed2 DWORD, unnamed3 LPIMEMENUITEMINFO, unnamed4 LPIMEMENUITEMINFO, unnamed5 DWORD) DWORD {
   370  	ret1 := syscall6(immGetImeMenuItems, 6,
   371  		uintptr(unnamed0),
   372  		uintptr(unnamed1),
   373  		uintptr(unnamed2),
   374  		uintptr(unsafe.Pointer(unnamed3)),
   375  		uintptr(unsafe.Pointer(unnamed4)),
   376  		uintptr(unnamed5))
   377  	return DWORD(ret1)
   378  }
   379  
   380  func ImmGetOpenStatus(unnamed0 HIMC) bool {
   381  	ret1 := syscall3(immGetOpenStatus, 1,
   382  		uintptr(unnamed0),
   383  		0,
   384  		0)
   385  	return ret1 != 0
   386  }
   387  
   388  func ImmGetProperty(unnamed0 HKL, unnamed1 DWORD) DWORD {
   389  	ret1 := syscall3(immGetProperty, 2,
   390  		uintptr(unnamed0),
   391  		uintptr(unnamed1),
   392  		0)
   393  	return DWORD(ret1)
   394  }
   395  
   396  func ImmGetRegisterWordStyle(unnamed0 HKL, nItem UINT, unnamed2 LPSTYLEBUF) UINT {
   397  	ret1 := syscall3(immGetRegisterWordStyle, 3,
   398  		uintptr(unnamed0),
   399  		uintptr(nItem),
   400  		uintptr(unsafe.Pointer(unnamed2)))
   401  	return UINT(ret1)
   402  }
   403  
   404  func ImmGetStatusWindowPos(unnamed0 HIMC, unnamed1 *POINT) bool {
   405  	ret1 := syscall3(immGetStatusWindowPos, 2,
   406  		uintptr(unnamed0),
   407  		uintptr(unsafe.Pointer(unnamed1)),
   408  		0)
   409  	return ret1 != 0
   410  }
   411  
   412  func ImmGetVirtualKey(unnamed0 HWND) UINT {
   413  	ret1 := syscall3(immGetVirtualKey, 1,
   414  		uintptr(unnamed0),
   415  		0,
   416  		0)
   417  	return UINT(ret1)
   418  }
   419  
   420  func ImmInstallIME(lpszIMEFileName string, lpszLayoutText string) HKL {
   421  	lpszIMEFileNameStr := unicode16FromString(lpszIMEFileName)
   422  	lpszLayoutTextStr := unicode16FromString(lpszLayoutText)
   423  	ret1 := syscall3(immInstallIME, 2,
   424  		uintptr(unsafe.Pointer(&lpszIMEFileNameStr[0])),
   425  		uintptr(unsafe.Pointer(&lpszLayoutTextStr[0])),
   426  		0)
   427  	return HKL(ret1)
   428  }
   429  
   430  func ImmIsIME(unnamed0 HKL) bool {
   431  	ret1 := syscall3(immIsIME, 1,
   432  		uintptr(unnamed0),
   433  		0,
   434  		0)
   435  	return ret1 != 0
   436  }
   437  
   438  func ImmIsUIMessage(unnamed0 HWND, unnamed1 UINT, unnamed2 WPARAM, unnamed3 LPARAM) bool {
   439  	ret1 := syscall6(immIsUIMessage, 4,
   440  		uintptr(unnamed0),
   441  		uintptr(unnamed1),
   442  		uintptr(unnamed2),
   443  		uintptr(unnamed3),
   444  		0,
   445  		0)
   446  	return ret1 != 0
   447  }
   448  
   449  func ImmNotifyIME(unnamed0 HIMC, dwAction DWORD, dwIndex DWORD, dwValue DWORD) bool {
   450  	ret1 := syscall6(immNotifyIME, 4,
   451  		uintptr(unnamed0),
   452  		uintptr(dwAction),
   453  		uintptr(dwIndex),
   454  		uintptr(dwValue),
   455  		0,
   456  		0)
   457  	return ret1 != 0
   458  }
   459  
   460  func ImmRegisterWord(unnamed0 HKL, lpszReading string, unnamed2 DWORD, lpszRegister string) bool {
   461  	lpszReadingStr := unicode16FromString(lpszReading)
   462  	lpszRegisterStr := unicode16FromString(lpszRegister)
   463  	ret1 := syscall6(immRegisterWord, 4,
   464  		uintptr(unnamed0),
   465  		uintptr(unsafe.Pointer(&lpszReadingStr[0])),
   466  		uintptr(unnamed2),
   467  		uintptr(unsafe.Pointer(&lpszRegisterStr[0])),
   468  		0,
   469  		0)
   470  	return ret1 != 0
   471  }
   472  
   473  func ImmReleaseContext(unnamed0 HWND, unnamed1 HIMC) bool {
   474  	ret1 := syscall3(immReleaseContext, 2,
   475  		uintptr(unnamed0),
   476  		uintptr(unnamed1),
   477  		0)
   478  	return ret1 != 0
   479  }
   480  
   481  func ImmSetCandidateWindow(unnamed0 HIMC, unnamed1 *CANDIDATEFORM) bool {
   482  	ret1 := syscall3(immSetCandidateWindow, 2,
   483  		uintptr(unnamed0),
   484  		uintptr(unsafe.Pointer(unnamed1)),
   485  		0)
   486  	return ret1 != 0
   487  }
   488  
   489  func ImmSetCompositionFont(unnamed0 HIMC, unnamed1 LPLOGFONT) bool {
   490  	ret1 := syscall3(immSetCompositionFont, 2,
   491  		uintptr(unnamed0),
   492  		uintptr(unsafe.Pointer(unnamed1)),
   493  		0)
   494  	return ret1 != 0
   495  }
   496  
   497  func ImmSetCompositionString(unnamed0 HIMC, dwIndex DWORD, lpComp LPVOID, unnamed3 DWORD, lpRead LPVOID, unnamed5 DWORD) bool {
   498  	ret1 := syscall6(immSetCompositionString, 6,
   499  		uintptr(unnamed0),
   500  		uintptr(dwIndex),
   501  		uintptr(unsafe.Pointer(lpComp)),
   502  		uintptr(unnamed3),
   503  		uintptr(unsafe.Pointer(lpRead)),
   504  		uintptr(unnamed5))
   505  	return ret1 != 0
   506  }
   507  
   508  func ImmSetCompositionWindow(unnamed0 HIMC, unnamed1 *COMPOSITIONFORM) bool {
   509  	ret1 := syscall3(immSetCompositionWindow, 2,
   510  		uintptr(unnamed0),
   511  		uintptr(unsafe.Pointer(unnamed1)),
   512  		0)
   513  	return ret1 != 0
   514  }
   515  
   516  func ImmSetConversionStatus(unnamed0 HIMC, unnamed1 DWORD, unnamed2 DWORD) bool {
   517  	ret1 := syscall3(immSetConversionStatus, 3,
   518  		uintptr(unnamed0),
   519  		uintptr(unnamed1),
   520  		uintptr(unnamed2))
   521  	return ret1 != 0
   522  }
   523  
   524  func ImmSetOpenStatus(unnamed0 HIMC, unnamed1 bool) bool {
   525  	ret1 := syscall3(immSetOpenStatus, 2,
   526  		uintptr(unnamed0),
   527  		getUintptrFromBool(unnamed1),
   528  		0)
   529  	return ret1 != 0
   530  }
   531  
   532  func ImmSetStatusWindowPos(unnamed0 HIMC, unnamed1 *POINT) bool {
   533  	ret1 := syscall3(immSetStatusWindowPos, 2,
   534  		uintptr(unnamed0),
   535  		uintptr(unsafe.Pointer(unnamed1)),
   536  		0)
   537  	return ret1 != 0
   538  }
   539  
   540  func ImmSimulateHotKey(unnamed0 HWND, unnamed1 DWORD) bool {
   541  	ret1 := syscall3(immSimulateHotKey, 2,
   542  		uintptr(unnamed0),
   543  		uintptr(unnamed1),
   544  		0)
   545  	return ret1 != 0
   546  }
   547  
   548  func ImmUnregisterWord(unnamed0 HKL, lpszReading string, unnamed2 DWORD, lpszUnregister string) bool {
   549  	lpszReadingStr := unicode16FromString(lpszReading)
   550  	lpszUnregisterStr := unicode16FromString(lpszUnregister)
   551  	ret1 := syscall6(immUnregisterWord, 4,
   552  		uintptr(unnamed0),
   553  		uintptr(unsafe.Pointer(&lpszReadingStr[0])),
   554  		uintptr(unnamed2),
   555  		uintptr(unsafe.Pointer(&lpszUnregisterStr[0])),
   556  		0,
   557  		0)
   558  	return ret1 != 0
   559  }
   560  
   561  func ImmCreateIMCC(size DWORD) HIMCC {
   562  	ret1 := syscall3(immCreateIMCC, 1,
   563  		uintptr(size),
   564  		0,
   565  		0)
   566  	return HIMCC(ret1)
   567  }
   568  
   569  func ImmCreateSoftKeyboard(uType UINT, hOwner UINT, x int32, y int32) HWND {
   570  	ret1 := syscall6(immCreateSoftKeyboard, 4,
   571  		uintptr(uType),
   572  		uintptr(hOwner),
   573  		uintptr(x),
   574  		uintptr(y),
   575  		0,
   576  		0)
   577  	return HWND(ret1)
   578  }
   579  
   580  func ImmDestroyIMCC(block HIMCC) HIMCC {
   581  	ret1 := syscall3(immDestroyIMCC, 1,
   582  		uintptr(block),
   583  		0,
   584  		0)
   585  	return HIMCC(ret1)
   586  }
   587  
   588  func ImmDestroySoftKeyboard(hSoftWnd HWND) bool {
   589  	ret1 := syscall3(immDestroySoftKeyboard, 1,
   590  		uintptr(hSoftWnd),
   591  		0,
   592  		0)
   593  	return ret1 != 0
   594  }
   595  
   596  func ImmGenerateMessage(hIMC HIMC) bool {
   597  	ret1 := syscall3(immGenerateMessage, 1,
   598  		uintptr(hIMC),
   599  		0,
   600  		0)
   601  	return ret1 != 0
   602  }
   603  
   604  func ImmGetHotKey(hotkey DWORD, modifiers *UINT, key *UINT, hkl HKL) bool {
   605  	ret1 := syscall6(immGetHotKey, 4,
   606  		uintptr(hotkey),
   607  		uintptr(unsafe.Pointer(modifiers)),
   608  		uintptr(unsafe.Pointer(key)),
   609  		uintptr(hkl),
   610  		0,
   611  		0)
   612  	return ret1 != 0
   613  }
   614  
   615  func ImmGetIMCCLockCount(imcc HIMCC) DWORD {
   616  	ret1 := syscall3(immGetIMCCLockCount, 1,
   617  		uintptr(imcc),
   618  		0,
   619  		0)
   620  	return DWORD(ret1)
   621  }
   622  
   623  func ImmGetIMCCSize(imcc HIMCC) DWORD {
   624  	ret1 := syscall3(immGetIMCCSize, 1,
   625  		uintptr(imcc),
   626  		0,
   627  		0)
   628  	return DWORD(ret1)
   629  }
   630  
   631  func ImmGetIMCLockCount(hIMC HIMC) DWORD {
   632  	ret1 := syscall3(immGetIMCLockCount, 1,
   633  		uintptr(hIMC),
   634  		0,
   635  		0)
   636  	return DWORD(ret1)
   637  }
   638  
   639  func ImmLockIMC(hIMC HIMC) *INPUTCONTEXT {
   640  	ret1 := syscall3(immLockIMC, 1,
   641  		uintptr(hIMC),
   642  		0,
   643  		0)
   644  	return (*INPUTCONTEXT)(unsafe.Pointer(ret1))
   645  }
   646  
   647  func ImmLockIMCC(imcc HIMCC) LPVOID {
   648  	ret1 := syscall3(immLockIMCC, 1,
   649  		uintptr(imcc),
   650  		0,
   651  		0)
   652  	return (LPVOID)(unsafe.Pointer(ret1))
   653  }
   654  
   655  func ImmProcessKey(hwnd HWND, hKL HKL, vKey UINT, lKeyData LPARAM, unknown DWORD) bool {
   656  	ret1 := syscall6(immProcessKey, 5,
   657  		uintptr(hwnd),
   658  		uintptr(hKL),
   659  		uintptr(vKey),
   660  		uintptr(lKeyData),
   661  		uintptr(unknown),
   662  		0)
   663  	return ret1 != 0
   664  }
   665  
   666  func ImmReSizeIMCC(imcc HIMCC, size DWORD) HIMCC {
   667  	ret1 := syscall3(immReSizeIMCC, 2,
   668  		uintptr(imcc),
   669  		uintptr(size),
   670  		0)
   671  	return HIMCC(ret1)
   672  }
   673  
   674  func ImmRequestMessage(hIMC HIMC, wParam WPARAM, lParam LPARAM) LRESULT {
   675  	ret1 := syscall3(immRequestMessage, 3,
   676  		uintptr(hIMC),
   677  		uintptr(wParam),
   678  		uintptr(lParam))
   679  	return LRESULT(ret1)
   680  }
   681  
   682  func ImmShowSoftKeyboard(hSoftWnd HWND, nCmdShow int32) bool {
   683  	ret1 := syscall3(immShowSoftKeyboard, 2,
   684  		uintptr(hSoftWnd),
   685  		uintptr(nCmdShow),
   686  		0)
   687  	return ret1 != 0
   688  }
   689  
   690  func ImmTranslateMessage(hwnd HWND, msg UINT, wParam WPARAM, lKeyData LPARAM) bool {
   691  	ret1 := syscall6(immTranslateMessage, 4,
   692  		uintptr(hwnd),
   693  		uintptr(msg),
   694  		uintptr(wParam),
   695  		uintptr(lKeyData),
   696  		0,
   697  		0)
   698  	return ret1 != 0
   699  }
   700  
   701  func ImmUnlockIMC(hIMC HIMC) bool {
   702  	ret1 := syscall3(immUnlockIMC, 1,
   703  		uintptr(hIMC),
   704  		0,
   705  		0)
   706  	return ret1 != 0
   707  }
   708  
   709  func ImmUnlockIMCC(imcc HIMCC) bool {
   710  	ret1 := syscall3(immUnlockIMCC, 1,
   711  		uintptr(imcc),
   712  		0,
   713  		0)
   714  	return ret1 != 0
   715  }