public static class NativeAPIEmulation.windows.kernel32
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
errorno
Error number read by
getLastError() |
| Constructor and Description |
|---|
kernel32() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getComputerNameA(character lpBuffer,
integer pcbBuffer)
Retrieves the name of the computer associated with the current thread.
|
static integer |
getCurrentProcessId()
Obtain the process-id (pid) of the current client process.
|
static integer |
getLastError()
Retrieves the calling thread's last-error code value.
|
static integer |
getLocaleInfoA(integer Locale,
integer LCType,
character lpLCData,
integer cchData)
Retrieves information about a locale specified by identifier.
|
static integer |
getPrivateProfileStringA(character appName,
character keyName,
character defaultValue,
character returnedString,
integer size,
character fileName)
Retrieves a string from the specified section in an initialization file.
|
static integer |
getUserDefaultUILanguage()
Returns the language identifier for the user UI language for the current user.
|
static void |
sleep(int64 millis)
Sleep for the duration passed in.
|
private static int errorno
getLastError()public static integer getLastError()
public static integer getUserDefaultUILanguage()
public static integer getPrivateProfileStringA(character appName, character keyName, character defaultValue, character returnedString, integer size, character fileName)
appName - The name of the section containing the key name.keyName - The name of the key whose associated string is to be retrieved.defaultValue - A default string.returnedString - The retrieved string.size - The size of the buffer pointed to by the returnedString parameter, in characters.fileName - The name of the initialization file.public static integer getCurrentProcessId()
public static integer getLocaleInfoA(integer Locale, integer LCType, character lpLCData, integer cchData)
Locale - Locale identifier for which to retrieve information.LCType - The locale information to retrieve.lpLCData - Pointer to a buffer in which this function retrieves the requested locale information.
This pointer is not used if cchData is set to 0.cchData - Size, in TCHAR values, of the data buffer indicated by lpLCData.public static void sleep(int64 millis)
millis - Number of milliseconds to sleep.public static int getComputerNameA(character lpBuffer, integer pcbBuffer)
lpBuffer - A pointer to the buffer to receive the user's computer name.pcbBuffer - On input, this variable specifies the size of the lpBuffer buffer, in TCHARs. On
output, the variable receives the number of TCHARs copied to the buffer, including
the terminating null character.