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