' ########################################################################################
' Microsoft Windows
' File: iisrsta.inc
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_iisrsta_PBI)
#DEFINE PBX_iisrsta_PBI
%EQUATE `IISRSTA_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
#INCLUDE ONCE "Legacy/COM/OCIdl.inc"
#INCLUDE ONCE "Legacy/Platform/WinSvc.inc"
$IID_IIisServiceControl = GUID$("{E8FB8620-588F-11D2-9D61-00C04F79C5FE}")
$CLSID_IisServiceControl = GUID$("{E8FB8621-588F-11D2-9D61-00C04F79C5FE}")
$LIBID_IISRSTALib = GUID$("{E8FB8614-588F-11D2-9D61-00C04F79C5FE}")
' ########################################################################################
' Interface name = IIisServiceControl
' IID = E8FB8620-588F-11D2-9D61-00C04F79C5FE
' Inherited interface = IDispatch
' ########################################################################################
#IF NOT %DEF(%IIisServiceControl_INTERFACE_DEFINED)
 %IIisServiceControl_INTERFACE_DEFINED = 1
INTERFACE IIisServiceControl $IID_IIisServiceControl
 INHERIT IDispatch
 ' =====================================================================================
 METHOD Stop ( ' VTable offset = 28
 BYVAL dwTimeoutMsecs AS DWORD
 , BYVAL dwForce AS DWORD
 ) ' void
 ' =====================================================================================
 METHOD Start ( ' VTable offset = 32
 BYVAL dwTimeoutMsecs AS DWORD
 ) ' void
 ' =====================================================================================
 METHOD Reboot ( ' VTable offset = 36
 BYVAL dwTimeouMsecs AS DWORD
 , BYVAL dwForceAppsClosed AS DWORD
 ) ' void
 ' =====================================================================================
 METHOD Status ( ' VTable offset = 40
 BYVAL dwBufferSize AS DWORD
 , BYVAL pbBuffer AS DWORD
 , BYREF pdwMDRequiredBufferSize AS DWORD
 , BYREF pdwNumServices AS DWORD
 ) ' void
 ' =====================================================================================
 METHOD Kill ( ' VTable offset = 44
 ) ' void
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IIisServiceControl_INTERFACE_DEFINED__ */
' // Size = 36 bytes
TYPE SERIALIZED_ENUM_SERVICE_STATUS DWORD
 iServiceName AS DWORD
 iDisplayName AS DWORD
 ServiceStatus AS SERVICE_STATUS ' SERVICE_STATUS
END TYPE
#ENDIF
