/packages/winceunits/src/sipapi.pp
Puppet | 107 lines | 82 code | 25 blank | 0 comment | 3 complexity | 5f4ee9cffdf9605a5e08086b7a2d387c MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
1{ 2 This file is part of the Free Pascal run time library. 3 Copyright (c) 2008 Free Pascal development team. 4 5 See the file COPYING.FPC, included in this distribution, 6 for details about the copyright. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 12 ********************************************************************** } 13// 14// Module: sipapi.h 15// 16 17// 18// Microsoft Windows Mobile 5.0 for PocketPC SDK. 19// 20 21unit SIPApi; 22 23{$CALLING cdecl} 24 25interface 26 27uses Windows; 28 29const 30 SIP_STATUS_UNAVAILABLE = 0; 31 SIP_STATUS_AVAILABLE = 1; 32 33function SipStatus:DWORD; external KernelDLL name 'SipStatus'; // index 659 34 35 36function SipSetDefaultRect(lprt:LPRECT):BOOL; external KernelDLL name 'SipSetDefaultRect'; // index 661 37function SipRegisterNotification(hWin:HWND):BOOL; external KernelDLL name 'SipRegisterNotification'; // index 65A 38 39function SipShowIM(dwFlag:DWORD):BOOL; external KernelDLL name 'SipShowIM'; // index 65B 40 41const 42 SIPF_OFF = $00000000; 43 SIPF_ON = $00000001; 44 SIPF_DOCKED = $00000002; 45 SIPF_LOCKED = $00000004; 46 47 SPI_SETCOMPLETIONINFO = 223; 48 SPI_SETSIPINFO = 224; 49 SPI_GETSIPINFO = 225; 50 SPI_SETCURRENTIM = 226; 51 SPI_GETCURRENTIM = 227; 52 SPI_SIPMOVE = 250; 53 54type 55 tagSIPINFO = record 56 cbSize:DWORD; 57 fdwFlags:DWORD; 58 rcVisibleDesktop:RECT; 59 rcSipRect:RECT; 60 dwImDataSize:DWORD; 61 pvImData:LPVOID; 62 end; 63 SIPINFO = tagSIPINFO; 64 LPSIPINFO = ^tagSIPINFO; 65 66function SipGetInfo(pSipInfo:LPSIPINFO):BOOL; external KernelDLL name 'SipGetInfo'; // index 65C 67 68function SipSetInfo(pSipInfo:LPSIPINFO):BOOL; external KernelDLL name 'SipSetInfo'; // index 65D 69 70type 71 tagIMENUMINFO = record 72 szName:array[0..MAX_PATH-1] of TCHAR; 73 clsid:CLSID; 74 end; 75 IMENUMINFO = tagIMENUMINFO; 76 PIMENUMINFO = ^tagIMENUMINFO; 77 78type 79 IMENUMPROC = function(pIMInfo:PIMENUMINFO):longint; 80 81function SipEnumIM(pEnumIMProc:IMENUMPROC):longint; external KernelDLL name 'SipEnumIM'; // index 65E 82function SipGetCurrentIM(pClsid:LPCLSID):BOOL; external KernelDLL name 'SipGetCurrentIM'; // index 65F 83function SipSetCurrentIM(pClsid:LPCLSID):BOOL; external KernelDLL name 'SipSetCurrentIM'; // index 660 84 85type 86 tagIMWINDOWPOS = record 87 x:longint; // Screen coordinate 88 y:longint; // Screen coordinate 89 cx:longint; // Screen coordinate 90 cy:longint; // Screen coordinate 91 end; 92 IMWINDOWPOS = tagIMWINDOWPOS; 93 LPIMWINDOWPOS = ^tagIMWINDOWPOS; 94 95// The following defines are for the WPARAM value in WM_IM_INFO. 96const 97 IM_POSITION = 0; 98 IM_WIDEIMAGE = 1; 99 IM_NARROWIMAGE = 2; 100 IM_HWND_CONTEXT = 3; 101 IM_CONVERSION_MODE = 4; 102 IM_SENTENCE_MODE = 5; 103 IM_KEYBOARD_LAYOUT = 6; 104 105implementation 106 107end.