## Uses of Class
com.sun.jna.platform.win32.W32API.HANDLE

Packages that use W32API.HANDLE
com.sun.jna.platform.win32

Uses of W32API.HANDLE in com.sun.jna.platform.win32

Subclasses of W32API.HANDLE in com.sun.jna.platform.win32
`static class` `User32.HHOOK`
`static class` `W32API.HBITMAP`
`static class` `W32API.HDC`
`static class` `W32API.HICON`
`static class` `W32API.HINSTANCE`
`static class` `W32API.HMODULE`
`static class` `W32API.HRGN`
`static class` `W32API.HWND`
`static class` `WinReg.HKEY`

Fields in com.sun.jna.platform.win32 declared as W32API.HANDLE
`W32API.HANDLE` `WinBase.OVERLAPPED.hEvent`
`W32API.HANDLE` `ShellAPI.SHFILEOPSTRUCT.hwnd` A window handle to the dialog box to display information about the status of the file operation.
`W32API.HANDLE` `User32.FLASHWINFO.hWnd`
`static W32API.HANDLE` `W32API.INVALID_HANDLE_VALUE` Constant value representing an invalid HANDLE.

Methods in com.sun.jna.platform.win32 that return W32API.HANDLE
`W32API.HANDLE` `Kernel32.CreateEvent(WinNT.SECURITY_ATTRIBUTES lpEventAttributes, boolean bManualReset, boolean bInitialState, java.lang.String lpName)`

`W32API.HANDLE`

`Kernel32.CreateFile(java.lang.String lpFileName, int dwDesiredAccess, int dwShareMode, WinNT.SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, W32API.HANDLE hTemplateFile)`
The CreateFile function creates or opens a file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, or named pipe.

`W32API.HANDLE` `Kernel32.CreateFileMapping(W32API.HANDLE hFile, WinNT.SECURITY_ATTRIBUTES lpAttributes, int flProtect, int dwMaximumSizeHigh, int dwMaximumSizeLow, java.lang.String lpName)`
`W32API.HANDLE` `Kernel32.CreateIoCompletionPort(W32API.HANDLE FileHandle, W32API.HANDLE ExistingCompletionPort, com.sun.jna.Pointer CompletionKey, int NumberOfConcurrentThreads)`
`W32API.HANDLE` `Kernel32.GetCurrentProcess()` This function returns a pseudohandle for the current process.
`W32API.HANDLE` `Kernel32.GetCurrentThread()` The GetCurrentThread function retrieves a pseudo handle for the current thread.
`W32API.HANDLE` `W32API.HANDLEByReference.getValue()`
`W32API.HANDLE` `User32.LoadImage(W32API.HINSTANCE hinst, java.lang.String name, int type, int xDesired, int yDesired, int load)`
`W32API.HANDLE` `Kernel32.OpenProcess(int fdwAccess, boolean fInherit, int IDProcess)` This function returns a handle to an existing process object.
`W32API.HANDLE` `Kernel32.OpenThread(int dwDesiredAccess, boolean bInheritHandle, int dwThreadId)` The OpenThread function opens an existing thread object.
`W32API.HANDLE` `GDI32.SelectObject(W32API.HDC hDC, W32API.HANDLE hGDIObj)`

Methods in com.sun.jna.platform.win32 with parameters of type W32API.HANDLE
`boolean` `Kernel32.CloseHandle(W32API.HANDLE hObject)` The CloseHandle function closes an open object handle.

`W32API.HANDLE`

`Kernel32.CreateFile(java.lang.String lpFileName, int dwDesiredAccess, int dwShareMode, WinNT.SECURITY_ATTRIBUTES lpSecurityAttributes, int dwCreationDisposition, int dwFlagsAndAttributes, W32API.HANDLE hTemplateFile)`
The CreateFile function creates or opens a file, file stream, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, or named pipe.

`W32API.HANDLE` `Kernel32.CreateFileMapping(W32API.HANDLE hFile, WinNT.SECURITY_ATTRIBUTES lpAttributes, int flProtect, int dwMaximumSizeHigh, int dwMaximumSizeLow, java.lang.String lpName)`
`W32API.HANDLE` `Kernel32.CreateIoCompletionPort(W32API.HANDLE FileHandle, W32API.HANDLE ExistingCompletionPort, com.sun.jna.Pointer CompletionKey, int NumberOfConcurrentThreads)`
`boolean` `GDI32.DeleteObject(W32API.HANDLE p)`
`boolean` `Kernel32.DuplicateHandle(W32API.HANDLE hSourceProcessHandle, W32API.HANDLE hSourceHandle, W32API.HANDLE hTargetProcessHandle, W32API.HANDLEByReference lpTargetHandle, int dwDesiredAccess, boolean bInheritHandle, int dwOptions)` The DuplicateHandle function duplicates an object handle.
`boolean` `Advapi32.DuplicateToken(W32API.HANDLE ExistingTokenHandle, int ImpersonationLevel, W32API.HANDLEByReference DuplicateTokenHandle)` The DuplicateToken function creates a new access token that duplicates one already in existence.
`int` `Kernel32.GetProcessId(W32API.HANDLE process)` The GetProcessId function retrieves the process identifier of the specified process.
`boolean` `Kernel32.GetQueuedCompletionStatus(W32API.HANDLE CompletionPort, com.sun.jna.ptr.IntByReference lpNumberOfBytes, com.sun.jna.ptr.ByReference lpCompletionKey, com.sun.jna.ptr.PointerByReference lpOverlapped, int dwMilliseconds)`
`static Advapi32Util.Account` `Advapi32Util.getTokenAccount(W32API.HANDLE hToken)` This function returns the information about the user who owns a security token,
`static Advapi32Util.Group[]` `Advapi32Util.getTokenGroups(W32API.HANDLE hToken)` This function returns the groups associated with a security token, such as a user token.
`boolean` `Advapi32.GetTokenInformation(W32API.HANDLE tokenHandle, int tokenInformationClass, com.sun.jna.Structure tokenInformation, int tokenInformationLength, com.sun.jna.ptr.IntByReference returnLength)` Retrieves a specified type of information about an access token.
`boolean` `Advapi32.ImpersonateLoggedOnUser(W32API.HANDLE hToken)` The ImpersonateLoggedOnUser function lets the calling thread impersonate the security context of a logged-on user.
`com.sun.jna.Pointer` `Kernel32.MapViewOfFile(W32API.HANDLE hFileMappingObject, int dwDesiredAccess, int dwFileOffsetHigh, int dwFileOffsetLow, int dwNumberOfBytesToMap)`
`boolean` `Advapi32.OpenProcessToken(W32API.HANDLE ProcessHandle, int DesiredAccess, W32API.HANDLEByReference TokenHandle)` The OpenProcessToken function opens the access token associated with a process.
`boolean` `Advapi32.OpenThreadToken(W32API.HANDLE ThreadHandle, int DesiredAccess, boolean OpenAsSelf, W32API.HANDLEByReference TokenHandle)` The OpenThreadToken function opens the access token associated with a thread.
`boolean` `Kernel32.PostQueuedCompletionStatus(W32API.HANDLE CompletionPort, int dwNumberOfBytesTransferred, com.sun.jna.Pointer dwCompletionKey, WinBase.OVERLAPPED lpOverlapped)`
`boolean` `Kernel32.PulseEvent(W32API.HANDLE hEvent)`
`boolean` `Kernel32.ReadDirectoryChangesW(W32API.HANDLE directory, WinNT.FILE_NOTIFY_INFORMATION info, int length, boolean watchSubtree, int notifyFilter, com.sun.jna.ptr.IntByReference bytesReturned, WinBase.OVERLAPPED overlapped, Kernel32.OVERLAPPED_COMPLETION_ROUTINE completionRoutine)` NOTE: only exists in unicode form (W suffix).
`W32API.HANDLE` `GDI32.SelectObject(W32API.HDC hDC, W32API.HANDLE hGDIObj)`
`boolean` `Kernel32.SetEvent(W32API.HANDLE hEvent)`
`void` `W32API.HANDLEByReference.setValue(W32API.HANDLE h)`
`W32API.HRESULT` `Shell32.SHGetFolderPath(W32API.HWND hwndOwner, int nFolder, W32API.HANDLE hToken, W32API.DWORD dwFlags, char[] pszPath)` Takes the CSIDL of a folder and returns the path.
`int` `Kernel32.WaitForMultipleObjects(int nCount, W32API.HANDLE[] hHandle, boolean bWaitAll, int dwMilliseconds)` Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.
`int` `Kernel32.WaitForSingleObject(W32API.HANDLE hHandle, int dwMilliseconds)` Waits until the specified object is in the signaled state or the time-out interval elapses.
`boolean` `Kernel32.WriteFile(W32API.HANDLE hFile, byte[] lpBuffer, int nNumberOfBytesToWrite, com.sun.jna.ptr.IntByReference lpNumberOfBytesWritten, WinBase.OVERLAPPED lpOverlapped)`
`int` `NtDll.ZwQueryKey(W32API.HANDLE KeyHandle, int KeyInformationClass, com.sun.jna.Structure KeyInformation, int Length, com.sun.jna.ptr.IntByReference ResultLength)` The ZwQueryKey routine provides information about the class of a registry key, and the number and sizes of its subkeys.

Constructors in com.sun.jna.platform.win32 with parameters of type W32API.HANDLE
`W32API.HANDLEByReference(W32API.HANDLE h)`