Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func ActivateActCtx(ctx handle.HANDLE) (uintptr, bool)
- func CloseHandle(hObject handle.HANDLE) bool
- func CreateActCtx(ctx *ACTCTX) handle.HANDLE
- func FileTimeToSystemTime(lpFileTime *FILETIME, lpSystemTime *SYSTEMTIME) bool
- func GetConsoleTitle(lpConsoleTitle *uint16, nSize uint32) uint32
- func GetConsoleWindow() handle.HWND
- func GetCurrentThreadId() uint32
- func GetLastError() uint32
- func GetLocaleInfo(Locale LCID, LCType LCTYPE, lpLCData *uint16, cchData int32) int32
- func GetLogicalDriveStrings(nBufferLength uint32, lpBuffer *uint16) uint32
- func GetModuleHandleEx(flags uint32, moduleName *uint16, module *handle.HWND) (err error)
- func GetNumberFormat(Locale LCID, dwFlags uint32, lpValue *uint16, lpFormat *NUMBERFMT, ...) int32
- func GetPhysicallyInstalledSystemMemory(totalMemoryInKilobytes *uint64) bool
- func GetProfileString(lpAppName, lpKeyName, lpDefault *uint16, lpReturnedString uintptr, ...) bool
- func GetVersion() uint32
- func GlobalLock(hMem HGLOBAL) unsafe.Pointer
- func GlobalUnlock(hMem HGLOBAL) bool
- func LockResource(hResData HGLOBAL) uintptr
- func MoveMemory(destination, source unsafe.Pointer, length uintptr)
- func MulDiv(nNumber, nNumerator, nDenominator int32) int32
- func SetLastError(dwErrorCode uint32)
- func SizeofResource(hModule HMODULE, hResInfo HRSRC) uint32
- func SystemTimeToFileTime(lpSystemTime *SYSTEMTIME, lpFileTime *FILETIME) bool
- type ACTCTX
- type ATOM
- type FILETIME
- type HGLOBAL
- type HINSTANCE
- type HMODULE
- type HRSRC
- type HWINEVENTHOOK
- type LANGID
- type LCID
- type LCTYPE
- type NUMBERFMT
- type SYSTEMTIME
Constants ¶
View Source
const ( ERROR_SUCCESS = 0 ERROR_INVALID_FUNCTION = 1 ERROR_FILE_NOT_FOUND = 2 ERROR_INVALID_PARAMETER = 87 ERROR_INSUFFICIENT_BUFFER = 122 ERROR_MORE_DATA = 234 )
Error codes
View Source
const ( GHND = 0x0042 GMEM_FIXED = 0x0000 GMEM_MOVEABLE = 0x0002 GMEM_ZEROINIT = 0x0040 GPTR = GMEM_FIXED | GMEM_ZEROINIT )
GlobalAlloc flags
View Source
const MAX_PATH = 260
Variables ¶
View Source
var (
PostThreadMessageW *windows.LazyProc
)
Functions ¶
func CloseHandle ¶
func CreateActCtx ¶
func FileTimeToSystemTime ¶
func FileTimeToSystemTime(lpFileTime *FILETIME, lpSystemTime *SYSTEMTIME) bool
func GetConsoleTitle ¶
func GetConsoleWindow ¶
func GetCurrentThreadId ¶
func GetCurrentThreadId() uint32
func GetLastError ¶
func GetLastError() uint32
func GetLocaleInfo ¶
func GetLogicalDriveStrings ¶
func GetModuleHandleEx ¶
func GetNumberFormat ¶
func GetProfileString ¶
func GetVersion ¶
func GetVersion() uint32
func GlobalLock ¶
func GlobalUnlock ¶
func LockResource ¶
func MoveMemory ¶
func SetLastError ¶
func SetLastError(dwErrorCode uint32)
func SizeofResource ¶
func SystemTimeToFileTime ¶
func SystemTimeToFileTime(lpSystemTime *SYSTEMTIME, lpFileTime *FILETIME) bool
Types ¶
type HINSTANCE ¶
func GetModuleHandle ¶
type HWINEVENTHOOK ¶
type LCID ¶
type LCID uint32
const ( LOCALE_CUSTOM_DEFAULT LCID = 0x0c00 LOCALE_CUSTOM_UI_DEFAULT LCID = 0x1400 LOCALE_CUSTOM_UNSPECIFIED LCID = 0x1000 LOCALE_INVARIANT LCID = 0x007f LOCALE_USER_DEFAULT LCID = 0x0400 LOCALE_SYSTEM_DEFAULT LCID = 0x0800 )
Predefined locale ids
func GetThreadLocale ¶
func GetThreadLocale() LCID
Click to show internal directories.
Click to hide internal directories.