1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4
5/*=====================================================================
6**
7** Source: test3.c
8**
9** Purpose: Tests how QueueUserAPC handles an invalid thread.
10**
11**
12**===================================================================*/
13
14#include <palsuite.h>
15
16int __cdecl main (int argc, char **argv)
17{
18 int ret;
19
20 if (0 != (PAL_Initialize(argc, argv)))
21 {
22 return FAIL;
23 }
24
25 ret = QueueUserAPC(NULL, NULL, 0);
26 if (ret != 0)
27 {
28 Fail("QueueUserAPC passed with an invalid thread!\n");
29 }
30
31 PAL_Terminate();
32 return PASS;
33}
34