{
Pointer handle = null;
Advapi32 advapi32;
advapi32 = Advapi32.INSTANCE;
handle = advapi32.OpenSCManager(machine, null, access);
if (handle == null)
{
int err = Native.getLastError();
System.out.println("Error in OpenSCManager: " + Integer.toHexString(err));
if (err == 5)