MCPcopy Create free account
hub / github.com/acl-dev/acl / win32_proc

Method win32_proc

lib_acl_cpp/src/db/db_service.cpp:224–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222#ifdef ACL_WINDOWS
223
224void db_service::win32_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
225{
226 DB_IPC_DAT* dat = NULL;
227 db_query* query = NULL;
228
229 switch (msg - WM_USER) {
230 case DB_OK:
231 dat = (DB_IPC_DAT*) lParam;
232 query = dat->query;
233 query->on_ok(dat->rows, dat->affected_rows);
234 break;
235 case DB_ERR_OPEN:
236 dat = (DB_IPC_DAT*) lParam;
237 query = dat->query;
238 query->on_error(DB_ERR_OPEN);
239 break;
240 case DB_ERR_EXEC_SQL:
241 dat = (DB_IPC_DAT*) lParam;
242 query = dat->query;
243 query->on_error(DB_ERR_EXEC_SQL);
244 break;
245 default:
246 break;
247 }
248
249 if (dat) {
250 dat->db->free_result();
251 push_back(dat->db);
252 query->destroy();
253
254 // �ڲ��� ACL_WINDOWS ��Ϣʱ�ö���ռ��Ƕ�̬����ģ�������Ҫ�ͷ�
255 acl_myfree(dat);
256 }
257}
258
259#endif
260

Callers

nothing calls this directly

Calls 5

push_backFunction · 0.85
free_resultMethod · 0.80
on_okMethod · 0.45
on_errorMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected