using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Yaulw.Win32
{
///
/// Advapi.dll Entry Points * http://pinvoke.net/ *
///
public static class Advapi32
{
///
/// Retrieves the current status of the specified service based on the specified information level
///
/// A handle to the service
/// The service attributes to be returned
/// A pointer to the buffer that receives the status information
/// he size of the buffer pointed to by the lpBuffer
/// A pointer to a variable that receives the number of bytes needed to store all status information
/// If the function succeeds, the return value is nonzero
[DllImport("Advapi32.dll")]
extern public static bool QueryServiceStatusEx(IntPtr hService, int InfoLevel, ref Structures.SERVICE_STATUS_PROCESS lpBuffer, int cbBufSize, out int pcbBytesNeeded);
}
}