/*++ Copyright (c) 1992 Microsoft Corporation Module Name: ApiTest.c Abstract: This file contains tests of the Service Controller's lock APIs: RLockServiceDatabase RQueryServiceLockStatusW RUnlockServiceDatabase Author: John Rogers (JohnRo) 15-Apr-1992 Environment: User Mode - Win32 Revision History: 15-Apr-1992 JohnRo Created. 21-Apr-1992 JohnRo Added config API tests. Split-out lock tests into LockTest.c Split-out macros into sctest.h. 17-Oct-1996 AnirudhS Added Config2 API tests. --*/ // // INCLUDES // #define UNICODE #include #include // assert(). #include // FORMAT_ equates. #include #include // TRACE_MSG macros, UNEXPECTED_MSG(), etc. #include // printf() #include // EXIT_ equates. int __cdecl main(void) { /////////////////////////////////////////////////////////////////// SetLastError( 149 ); (VOID) printf( "Force last error is " FORMAT_DWORD "\n", GetLastError() ); /////////////////////////////////////////////////////////////////// TRACE_MSG0( "ApiTest: calling TestConfig2APIs...\n" ); TestConfig2APIs(); TRACE_MSG0( "ApiTest: back from TestConfig2APIs.\n" ); /////////////////////////////////////////////////////////////////// TRACE_MSG0( "ApiTest: calling TestLocks...\n" ); TestLocks(); TRACE_MSG0( "ApiTest: back from TestLocks.\n" ); /////////////////////////////////////////////////////////////////// TRACE_MSG0( "ApiTest: calling TestConfigAPIs...\n" ); TestConfigAPIs(); TRACE_MSG0( "ApiTest: back from TestConfigAPIs.\n" ); /////////////////////////////////////////////////////////////////// return (EXIT_SUCCESS); } // main