public native static boolean BuildCommDCB (String lpDef, DCB lpDCB);
/** @dll.import("KERNEL32", auto) */
public native static boolean CallNamedPipe (String lpNamedPipeName, int lpInBuffer, int nInBufferSize, int lpOutBuffer, int nOutBufferSize, int[] lpBytesRead, int nTimeOut);
/** @dll.import("KERNEL32",auto) */
public native static boolean CancelIo (int hFile);
/** @dll.import("KERNEL32",auto) */
public native static boolean CancelWaitableTimer (int hTimer);
/** @dll.import("KERNEL32",auto) */
public native static boolean ClearCommBreak (int hFile);
public native static int CreateConsoleScreenBuffer (int dwDesiredAccess, int dwShareMode, SECURITY_ATTRIBUTES lpSecurityAttributes, int dwFlags, int lpScreenBufferData);
public native static boolean CreateDirectory (String lpPathName, SECURITY_ATTRIBUTES lpSecurityAttributes);
/** @dll.import("KERNEL32", auto) */
public native static int CreateEvent (SECURITY_ATTRIBUTES lpEventAttributes, boolean bManualReset, boolean bInitialState, String lpName);
/** @dll.import("KERNEL32",auto) */
public native static int CreateFiber (int dwStackSize, int lpStartAddress, int lpParameter);
/** @dll.import("KERNEL32", auto) */
public native static int CreateFileMapping (int hFile, SECURITY_ATTRIBUTES lpFileMappingAttributes, int flProtect, int dwMaximumSizeHigh, int dwMaximumSizeLow, String lpName);
/** @dll.import("KERNEL32", auto) */
public native static int CreateFile (String lpFileName, int dwDesiredAccess, int dwShareMode, SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, int hTemplateFile);
/** @dll.import("KERNEL32",auto) */
public native static int CreateIoCompletionPort (int FileHandle, int ExistingCompletionPort, int CompletionKey, int NumberOfConcurrentThreads);
/** @dll.import("KERNEL32", auto) */
public native static int CreateMailslot (String lpName, int nMaxMessageSize, int lReadTimeout, SECURITY_ATTRIBUTES lpSecurityAttributes);
/** @dll.import("KERNEL32", auto) */
public native static int CreateMutex (SECURITY_ATTRIBUTES lpMutexAttributes, boolean bInitialOwner, String lpName);
/** @dll.import("KERNEL32", auto) */
public native static int CreateNamedPipe (String lpName, int dwOpenMode, int dwPipeMode, int nMaxInstances, int nOutBufferSize, int nInBufferSize, int nDefaultTimeOut, SECURITY_ATTRIBUTES lpSecurityAttributes);
/** @dll.import("KERNEL32",auto) */
public native static boolean CreatePipe (int[] hReadPipe, int[] hWritePipe, SECURITY_ATTRIBUTES lpPipeAttributes, int nSize);
/** @dll.import("KERNEL32", auto) */
public native static boolean CreateProcess (String lpApplicationName, String lpCommandLine, SECURITY_ATTRIBUTES lpProcessAttributes, SECURITY_ATTRIBUTES lpThreadAttributes, boolean bInheritHandles, int dwCreationFlags, int lpEnvironment, String lpCurrentDirectory, STARTUPINFO lpStartupInfo, PROCESS_INFORMATION lpProcessInformation);
/** @dll.import("KERNEL32",auto) */
public native static int CreateRemoteThread (int hProcess, SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, com.ms.dll.Callback lpStartAddress, int lpParameter, int dwCreationFlags, int[] lpThreadId);
/** @dll.import("KERNEL32", auto) */
public native static int CreateSemaphore (SECURITY_ATTRIBUTES lpSemaphoreAttributes, int lInitialCount, int lMaximumCount, String lpName);
/** @dll.import("KERNEL32",auto) */
public native static int CreateTapePartition (int hDevice, int dwPartitionMethod, int dwCount, int dwSize);
/** @dll.import("KERNEL32",auto) */
public native static int CreateThread (SECURITY_ATTRIBUTES lpThreadAttributes, int dwStackSize, com.ms.dll.Callback lpStartAddress, int lpParameter, int dwCreationFlags, int[] lpThreadId);
/** @dll.import("KERNEL32", auto) */
public native static int CreateWaitableTimer (SECURITY_ATTRIBUTES lpTimerAttributes, boolean bManualReset, String lpTimerName);
/** @dll.import("KERNEL32",auto) */
public native static boolean DebugActiveProcess (int dwProcessId);
public native static short DeleteAtom (short nAtom);
/** @dll.import("KERNEL32",auto) */
public native static void DeleteFiber (int lpFiber);
/** @dll.import("KERNEL32", auto) */
public native static boolean DeleteFile (String lpFileName);
/** @dll.import("KERNEL32",auto) */
public native static boolean DeviceIoControl (int hDevice, int dwIoControlCode, int lpInBuffer, int nInBufferSize, int lpOutBuffer, int nOutBufferSize, int[] lpBytesReturned, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static boolean DisableThreadLibraryCalls (int hLibModule);
/** @dll.import("KERNEL32",auto) */
public native static boolean DisconnectNamedPipe (int hNamedPipe);
/** @dll.import("KERNEL32",auto) */
public native static boolean DosDateTimeToFileTime (short wFatDate, short wFatTime, FILETIME lpFileTime);
/** @dll.import("KERNEL32",auto) */
public native static boolean DuplicateHandle (int hSourceProcessHandle, int hSourceHandle, int hTargetProcessHandle, int[] lpTargetHandle, int dwDesiredAccess, boolean bInheritHandle, int dwOptions);
/** @dll.import("KERNEL32",auto) */
public native static boolean EndUpdateResource (int hUpdate, boolean fDiscard);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumCalendarInfo (com.ms.dll.Callback lpCalInfoEnumProc, int Locale, int Calendar, int CalType);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumDateFormats (com.ms.dll.Callback lpDateFmtEnumProc, int Locale, int dwFlags);
/** @dll.import("KERNEL32", auto) */
public native static boolean EnumResourceLanguages (int hModule, String lpType, String lpName, com.ms.dll.Callback lpEnumFunc, int lParam);
/** @dll.import("KERNEL32", auto) */
public native static boolean EnumResourceNames (int hModule, String lpType, com.ms.dll.Callback lpEnumFunc, int lParam);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumResourceTypes (int hModule, com.ms.dll.Callback lpEnumFunc, int lParam);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumSystemCodePages (com.ms.dll.Callback lpCodePageEnumProc, int dwFlags);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumSystemLocales (com.ms.dll.Callback lpLocaleEnumProc, int dwFlags);
/** @dll.import("KERNEL32",auto) */
public native static boolean EnumTimeFormats (com.ms.dll.Callback lpTimeFmtEnumProc, int Locale, int dwFlags);
/** @dll.import("KERNEL32",auto) */
public native static int EraseTape (int hDevice, int dwEraseType, boolean bImmediate);
/** @dll.import("KERNEL32",auto) */
public native static boolean EscapeCommFunction (int hFile, int dwFunc);
/** @dll.import("KERNEL32",auto) */
public native static void ExitProcess (int uExitCode);
/** @dll.import("KERNEL32",auto) */
public native static void ExitThread (int dwExitCode);
/** @dll.import("KERNEL32", auto) */
public native static int ExpandEnvironmentStrings (String lpSrc, StringBuffer lpDst, int nSize);
/** @dll.import("KERNEL32", auto) */
public native static void FatalAppExit (int uAction, String lpMessageText);
/** @dll.import("KERNEL32",auto) */
public native static void FatalExit (int ExitCode);
public native static int FindFirstFileEx (String lpFileName, int fInfoLevelId, int lpFindFileData, int fSearchOp, int lpSearchFilter, int dwAdditionalFlags);
public native static int FindFirstFile (String lpFileName, WIN32_FIND_DATA lpFindFileData);
/** @dll.import("KERNEL32",auto) */
public native static boolean FindNextChangeNotification (int hChangeHandle);
/** @dll.import("KERNEL32",auto,SetLastError) */
public native static boolean FindNextFile (int hFindFile, WIN32_FIND_DATA lpFindFileData);
/** @dll.import("KERNEL32", auto) */
public native static int FindResourceEx (int hModule, String lpType, String lpName, short wLanguage);
/** @dll.import("KERNEL32", auto) */
public native static int FindResource (int hModule, String lpName, String lpType);
/** @dll.import("KERNEL32",auto) */
public native static boolean FlushConsoleInputBuffer (int hConsoleInput);
/** @dll.import("KERNEL32",auto) */
public native static boolean FlushFileBuffers (int hFile);
/** @dll.import("KERNEL32",auto) */
public native static boolean FlushInstructionCache (int hProcess, int lpBaseAddress, int dwSize);
/** @dll.import("KERNEL32",auto) */
public native static boolean FlushViewOfFile (int lpBaseAddress, int dwNumberOfBytesToFlush);
/** @dll.import("KERNEL32", auto) */
public native static int FoldString (int dwMapFlags, String lpSrcStr, int cchSrc, StringBuffer lpDestStr, int cchDest);
/** @dll.import("KERNEL32",auto) */
public native static boolean FreeConsole ();
/** @dll.import("KERNEL32", auto) */
public native static boolean FreeEnvironmentStrings (int anonymous0);
/** @dll.import("KERNEL32",auto) */
public native static boolean FreeLibrary (int hLibModule);
/** @dll.import("KERNEL32",auto) */
public native static void FreeLibraryAndExitThread (int hLibModule, int dwExitCode);
/** @dll.import("KERNEL32",auto) */
public native static boolean FreeResource (int hResData);
/** @dll.import("KERNEL32",auto) */
public native static boolean GenerateConsoleCtrlEvent (int dwCtrlEvent, int dwProcessGroupId);
/** @dll.import("KERNEL32",auto) */
public native static int GetACP ();
/** @dll.import("KERNEL32", auto) */
public native static int GetAtomName (short nAtom, StringBuffer lpBuffer, int nSize);
/** @dll.import("KERNEL32", auto) */
public native static boolean GetBinaryType (String lpApplicationName, int[] lpBinaryType);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetCPInfo (int CodePage, CPINFO lpCPInfo);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetCommMask (int hFile, int[] lpEvtMask);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetCommModemStatus (int hFile, int[] lpModemStat);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetCommState (int hFile, DCB lpDCB);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetCommTimeouts (int hFile, COMMTIMEOUTS lpCommTimeouts);
/** @dll.import("KERNEL32",auto) */
public native static int GetCommandLine ();
/** @dll.import("KERNEL32", auto) */
public native static int GetCompressedFileSize (String lpFileName, int[] lpFileSizeHigh);
/** @dll.import("KERNEL32", auto) */
public native static boolean GetComputerName (StringBuffer lpBuffer, int[] nSize);
/** @dll.import("KERNEL32",auto) */
public native static int GetConsoleCP ();
/** @dll.import("KERNEL32",auto) */
public native static boolean GetConsoleCursorInfo (int hConsoleOutput, CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
/** @dll.import("KERNEL32",auto) */
public native static boolean GetConsoleMode (int hConsoleHandle, int[] lpMode);
/** @dll.import("KERNEL32",auto) */
public native static int GetConsoleOutputCP ();
/** @dll.import("KERNEL32",auto) */
public native static boolean GetConsoleScreenBufferInfo (int hConsoleOutput, CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo);
/** @dll.import("KERNEL32", auto) */
public native static int GetConsoleTitle (StringBuffer lpConsoleTitle, int nSize);
/** @dll.import("KERNEL32", auto) */
public native static int GetCurrencyFormat (int Locale, int dwFlags, String lpValue, CURRENCYFMT lpFormat, StringBuffer lpCurrencyStr, int cchCurrency);
/** @dll.import("KERNEL32", auto) */
public native static int GetCurrentDirectory (int nBufferLength, StringBuffer lpBuffer);
/** @dll.import("KERNEL32",auto) */
public native static int GetCurrentProcess ();
/** @dll.import("KERNEL32",auto) */
public native static int GetCurrentProcessId ();
/** @dll.import("KERNEL32",auto) */
public native static int GetCurrentThread ();
/** @dll.import("KERNEL32",auto) */
public native static int GetCurrentThreadId ();
/** @dll.import("KERNEL32", auto) */
public native static int GetDateFormat (int Locale, int dwFlags, SYSTEMTIME lpDate, String lpFormat, StringBuffer lpDateStr, int cchDate);
public native static int GetTimeFormat (int Locale, int dwFlags, SYSTEMTIME lpTime, String lpFormat, StringBuffer lpTimeStr, int cchTime);
/** @dll.import("KERNEL32",auto) */
public native static int GetTimeZoneInformation (TIME_ZONE_INFORMATION lpTimeZoneInformation);
/** @dll.import("KERNEL32",auto) */
public native static int GetUserDefaultLCID ();
/** @dll.import("KERNEL32",auto) */
public native static short GetUserDefaultLangID ();
/** @dll.import("KERNEL32",auto) */
public native static int GetVersion ();
/** @dll.import("KERNEL32",auto) */
public native static boolean GetVersionEx (OSVERSIONINFO lpVersionInformation);
/** @dll.import("KERNEL32", auto) */
public native static boolean GetVolumeInformation (String lpRootPathName, StringBuffer lpVolumeNameBuffer, int nVolumeNameSize, int[] lpVolumeSerialNumber, int[] lpMaximumComponentLength, int[] lpFileSystemFlags, StringBuffer lpFileSystemNameBuffer, int nFileSystemNameSize);
/** @dll.import("KERNEL32", auto) */
public native static int GetWindowsDirectory (StringBuffer lpBuffer, int uSize);
/** @dll.import("KERNEL32", auto) */
public native static short GlobalAddAtom (String lpString);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalAlloc (int uFlags, int dwBytes);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalCompact (int dwMinFree);
/** @dll.import("KERNEL32",auto) */
public native static short GlobalDeleteAtom (short nAtom);
/** @dll.import("KERNEL32", auto) */
public native static short GlobalFindAtom (String lpString);
/** @dll.import("KERNEL32",auto) */
public native static void GlobalFix (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalFlags (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalFree (int hMem);
/** @dll.import("KERNEL32", auto) */
public native static int GlobalGetAtomName (short nAtom, StringBuffer lpBuffer, int nSize);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalHandle (int pMem);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalLock (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static void GlobalMemoryStatus (MEMORYSTATUS lpBuffer);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalReAlloc (int hMem, int dwBytes, int uFlags);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalSize (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean GlobalUnWire (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static void GlobalUnfix (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean GlobalUnlock (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int GlobalWire (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int HeapAlloc (int hHeap, int dwFlags, int dwBytes);
/** @dll.import("KERNEL32",auto) */
public native static int HeapCompact (int hHeap, int dwFlags);
/** @dll.import("KERNEL32",auto) */
public native static int HeapCreate (int flOptions, int dwInitialSize, int dwMaximumSize);
/** @dll.import("KERNEL32",auto) */
public native static boolean HeapDestroy (int hHeap);
/** @dll.import("KERNEL32",auto) */
public native static boolean HeapFree (int hHeap, int dwFlags, int lpMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean HeapLock (int hHeap);
/** @dll.import("KERNEL32",auto) */
public native static int HeapReAlloc (int hHeap, int dwFlags, int lpMem, int dwBytes);
/** @dll.import("KERNEL32",auto) */
public native static int HeapSize (int hHeap, int dwFlags, int lpMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean HeapUnlock (int hHeap);
/** @dll.import("KERNEL32",auto) */
public native static boolean HeapValidate (int hHeap, int dwFlags, int lpMem);
// HeapWalk took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
public native static boolean InitAtomTable (int nSize);
/** @dll.import("KERNEL32",auto) */
public native static int InterlockedCompareExchange (int[] Destination, int Exchange, int Comperand);
/** @dll.import("KERNEL32",auto) */
public native static int InterlockedDecrement (int[] lpAddend);
/** @dll.import("KERNEL32",auto) */
public native static int InterlockedExchange (int[] Target, int Value);
/** @dll.import("KERNEL32",auto) */
public native static int InterlockedExchangeAdd (int[] Addend, int Value);
/** @dll.import("KERNEL32",auto) */
public native static int InterlockedIncrement (int[] lpAddend);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsBadCodePtr (int lpfn);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsBadHugeReadPtr (int lp, int ucb);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsBadHugeWritePtr (int lp, int ucb);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsBadReadPtr (int lp, int ucb);
/** @dll.import("KERNEL32", auto) */
public native static boolean IsBadStringPtr (int lpsz, int ucchMax);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsBadWritePtr (int lp, int ucb);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsDBCSLeadByte (byte TestChar);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsDBCSLeadByteEx (int CodePage, byte TestChar);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsProcessorFeaturePresent (int ProcessorFeature);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsValidCodePage (int CodePage);
/** @dll.import("KERNEL32",auto) */
public native static boolean IsValidLocale (int Locale, int dwFlags);
/** @dll.import("KERNEL32", auto) */
public native static int LCMapString (int Locale, int dwMapFlags, String lpSrcStr, int cchSrc, StringBuffer lpDestStr, int cchDest);
/** @dll.import("KERNEL32", auto) */
public native static int LoadLibraryEx (String lpLibFileName, int hFile, int dwFlags);
/** @dll.import("KERNEL32", auto) */
public native static int LoadLibrary (String lpLibFileName);
/** @dll.import("KERNEL32", ansi) */
public native static int LoadModule (String lpModuleName, int lpParameterBlock);
/** @dll.import("KERNEL32",auto) */
public native static int LoadResource (int hModule, int hResInfo);
/** @dll.import("KERNEL32",auto) */
public native static int LocalAlloc (int uFlags, int uBytes);
/** @dll.import("KERNEL32",auto) */
public native static int LocalCompact (int uMinFree);
/** @dll.import("KERNEL32",auto) */
public native static boolean LocalFileTimeToFileTime (FILETIME lpLocalFileTime, FILETIME lpFileTime);
/** @dll.import("KERNEL32",auto) */
public native static int LocalFlags (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int LocalFree (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int LocalHandle (int pMem);
/** @dll.import("KERNEL32",auto) */
public native static int LocalLock (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static int LocalReAlloc (int hMem, int uBytes, int uFlags);
/** @dll.import("KERNEL32",auto) */
public native static int LocalShrink (int hMem, int cbNewSize);
/** @dll.import("KERNEL32",auto) */
public native static int LocalSize (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean LocalUnlock (int hMem);
/** @dll.import("KERNEL32",auto) */
public native static boolean LockFile (int hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh);
/** @dll.import("KERNEL32",auto) */
public native static boolean LockFileEx (int hFile, int dwFlags, int dwReserved, int nNumberOfBytesToLockLow, int nNumberOfBytesToLockHigh, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static int LockResource (int hResData);
/** @dll.import("KERNEL32",auto) */
public native static int MapViewOfFile (int hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap);
/** @dll.import("KERNEL32",auto) */
public native static int MapViewOfFileEx (int hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap, int lpBaseAddress);
/** @dll.import("KERNEL32", auto) */
public native static boolean MoveFileEx (String lpExistingFileName, String lpNewFileName, int dwFlags);
/** @dll.import("KERNEL32", auto) */
public native static boolean MoveFile (String lpExistingFileName, String lpNewFileName);
/** @dll.import("KERNEL32",auto) */
public native static int MulDiv (int nNumber, int nNumerator, int nDenominator);
/////** @dll.import("KERNEL32", auto) */
////public native static int MultiByteToWideChar (int CodePage, int dwFlags, String lpMultiByteStr, int cchMultiByte, StringBuffer lpWideCharStr, int cchWideChar);
/** @dll.import("KERNEL32", auto) */
public native static int OpenEvent (int dwDesiredAccess, boolean bInheritHandle, String lpName);
/** @dll.import("KERNEL32", ansi) */
public native static int OpenFile (String lpFileName, OFSTRUCT lpReOpenBuff, int uStyle);
/** @dll.import("KERNEL32", auto) */
public native static int OpenFileMapping (int dwDesiredAccess, boolean bInheritHandle, String lpName);
/** @dll.import("KERNEL32", auto) */
public native static int OpenMutex (int dwDesiredAccess, boolean bInheritHandle, String lpName);
/** @dll.import("KERNEL32",auto) */
public native static int OpenProcess (int dwDesiredAccess, boolean bInheritHandle, int dwProcessId);
/** @dll.import("KERNEL32", auto) */
public native static int OpenSemaphore (int dwDesiredAccess, boolean bInheritHandle, String lpName);
/** @dll.import("KERNEL32", auto) */
public native static int OpenWaitableTimer (int dwDesiredAccess, boolean bInheritHandle, String lpTimerName);
/** @dll.import("KERNEL32", auto) */
public native static void OutputDebugString (String lpOutputString);
// PeekConsoleInput took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
public native static boolean PeekNamedPipe (int hNamedPipe, int lpBuffer, int nBufferSize, int[] lpBytesRead, int[] lpTotalBytesAvail, int[] lpBytesLeftThisMessage);
/** @dll.import("KERNEL32",auto) */
public native static boolean PostQueuedCompletionStatus (int CompletionPort, int dwNumberOfBytesTransferred, int dwCompletionKey, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static int PrepareTape (int hDevice, int dwOperation, boolean bImmediate);
/** @dll.import("KERNEL32",auto) */
public native static boolean PulseEvent (int hEvent);
/** @dll.import("KERNEL32",auto) */
public native static boolean PurgeComm (int hFile, int dwFlags);
/** @dll.import("KERNEL32", auto) */
public native static int QueryDosDevice (String lpDeviceName, int lpTargetPath, int ucchMax);
/** @dll.import("KERNEL32", auto) */
public native static boolean QueryPerformanceCounter(long[] lpPerformanceCount);
/** @dll.import("KERNEL32", auto) */
public native static boolean QueryPerformanceFrequency(long[] lpPerformanceFreq);
/** @dll.import("KERNEL32",auto) */
public native static int QueueUserAPC (com.ms.dll.Callback pfnAPC, int hThread, int dwData);
/** @dll.import("KERNEL32",auto) */
public native static void RaiseException (int dwExceptionCode, int dwExceptionFlags, int nNumberOfArguments, int[] lpArguments);
// ReadConsoleInput took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
//COORD public native static boolean ReadConsoleOutputAttribute (int hConsoleOutput, short[] lpAttribute, int nLength, COORD dwReadCoord, int[] lpNumberOfAttrsRead);
/** @dll.import("KERNEL32", auto) */
//COORD public native static boolean ReadConsoleOutputCharacter (int hConsoleOutput, StringBuffer lpCharacter, int nLength, COORD dwReadCoord, int[] lpNumberOfCharsRead);
// ReadConsoleOutput took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
public native static boolean ReadConsole (int hConsoleInput, int lpBuffer, int nNumberOfCharsToRead, int[] lpNumberOfCharsRead, int lpReserved);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReadDirectoryChangesW (int hDirectory, int lpBuffer, int nBufferLength, boolean bWatchSubtree, int dwNotifyFilter, int[] lpBytesReturned, OVERLAPPED lpOverlapped, com.ms.dll.Callback lpCompletionRoutine);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReadFile (int hFile, int lpBuffer, int nNumberOfBytesToRead, int[] lpNumberOfBytesRead, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReadFileEx (int hFile, int lpBuffer, int nNumberOfBytesToRead, OVERLAPPED lpOverlapped, com.ms.dll.Callback lpCompletionRoutine);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReadProcessMemory (int hProcess, int lpBaseAddress, int lpBuffer, int nSize, int[] lpNumberOfBytesRead);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReleaseMutex (int hMutex);
/** @dll.import("KERNEL32",auto) */
public native static boolean ReleaseSemaphore (int hSemaphore, int lReleaseCount, int[] lpPreviousCount);
/** @dll.import("KERNEL32", auto) */
public native static boolean RemoveDirectory (String lpPathName);
/** @dll.import("KERNEL32",auto) */
public native static boolean ResetEvent (int hEvent);
/** @dll.import("KERNEL32",auto) */
public native static int ResumeThread (int hThread);
// ScrollConsoleScreenBuffer took a parameter that either was or contained a union.
/** @dll.import("KERNEL32", auto) */
public native static int SearchPath (String lpPath, String lpFileName, String lpExtension, int nBufferLength, StringBuffer lpBuffer, int lpFilePart);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetCommBreak (int hFile);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetCommMask (int hFile, int dwEvtMask);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetCommState (int hFile, DCB lpDCB);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetCommTimeouts (int hFile, COMMTIMEOUTS lpCommTimeouts);
/** @dll.import("KERNEL32", auto) */
public native static boolean SetComputerName (String lpComputerName);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleActiveScreenBuffer (int hConsoleOutput);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleCP (int wCodePageID);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleCtrlHandler (com.ms.dll.Callback HandlerRoutine, boolean Add);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleCursorInfo (int hConsoleOutput, CONSOLE_CURSOR_INFO lpConsoleCursorInfo);
/** @dll.import("KERNEL32",auto) */
//COORD public native static boolean SetConsoleCursorPosition (int hConsoleOutput, COORD dwCursorPosition);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleMode (int hConsoleHandle, int dwMode);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleOutputCP (int wCodePageID);
/** @dll.import("KERNEL32",auto) */
//COORD public native static boolean SetConsoleScreenBufferSize (int hConsoleOutput, COORD dwSize);
/** @dll.import("KERNEL32",auto) */
public native static boolean SetConsoleTextAttribute (int hConsoleOutput, short wAttributes);
/** @dll.import("KERNEL32", auto) */
public native static boolean SetConsoleTitle (String lpConsoleTitle);
public native static boolean TerminateProcess (int hProcess, int uExitCode);
/** @dll.import("KERNEL32",auto) */
public native static boolean TerminateThread (int hThread, int dwExitCode);
/** @dll.import("KERNEL32",auto) */
public native static int TlsAlloc ();
/** @dll.import("KERNEL32",auto) */
public native static boolean TlsFree (int dwTlsIndex);
/** @dll.import("KERNEL32",auto) */
public native static int TlsGetValue (int dwTlsIndex);
/** @dll.import("KERNEL32",auto) */
public native static boolean TlsSetValue (int dwTlsIndex, int lpTlsValue);
/** @dll.import("KERNEL32",auto) */
public native static boolean TransactNamedPipe (int hNamedPipe, int lpInBuffer, int nInBufferSize, int lpOutBuffer, int nOutBufferSize, int[] lpBytesRead, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32", ansi) */
public native static boolean TransmitCommChar (int hFile, char cChar);
/** @dll.import("KERNEL32",auto) */
public native static boolean UnlockFile (int hFile, int dwFileOffsetLow, int dwFileOffsetHigh, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh);
/** @dll.import("KERNEL32",auto) */
public native static boolean UnlockFileEx (int hFile, int dwReserved, int nNumberOfBytesToUnlockLow, int nNumberOfBytesToUnlockHigh, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static boolean UnmapViewOfFile (int lpBaseAddress);
/** @dll.import("KERNEL32", auto) */
public native static boolean UpdateResource (int hUpdate, String lpType, String lpName, short wLanguage, int lpData, int cbData);
/** @dll.import("KERNEL32", auto) */
public native static int VerLanguageName (int wLang, StringBuffer szLang, int nSize);
/** @dll.import("KERNEL32",auto) */
public native static int VirtualAlloc (int lpAddress, int dwSize, int flAllocationType, int flProtect);
/** @dll.import("KERNEL32",auto) */
public native static int VirtualAllocEx (int hProcess, int lpAddress, int dwSize, int flAllocationType, int flProtect);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualFree (int lpAddress, int dwSize, int dwFreeType);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualFreeEx (int hProcess, int lpAddress, int dwSize, int dwFreeType);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualLock (int lpAddress, int dwSize);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualProtect (int lpAddress, int dwSize, int flNewProtect, int[] lpflOldProtect);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualProtectEx (int hProcess, int lpAddress, int dwSize, int flNewProtect, int[] lpflOldProtect);
/** @dll.import("KERNEL32",auto) */
public native static int VirtualQuery (int lpAddress, MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);
/** @dll.import("KERNEL32",auto) */
public native static int VirtualQueryEx (int hProcess, int lpAddress, MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);
/** @dll.import("KERNEL32",auto) */
public native static boolean VirtualUnlock (int lpAddress, int dwSize);
public native static int WaitForMultipleObjects (int nCount, int[] lpHandles, boolean bWaitAll, int dwMilliseconds);
/** @dll.import("KERNEL32",auto) */
public native static int WaitForMultipleObjectsEx (int nCount, int[] lpHandles, boolean bWaitAll, int dwMilliseconds, boolean bAlertable);
/** @dll.import("KERNEL32",auto) */
public native static int WaitForSingleObject (int hHandle, int dwMilliseconds);
/** @dll.import("KERNEL32",auto) */
public native static int WaitForSingleObjectEx (int hHandle, int dwMilliseconds, boolean bAlertable);
/** @dll.import("KERNEL32", auto) */
public native static boolean WaitNamedPipe (String lpNamedPipeName, int nTimeOut);
//// /** @dll.import("KERNEL32", ansi) */
//// public native static int WideCharToMultiByte (int CodePage, int dwFlags, String lpWideCharStr, int cchWideChar, StringBuffer lpMultiByteStr, int cchMultiByte, String lpDefaultChar, int[] lpUsedDefaultChar);
/** @dll.import("KERNEL32", ansi) */
public native static int WinExec (String lpCmdLine, int uCmdShow);
// WriteConsoleInput took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
//COORD public native static boolean WriteConsoleOutputAttribute (int hConsoleOutput, short[] lpAttribute, int nLength, COORD dwWriteCoord, int[] lpNumberOfAttrsWritten);
/** @dll.import("KERNEL32", auto) */
//COORD public native static boolean WriteConsoleOutputCharacter (int hConsoleOutput, String lpCharacter, int nLength, COORD dwWriteCoord, int[] lpNumberOfCharsWritten);
// WriteConsoleOutput took a parameter that either was or contained a union.
/** @dll.import("KERNEL32",auto) */
public native static boolean WriteConsole (int hConsoleOutput, char[] lpBuffer, int nNumberOfCharsToWrite, int[] lpNumberOfCharsWritten, int lpReserved);
/** @dll.import("KERNEL32",auto) */
public native static boolean WriteFile (int hFile, int lpBuffer, int nNumberOfBytesToWrite, int[] lpNumberOfBytesWritten, OVERLAPPED lpOverlapped);
/** @dll.import("KERNEL32",auto) */
public native static boolean WriteFileEx (int hFile, int lpBuffer, int nNumberOfBytesToWrite, OVERLAPPED lpOverlapped, com.ms.dll.Callback lpCompletionRoutine);