Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1019 B

  1. #include <windows.h>
  2. #include "hwxapp.h"
  3. #include "api.h"
  4. extern const IID IID_Multibox = { /* 62e71630-f869-11d0-af9c-00805f0c8b6d */
  5. 0x62e71630,
  6. 0xf869,
  7. 0x11d0,
  8. {0xaf, 0x9c, 0x00, 0x80, 0x5f, 0x0c, 0x8b, 0x6d}
  9. };
  10. HRESULT WINAPI GetIImePadAppletIdList(LPAPPLETIDLIST lpIdList)
  11. {
  12. #ifdef IME98_BETA2 //970826:ToshiaK for beta1 relesae, do not create multibox instance
  13. lpIdList->count = 0;
  14. lpIdList->pIIDList = NULL;
  15. return S_FALSE;
  16. #else
  17. lpIdList->count = 1;
  18. lpIdList->pIIDList = (IID *)CoTaskMemAlloc(sizeof(IID));
  19. lpIdList->pIIDList[0] = IID_Multibox;
  20. return S_OK;
  21. #endif
  22. }
  23. HRESULT WINAPI CreateIImePadAppletInstance(REFIID refiid, VOID **ppvObj)
  24. {
  25. extern HINSTANCE g_hInst;
  26. #ifdef IME98_BETA2
  27. *ppvObj = NULL;
  28. return S_FALSE;
  29. #else
  30. CApplet *pCApplet = new CApplet(g_hInst);
  31. if(pCApplet == NULL) {
  32. return E_OUTOFMEMORY;
  33. }
  34. pCApplet->QueryInterface(refiid, ppvObj);
  35. return S_OK;
  36. #endif
  37. }