//************************************************************* // // Group Policy Performance test program // // Copyright (c) Microsoft Corporation 1997-1998 // // History: 11-Jan-99 SitaramR Created // //************************************************************* #include #include #include #include int __cdecl main( int argc, char *argv[]) { HANDLE hToken; PGROUP_POLICY_OBJECT pGPOList; LARGE_INTEGER Freq; LARGE_INTEGER Start, Stop, Total; DWORD i; DWORD nIterations = 10; if ( !OpenProcessToken (GetCurrentProcess(), TOKEN_ALL_ACCESS, &hToken) ) { printf("Unable to get process token\n"); return 0; } QueryPerformanceFrequency( &Freq ); Total.QuadPart = 0; printf( "Starting %d iterations\n", nIterations ); for ( i=0; i