static PrinterData getDefaultPrinterData() {
public static PrinterData getDefaultPrinterData() {
static PrinterData getDefaultPrinterData() {	String deviceName = null;	int length = 1024;	/* Use the character encoding for the default locale */	TCHAR buf = new TCHAR(0, length);	TCHAR nullBuf = new TCHAR(0, 1);	int n = OS.GetProfileString(appName, keyName, nullBuf, buf, length);	if (n == 0) SWT.error(SWT.ERROR_NO_HANDLES);	int commaIndex = 0;	while(buf.tcharAt(commaIndex) != ',' && commaIndex < length) commaIndex++;	if (commaIndex < length) {		deviceName = buf.toString(0, commaIndex);			}	String driver = "";	if (OS.GetProfileString(profile, new TCHAR(0, deviceName, true), nullBuf, buf, length) > 0) {		commaIndex = 0;		while (buf.tcharAt(commaIndex) != ',' && commaIndex < length) commaIndex++;		if (commaIndex < length) {			driver = buf.toString(0, commaIndex);			}	}	return new PrinterData(driver, deviceName);}