4 * Copyright 2019 Vijay Kiran Kamuju
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 #include "wine/test.h"
27 static void CALLBACK
line_callback(DWORD hDev
, DWORD dwMsg
, DWORD_PTR dwInst
, DWORD_PTR param1
, DWORD_PTR param2
, DWORD_PTR param3
)
31 static void test_lineInitialize(void)
37 ret
= lineInitialize(NULL
, NULL
, NULL
, NULL
, NULL
);
38 todo_wine
ok(ret
== LINEERR_INVALPOINTER
, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret
);
40 ret
= lineInitialize(&lnApp
, NULL
, NULL
, NULL
, NULL
);
41 todo_wine
ok(ret
== LINEERR_INVALPOINTER
, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret
);
43 ret
= lineInitialize(&lnApp
, GetModuleHandleA(NULL
), NULL
, NULL
, NULL
);
44 todo_wine
ok(ret
== LINEERR_INVALPOINTER
, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret
);
46 ret
= lineInitialize(&lnApp
, GetModuleHandleA(NULL
), line_callback
, NULL
, NULL
);
47 todo_wine
ok(ret
== LINEERR_INVALPOINTER
, "Expected return value LINEERR_INVALPOINTER, got %x.\n", ret
);
49 ret
= lineInitialize(&lnApp
, GetModuleHandleA(NULL
), line_callback
, NULL
, &dev
);
50 ok(!ret
, "unexpected return value, got %u.\n", ret
);
52 ret
= lineShutdown(NULL
);
53 todo_wine
ok(ret
== LINEERR_INVALAPPHANDLE
, "Expected return value LINEERR_INVALAPPHANDLE, got %x.\n", ret
);
55 ret
= lineShutdown(lnApp
);
56 ok(!ret
, "unexpected return value, got %u.\n", ret
);
61 test_lineInitialize();