github.com/kbinani/win@v0.3.0/types_amd64.go (about) 1 // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go 2 3 package win 4 5 import ( 6 "unsafe" 7 ) 8 9 type INPUTCONTEXT struct { 10 storage [352]byte 11 } 12 13 func (this *INPUTCONTEXT) HWnd() *HWND { // 8 14 return (*HWND)(unsafe.Pointer(&this.storage[0])) 15 } 16 func (this *INPUTCONTEXT) FOpen() *BOOL { // 4 17 return (*BOOL)(unsafe.Pointer(&this.storage[8])) 18 } 19 func (this *INPUTCONTEXT) PtStatusWndPos() *POINT { // 8 20 return (*POINT)(unsafe.Pointer(&this.storage[12])) 21 } 22 func (this *INPUTCONTEXT) PtSoftKbdPos() *POINT { // 8 23 return (*POINT)(unsafe.Pointer(&this.storage[20])) 24 } 25 func (this *INPUTCONTEXT) FdwConversion() *DWORD { // 4 26 return (*DWORD)(unsafe.Pointer(&this.storage[28])) 27 } 28 func (this *INPUTCONTEXT) FdwSentence() *DWORD { // 4 29 return (*DWORD)(unsafe.Pointer(&this.storage[32])) 30 } 31 func (this *INPUTCONTEXT) LfFont() *LOGFONT { // 92 32 return (*LOGFONT)(unsafe.Pointer(&this.storage[36])) 33 } 34 func (this *INPUTCONTEXT) CfCompForm() *COMPOSITIONFORM { // 28 35 return (*COMPOSITIONFORM)(unsafe.Pointer(&this.storage[128])) 36 } 37 func (this *INPUTCONTEXT) CfCandForm() *[4]CANDIDATEFORM { // 128 38 return (*[4]CANDIDATEFORM)(unsafe.Pointer(&this.storage[156])) 39 } 40 func (this *INPUTCONTEXT) HCompStr() *HIMCC { // 8 41 return (*HIMCC)(unsafe.Pointer(&this.storage[288])) 42 } 43 func (this *INPUTCONTEXT) HCandInfo() *HIMCC { // 8 44 return (*HIMCC)(unsafe.Pointer(&this.storage[296])) 45 } 46 func (this *INPUTCONTEXT) HGuideLine() *HIMCC { // 8 47 return (*HIMCC)(unsafe.Pointer(&this.storage[304])) 48 } 49 func (this *INPUTCONTEXT) HPrivate() *HIMCC { // 8 50 return (*HIMCC)(unsafe.Pointer(&this.storage[312])) 51 } 52 func (this *INPUTCONTEXT) DwNumMsgBuf() *DWORD { // 4 53 return (*DWORD)(unsafe.Pointer(&this.storage[320])) 54 } 55 func (this *INPUTCONTEXT) HMsgBuf() *HIMCC { // 8 56 return (*HIMCC)(unsafe.Pointer(&this.storage[328])) 57 } 58 func (this *INPUTCONTEXT) FdwInit() *DWORD { // 4 59 return (*DWORD)(unsafe.Pointer(&this.storage[336])) 60 } 61 func (this *INPUTCONTEXT) DwReserve() *[3]DWORD { // 12 62 return (*[3]DWORD)(unsafe.Pointer(&this.storage[340])) 63 } 64 65 type IP_ADAPTER_ADDRESSES_LH struct { 66 union1 ULONGLONG 67 Next *IP_ADAPTER_ADDRESSES_LH 68 AdapterName PCHAR 69 FirstUnicastAddress PIP_ADAPTER_UNICAST_ADDRESS_LH 70 FirstAnycastAddress PIP_ADAPTER_ANYCAST_ADDRESS_XP 71 FirstMulticastAddress PIP_ADAPTER_MULTICAST_ADDRESS_XP 72 FirstDnsServerAddress PIP_ADAPTER_DNS_SERVER_ADDRESS_XP 73 DnsSuffix PWCHAR 74 Description PWCHAR 75 FriendlyName PWCHAR 76 PhysicalAddress [MAX_ADAPTER_ADDRESS_LENGTH]BYTE 77 PhysicalAddressLength ULONG 78 union2 ULONG 79 Mtu ULONG 80 IfType IFTYPE 81 OperStatus IF_OPER_STATUS 82 Ipv6IfIndex IF_INDEX 83 ZoneIndices [16]ULONG 84 FirstPrefix PIP_ADAPTER_PREFIX_XP 85 TransmitLinkSpeed ULONG64 86 ReceiveLinkSpeed ULONG64 87 FirstWinsServerAddress PIP_ADAPTER_WINS_SERVER_ADDRESS_LH 88 FirstGatewayAddress PIP_ADAPTER_GATEWAY_ADDRESS_LH 89 Ipv4Metric ULONG 90 Ipv6Metric ULONG 91 Luid IF_LUID 92 Dhcpv4Server SOCKET_ADDRESS 93 CompartmentId NET_IF_COMPARTMENT_ID 94 NetworkGuid NET_IF_NETWORK_GUID 95 ConnectionType NET_IF_CONNECTION_TYPE 96 TunnelType TUNNEL_TYPE 97 Dhcpv6Server SOCKET_ADDRESS 98 Dhcpv6ClientDuid [MAX_DHCPV6_DUID_LENGTH]BYTE 99 Dhcpv6ClientDuidLength ULONG 100 Dhcpv6Iaid ULONG 101 FirstDnsSuffix PIP_ADAPTER_DNS_SUFFIX 102 } 103 type IP_ADAPTER_ANYCAST_ADDRESS_XP struct { 104 union1 ULONGLONG 105 Next *IP_ADAPTER_ANYCAST_ADDRESS_XP 106 Address SOCKET_ADDRESS 107 } 108 type IP_ADAPTER_DNS_SERVER_ADDRESS_XP struct { 109 union1 ULONGLONG 110 Next *IP_ADAPTER_DNS_SERVER_ADDRESS_XP 111 Address SOCKET_ADDRESS 112 } 113 type IP_ADAPTER_GATEWAY_ADDRESS_LH struct { 114 union1 ULONGLONG 115 Next *IP_ADAPTER_GATEWAY_ADDRESS_LH 116 Address SOCKET_ADDRESS 117 } 118 type IP_ADAPTER_MULTICAST_ADDRESS_XP struct { 119 union1 ULONGLONG 120 Next *IP_ADAPTER_MULTICAST_ADDRESS_XP 121 Address SOCKET_ADDRESS 122 } 123 type IP_ADAPTER_WINS_SERVER_ADDRESS_LH struct { 124 union1 ULONGLONG 125 Next *IP_ADAPTER_WINS_SERVER_ADDRESS_LH 126 Address SOCKET_ADDRESS 127 } 128 type MIDIHDR struct { 129 storage [112]byte 130 } 131 132 func (this *MIDIHDR) LpData() *LPSTR { 133 return (*LPSTR)(unsafe.Pointer(&this.storage[0])) 134 } 135 func (this *MIDIHDR) DwBufferLength() *DWORD { 136 return (*DWORD)(unsafe.Pointer(&this.storage[8])) 137 } 138 func (this *MIDIHDR) DwBytesRecorded() *DWORD { 139 return (*DWORD)(unsafe.Pointer(&this.storage[12])) 140 } 141 func (this *MIDIHDR) DwUser() *DWORD_PTR { 142 return (*DWORD_PTR)(unsafe.Pointer(&this.storage[16])) 143 } 144 func (this *MIDIHDR) DwFlags() *DWORD { 145 return (*DWORD)(unsafe.Pointer(&this.storage[24])) 146 } 147 func (this *MIDIHDR) LpNext() **MIDIHDR { 148 return (**MIDIHDR)(unsafe.Pointer(&this.storage[28])) 149 } 150 func (this *MIDIHDR) Reserved() *DWORD_PTR { 151 return (*DWORD_PTR)(unsafe.Pointer(&this.storage[36])) 152 } 153 func (this *MIDIHDR) DwOffset() *DWORD { 154 return (*DWORD)(unsafe.Pointer(&this.storage[44])) 155 } 156 func (this *MIDIHDR) DwReserved() *[8]DWORD_PTR { 157 return (*[8]DWORD_PTR)(unsafe.Pointer(&this.storage[48])) 158 } 159 160 type MIXERLINECONTROLS struct { 161 CbStruct DWORD 162 DwLineID DWORD 163 union1 DWORD 164 CControls DWORD 165 Cbmxctrl DWORD 166 storage1 [4]byte 167 storage2 [4]byte 168 } 169 type PRINTDLG struct { 170 storage [120]byte 171 } 172 173 func (this *PRINTDLG) LStructSize() *DWORD { // 4 174 return (*DWORD)(unsafe.Pointer(&this.storage[0])) 175 } 176 func (this *PRINTDLG) HwndOwner() *HWND { // 8 177 return (*HWND)(unsafe.Pointer(&this.storage[8])) 178 } 179 func (this *PRINTDLG) HDevMode() *HGLOBAL { // 8 180 return (*HGLOBAL)(unsafe.Pointer(&this.storage[16])) 181 } 182 func (this *PRINTDLG) HDevNames() *HGLOBAL { // 8 183 return (*HGLOBAL)(unsafe.Pointer(&this.storage[24])) 184 } 185 func (this *PRINTDLG) HDC() *HDC { // 8 186 return (*HDC)(unsafe.Pointer(&this.storage[32])) 187 } 188 func (this *PRINTDLG) Flags() *DWORD { // 4 189 return (*DWORD)(unsafe.Pointer(&this.storage[40])) 190 } 191 func (this *PRINTDLG) NFromPage() *WORD { // 2 192 return (*WORD)(unsafe.Pointer(&this.storage[44])) 193 } 194 func (this *PRINTDLG) NToPage() *WORD { // 2 195 return (*WORD)(unsafe.Pointer(&this.storage[46])) 196 } 197 func (this *PRINTDLG) NMinPage() *WORD { // 2 198 return (*WORD)(unsafe.Pointer(&this.storage[48])) 199 } 200 func (this *PRINTDLG) NMaxPage() *WORD { // 2 201 return (*WORD)(unsafe.Pointer(&this.storage[50])) 202 } 203 func (this *PRINTDLG) NCopies() *WORD { // 2 204 return (*WORD)(unsafe.Pointer(&this.storage[52])) 205 } 206 func (this *PRINTDLG) HInstance() *HINSTANCE { // 8 207 return (*HINSTANCE)(unsafe.Pointer(&this.storage[56])) 208 } 209 func (this *PRINTDLG) LCustData() *LPARAM { // 8 210 return (*LPARAM)(unsafe.Pointer(&this.storage[64])) 211 } 212 func (this *PRINTDLG) LpfnPrintHook() *uintptr { // 8 213 return (*uintptr)(unsafe.Pointer(&this.storage[72])) 214 } 215 func (this *PRINTDLG) LpfnSetupHook() *uintptr { // 8 216 return (*uintptr)(unsafe.Pointer(&this.storage[80])) 217 } 218 func (this *PRINTDLG) LpPrintTemplateName() *LPCWSTR { // 8 219 return (*LPCWSTR)(unsafe.Pointer(&this.storage[88])) 220 } 221 func (this *PRINTDLG) LpSetupTemplateName() *LPCWSTR { // 8 222 return (*LPCWSTR)(unsafe.Pointer(&this.storage[96])) 223 } 224 func (this *PRINTDLG) HPrintTemplate() *HGLOBAL { // 8 225 return (*HGLOBAL)(unsafe.Pointer(&this.storage[104])) 226 } 227 func (this *PRINTDLG) HSetupTemplate() *HGLOBAL { // 8 228 return (*HGLOBAL)(unsafe.Pointer(&this.storage[112])) 229 } 230 231 type SIZE_T uint64 232 type STRRET struct { 233 UType UINT 234 padding1 [4]byte 235 cStr [260]byte 236 padding2 [4]byte 237 } 238 type TASKDIALOGCONFIG struct { 239 storage [160]byte 240 } 241 242 func (this *TASKDIALOGCONFIG) CbSize() *UINT { 243 return (*UINT)(unsafe.Pointer(&this.storage[0])) 244 } 245 func (this *TASKDIALOGCONFIG) HwndParent() *HWND { 246 return (*HWND)(unsafe.Pointer(&this.storage[4])) 247 } 248 func (this *TASKDIALOGCONFIG) HInstance() *HINSTANCE { 249 return (*HINSTANCE)(unsafe.Pointer(&this.storage[12])) 250 } 251 func (this *TASKDIALOGCONFIG) DwFlags() *TASKDIALOG_FLAGS { 252 return (*TASKDIALOG_FLAGS)(unsafe.Pointer(&this.storage[20])) 253 } 254 func (this *TASKDIALOGCONFIG) DwCommonButtons() *TASKDIALOG_COMMON_BUTTON_FLAGS { 255 return (*TASKDIALOG_COMMON_BUTTON_FLAGS)(unsafe.Pointer(&this.storage[24])) 256 } 257 func (this *TASKDIALOGCONFIG) PszWindowTitle() *PCWSTR { 258 return (*PCWSTR)(unsafe.Pointer(&this.storage[28])) 259 } 260 func (this *TASKDIALOGCONFIG) HMainIcon() *HICON { 261 return (*HICON)(unsafe.Pointer(&this.storage[36])) 262 } 263 func (this *TASKDIALOGCONFIG) PszMainIcon() *PCWSTR { 264 return (*PCWSTR)(unsafe.Pointer(&this.storage[36])) 265 } 266 func (this *TASKDIALOGCONFIG) PszMainInstruction() *PCWSTR { 267 return (*PCWSTR)(unsafe.Pointer(&this.storage[44])) 268 } 269 func (this *TASKDIALOGCONFIG) PszContent() *PCWSTR { 270 return (*PCWSTR)(unsafe.Pointer(&this.storage[52])) 271 } 272 func (this *TASKDIALOGCONFIG) CButtons() *UINT { 273 return (*UINT)(unsafe.Pointer(&this.storage[60])) 274 } 275 func (this *TASKDIALOGCONFIG) PButtons() **TASKDIALOG_BUTTON { 276 return (**TASKDIALOG_BUTTON)(unsafe.Pointer(&this.storage[64])) 277 } 278 func (this *TASKDIALOGCONFIG) NDefaultButton() *int32 { 279 return (*int32)(unsafe.Pointer(&this.storage[72])) 280 } 281 func (this *TASKDIALOGCONFIG) CRadioButtons() *UINT { 282 return (*UINT)(unsafe.Pointer(&this.storage[76])) 283 } 284 func (this *TASKDIALOGCONFIG) PRadioButtons() **TASKDIALOG_BUTTON { 285 return (**TASKDIALOG_BUTTON)(unsafe.Pointer(&this.storage[80])) 286 } 287 func (this *TASKDIALOGCONFIG) NDefaultRadioButton() *int32 { 288 return (*int32)(unsafe.Pointer(&this.storage[88])) 289 } 290 func (this *TASKDIALOGCONFIG) PszVerificationText() *PCWSTR { 291 return (*PCWSTR)(unsafe.Pointer(&this.storage[92])) 292 } 293 func (this *TASKDIALOGCONFIG) PszExpandedInformation() *PCWSTR { 294 return (*PCWSTR)(unsafe.Pointer(&this.storage[100])) 295 } 296 func (this *TASKDIALOGCONFIG) PszExpandedControlText() *PCWSTR { 297 return (*PCWSTR)(unsafe.Pointer(&this.storage[108])) 298 } 299 func (this *TASKDIALOGCONFIG) PszCollapsedControlText() *PCWSTR { 300 return (*PCWSTR)(unsafe.Pointer(&this.storage[116])) 301 } 302 func (this *TASKDIALOGCONFIG) HFooterIcon() *HICON { 303 return (*HICON)(unsafe.Pointer(&this.storage[124])) 304 } 305 func (this *TASKDIALOGCONFIG) PszFooterIcon() *PCWSTR { 306 return (*PCWSTR)(unsafe.Pointer(&this.storage[124])) 307 } 308 func (this *TASKDIALOGCONFIG) PszFooter() *PCWSTR { 309 return (*PCWSTR)(unsafe.Pointer(&this.storage[132])) 310 } 311 func (this *TASKDIALOGCONFIG) PfCallback() *uintptr { 312 return (*uintptr)(unsafe.Pointer(&this.storage[140])) 313 } 314 func (this *TASKDIALOGCONFIG) LpCallbackData() *LONG_PTR { 315 return (*LONG_PTR)(unsafe.Pointer(&this.storage[148])) 316 } 317 func (this *TASKDIALOGCONFIG) CxWidth() *UINT { 318 return (*UINT)(unsafe.Pointer(&this.storage[156])) 319 } 320 321 type VARIANT struct { 322 union1 [24]byte 323 } 324 325 func (this *VARIANT) PRecInfo() *IRecordInfo { 326 return (*IRecordInfo)(unsafe.Pointer(&this.union1[16])) 327 } 328 329 type WSADATA struct { 330 WVersion uint16 331 WHighVersion uint16 332 IMaxSockets uint16 333 IMaxUdpDg uint16 334 LpVendorInfo *byte 335 SzDescription [WSADESCRIPTION_LEN + 1]byte 336 SzSystemStatus [WSASYS_STATUS_LEN + 1]byte 337 }