Lines Matching defs:hp
84 HOOKPTR hp;
86 for (hp = hookList.next ; hp != &hookList ; hp = hp->next) {
87 if (hp->hWnd == hWnd && hp->wMsg == wMsg) {
88 return (hp);
96 HOOKPTR hp, prev, next;
98 if ((hp = (HOOKPTR)malloc(sizeof(HOOKREC))) == NULL) {
102 memset(hp, 0, sizeof(*hp));
104 hp->ctx = ctx;
105 hp->hWnd = hWnd;
106 hp->wMsg = wMsg;
107 hp->pBuf = buf;
111 prev->next = hp;
112 next->prev = hp;
113 hp->next = next;
114 hp->prev = prev;
120 hookListDelete(HOOKPTR hp)
124 prev = hp->prev;
125 next = hp->next;
129 free(hp);
135 HOOKPTR hp;
137 while ((hp = hookList.next) != &hookList) {
138 hookListDelete(hp);