win-pvdrivers

view waitnopendinginstallevents/waitnopendinginstallevents.c @ 906:9be11a753ca2

indicate small packets with STATUS_RESOURCES as Windows is lazy about returning them.
checksum fixes
maintian a freelist of packets
author James Harper <james.harper@bendigoit.com.au>
date Fri Apr 15 16:01:34 2011 +1000 (2011-04-15)
parents 036172f7e1b2
children
line source
1 #pragma warning(disable: 4201)
2 #include <basetyps.h>
3 #include <stdlib.h>
4 #include <wtypes.h>
5 #include <stdio.h>
6 #include <string.h>
7 #include <strsafe.h>
8 #include <cfgmgr32.h>
10 int __cdecl
11 main(ULONG argc, PCHAR argv[])
12 {
13 DWORD ret;
14 DWORD timeout = INFINITE;
16 if (argc == 2)
17 {
18 timeout = atoi(argv[1]);
19 }
21 //printf("timeout = %d\n", timeout);
23 ret = CMP_WaitNoPendingInstallEvents(timeout);
25 //printf("ret = %d\n", ret);
27 return ret;
28 }