win-pvdrivers

view waitnopendinginstallevents/waitnopendinginstallevents.c @ 1045:f6a7b0654b9c

Added tag 0.11.0.399 for changeset 9f476ac2fbe1
author James Harper <james.harper@bendigoit.com.au>
date Mon Mar 04 14:36:18 2013 +1100 (2013-03-04)
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 }