// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft end-user // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. // If you did not accept the terms of the EULA, you are not authorized to use // this source code. For a copy of the EULA, please see the LICENSE.RTF on your // install media. // #ifndef __INCLUDE_SIP__ #define __INCLUDE_SIP__ #ifdef __cplusplus extern "C" { #endif DWORD WINAPI SipStatus(); #define SIP_STATUS_UNAVAILABLE 0 #define SIP_STATUS_AVAILABLE 1 BOOL WINAPI SipSetDefaultRect(RECT *); BOOL WINAPI SipRegisterNotification(HWND); BOOL WINAPI SipShowIM(DWORD); #define SIPF_OFF 0x00000000 #define SIPF_ON 0x00000001 #define SIPF_DOCKED 0x00000002 #define SIPF_LOCKED 0x00000004 #define SPI_SETCOMPLETIONINFO 223 #define SPI_SETSIPINFO 224 #define SPI_GETSIPINFO 225 #define SPI_SETCURRENTIM 226 #define SPI_GETCURRENTIM 227 #define SPI_SIPMOVE 250 typedef struct tagSIPINFO { DWORD cbSize; DWORD fdwFlags; RECT rcVisibleDesktop; RECT rcSipRect; DWORD dwImDataSize; void *pvImData; } SIPINFO; BOOL WINAPI SipGetInfo(SIPINFO *); BOOL WINAPI SipSetInfo(SIPINFO *); typedef struct tagIMENUMINFO { TCHAR szName[MAX_PATH]; CLSID clsid; } IMENUMINFO, *PIMENUMINFO; typedef int (* IMENUMPROC)(IMENUMINFO *); int WINAPI SipEnumIM(IMENUMPROC); BOOL WINAPI SipGetCurrentIM(CLSID *); BOOL WINAPI SipSetCurrentIM(CLSID *); typedef struct tagIMWINDOWPOS { int x; // Screen coordinate int y; // Screen coordinate int cx; // Screen coordinate int cy; // Screen coordinate } IMWINDOWPOS; // The following defines are for the WPARAM value in WM_IM_INFO. #define IM_POSITION 0 #define IM_WIDEIMAGE 1 #define IM_NARROWIMAGE 2 #define IM_HWND_CONTEXT 3 #define IM_CONVERSION_MODE 4 #define IM_SENTENCE_MODE 5 #define IM_KEYBOARD_LAYOUT 6 #ifdef __cplusplus } #endif #endif//__INCLUDE_SIP__