static public Map<String, ENUM_SERVICE_STATUS_PROCESS> enumerateServices(String machine)
{
Map<String, ENUM_SERVICE_STATUS_PROCESS> result = new HashMap();
// Open the Service Control Manager
Pointer sc = openServiceControlManager(machine, WINSVC.SC_MANAGER_ENUMERATE_SERVICE);
// Check if OpenSCManager returns NULL. Otherwise proceed
if (sc != null && !sc.equals(null))
{
Memory service_data = null;
int service_data_size = 0;
int infoLevel = WINSVC.SC_ENUM_PROCESS_INFO;
boolean retVal;