#pragma once //------------------------------------------------------------------------------------------------- // // Copyright (c) 2004, Outercurve Foundation. // This software is released under Microsoft Reciprocal License (MS-RL). // The license and further copyright text can be found in the file // LICENSE.TXT at the root directory of the distribution. // // // // Header for Windows service helper functions. // //------------------------------------------------------------------------------------------------- #ifdef __cplusplus extern "C" { #endif #define ReleaseServiceHandle(h) if (h) { ::CloseServiceHandle(h); h = NULL; } HRESULT DAPI SvcQueryConfig( __in SC_HANDLE sch, __out QUERY_SERVICE_CONFIGW** ppConfig ); #ifdef __cplusplus } #endif