github.com/kbinani/win@v0.3.0/types_386.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 [320]byte
    11  }
    12  
    13  func (this *INPUTCONTEXT) HWnd() *HWND { // 4
    14  	return (*HWND)(unsafe.Pointer(&this.storage[0]))
    15  }
    16  func (this *INPUTCONTEXT) FOpen() *BOOL { // 4
    17  	return (*BOOL)(unsafe.Pointer(&this.storage[4]))
    18  }
    19  func (this *INPUTCONTEXT) PtStatusWndPos() *POINT { // 8
    20  	return (*POINT)(unsafe.Pointer(&this.storage[8]))
    21  }
    22  func (this *INPUTCONTEXT) PtSoftKbdPos() *POINT { // 8
    23  	return (*POINT)(unsafe.Pointer(&this.storage[16]))
    24  }
    25  func (this *INPUTCONTEXT) FdwConversion() *DWORD { // 4
    26  	return (*DWORD)(unsafe.Pointer(&this.storage[24]))
    27  }
    28  func (this *INPUTCONTEXT) FdwSentence() *DWORD { // 4
    29  	return (*DWORD)(unsafe.Pointer(&this.storage[28]))
    30  }
    31  func (this *INPUTCONTEXT) LfFont() *LOGFONT { // 92
    32  	return (*LOGFONT)(unsafe.Pointer(&this.storage[32]))
    33  }
    34  func (this *INPUTCONTEXT) CfCompForm() *COMPOSITIONFORM { // 28
    35  	return (*COMPOSITIONFORM)(unsafe.Pointer(&this.storage[124]))
    36  }
    37  func (this *INPUTCONTEXT) CfCandForm() *[4]CANDIDATEFORM { // 128
    38  	return (*[4]CANDIDATEFORM)(unsafe.Pointer(&this.storage[152]))
    39  }
    40  func (this *INPUTCONTEXT) HCompStr() *HIMCC { // 4
    41  	return (*HIMCC)(unsafe.Pointer(&this.storage[280]))
    42  }
    43  func (this *INPUTCONTEXT) HCandInfo() *HIMCC { // 4
    44  	return (*HIMCC)(unsafe.Pointer(&this.storage[284]))
    45  }
    46  func (this *INPUTCONTEXT) HGuideLine() *HIMCC { // 4
    47  	return (*HIMCC)(unsafe.Pointer(&this.storage[288]))
    48  }
    49  func (this *INPUTCONTEXT) HPrivate() *HIMCC { // 4
    50  	return (*HIMCC)(unsafe.Pointer(&this.storage[292]))
    51  }
    52  func (this *INPUTCONTEXT) DwNumMsgBuf() *DWORD { // 4
    53  	return (*DWORD)(unsafe.Pointer(&this.storage[296]))
    54  }
    55  func (this *INPUTCONTEXT) HMsgBuf() *HIMCC { // 4
    56  	return (*HIMCC)(unsafe.Pointer(&this.storage[300]))
    57  }
    58  func (this *INPUTCONTEXT) FdwInit() *DWORD { // 4
    59  	return (*DWORD)(unsafe.Pointer(&this.storage[304]))
    60  }
    61  func (this *INPUTCONTEXT) DwReserve() *[3]DWORD { // 12
    62  	return (*[3]DWORD)(unsafe.Pointer(&this.storage[308]))
    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  	padding1               [4]byte
   103  }
   104  type IP_ADAPTER_ANYCAST_ADDRESS_XP struct {
   105  	union1   ULONGLONG
   106  	Next     *IP_ADAPTER_ANYCAST_ADDRESS_XP
   107  	Address  SOCKET_ADDRESS
   108  	padding1 [4]byte
   109  }
   110  type IP_ADAPTER_DNS_SERVER_ADDRESS_XP struct {
   111  	union1   ULONGLONG
   112  	Next     *IP_ADAPTER_DNS_SERVER_ADDRESS_XP
   113  	Address  SOCKET_ADDRESS
   114  	padding1 [4]byte
   115  }
   116  type IP_ADAPTER_GATEWAY_ADDRESS_LH struct {
   117  	union1   ULONGLONG
   118  	Next     *IP_ADAPTER_GATEWAY_ADDRESS_LH
   119  	Address  SOCKET_ADDRESS
   120  	padding1 [4]byte
   121  }
   122  type IP_ADAPTER_MULTICAST_ADDRESS_XP struct {
   123  	union1   ULONGLONG
   124  	Next     *IP_ADAPTER_MULTICAST_ADDRESS_XP
   125  	Address  SOCKET_ADDRESS
   126  	padding1 [4]byte
   127  }
   128  type IP_ADAPTER_WINS_SERVER_ADDRESS_LH struct {
   129  	union1   ULONGLONG
   130  	Next     *IP_ADAPTER_WINS_SERVER_ADDRESS_LH
   131  	Address  SOCKET_ADDRESS
   132  	padding1 [4]byte
   133  }
   134  type MIDIHDR struct {
   135  	storage [64]byte
   136  }
   137  
   138  func (this *MIDIHDR) LpData() *LPSTR { // 4
   139  	return (*LPSTR)(unsafe.Pointer(&this.storage[0]))
   140  }
   141  func (this *MIDIHDR) DwBufferLength() *DWORD { // 4
   142  	return (*DWORD)(unsafe.Pointer(&this.storage[4]))
   143  }
   144  func (this *MIDIHDR) DwBytesRecorded() *DWORD { // 4
   145  	return (*DWORD)(unsafe.Pointer(&this.storage[8]))
   146  }
   147  func (this *MIDIHDR) DwUser() *DWORD_PTR { // 4
   148  	return (*DWORD_PTR)(unsafe.Pointer(&this.storage[12]))
   149  }
   150  func (this *MIDIHDR) DwFlags() *DWORD { // 4
   151  	return (*DWORD)(unsafe.Pointer(&this.storage[16]))
   152  }
   153  func (this *MIDIHDR) LpNext() **MIDIHDR { // 4
   154  	return (**MIDIHDR)(unsafe.Pointer(&this.storage[20]))
   155  }
   156  func (this *MIDIHDR) Reserved() *DWORD_PTR { // 4
   157  	return (*DWORD_PTR)(unsafe.Pointer(&this.storage[24]))
   158  }
   159  func (this *MIDIHDR) DwOffset() *DWORD { // 4
   160  	return (*DWORD)(unsafe.Pointer(&this.storage[28]))
   161  }
   162  func (this *MIDIHDR) DwReserved() *[8]DWORD_PTR { // 32
   163  	return (*[8]DWORD_PTR)(unsafe.Pointer(&this.storage[32]))
   164  }
   165  
   166  type MIXERLINECONTROLS struct {
   167  	CbStruct  DWORD
   168  	DwLineID  DWORD
   169  	union1    DWORD
   170  	CControls DWORD
   171  	Cbmxctrl  DWORD
   172  	storage1  [4]byte
   173  }
   174  type PRINTDLG struct {
   175  	storage [66]byte
   176  }
   177  
   178  func (this *PRINTDLG) LStructSize() *DWORD { // 4
   179  	return (*DWORD)(unsafe.Pointer(&this.storage[0]))
   180  }
   181  func (this *PRINTDLG) HwndOwner() *HWND { // 4
   182  	return (*HWND)(unsafe.Pointer(&this.storage[4]))
   183  }
   184  func (this *PRINTDLG) HDevMode() *HGLOBAL { // 4
   185  	return (*HGLOBAL)(unsafe.Pointer(&this.storage[8]))
   186  }
   187  func (this *PRINTDLG) HDevNames() *HGLOBAL { // 4
   188  	return (*HGLOBAL)(unsafe.Pointer(&this.storage[12]))
   189  }
   190  func (this *PRINTDLG) HDC() *HDC { // 4
   191  	return (*HDC)(unsafe.Pointer(&this.storage[16]))
   192  }
   193  func (this *PRINTDLG) Flags() *DWORD { // 4
   194  	return (*DWORD)(unsafe.Pointer(&this.storage[20]))
   195  }
   196  func (this *PRINTDLG) NFromPage() *WORD { // 2
   197  	return (*WORD)(unsafe.Pointer(&this.storage[24]))
   198  }
   199  func (this *PRINTDLG) NToPage() *WORD { // 2
   200  	return (*WORD)(unsafe.Pointer(&this.storage[26]))
   201  }
   202  func (this *PRINTDLG) NMinPage() *WORD { // 2
   203  	return (*WORD)(unsafe.Pointer(&this.storage[28]))
   204  }
   205  func (this *PRINTDLG) NMaxPage() *WORD { // 2
   206  	return (*WORD)(unsafe.Pointer(&this.storage[30]))
   207  }
   208  func (this *PRINTDLG) NCopies() *WORD { // 2
   209  	return (*WORD)(unsafe.Pointer(&this.storage[32]))
   210  }
   211  func (this *PRINTDLG) HInstance() *HINSTANCE { // 4
   212  	return (*HINSTANCE)(unsafe.Pointer(&this.storage[34]))
   213  }
   214  func (this *PRINTDLG) LCustData() *LPARAM { // 4
   215  	return (*LPARAM)(unsafe.Pointer(&this.storage[38]))
   216  }
   217  func (this *PRINTDLG) LpfnPrintHook() *uintptr { // 4
   218  	return (*uintptr)(unsafe.Pointer(&this.storage[42]))
   219  }
   220  func (this *PRINTDLG) LpfnSetupHook() *uintptr { // 4
   221  	return (*uintptr)(unsafe.Pointer(&this.storage[46]))
   222  }
   223  func (this *PRINTDLG) LpPrintTemplateName() *LPCWSTR { // 4
   224  	return (*LPCWSTR)(unsafe.Pointer(&this.storage[50]))
   225  }
   226  func (this *PRINTDLG) LpSetupTemplateName() *LPCWSTR { // 4
   227  	return (*LPCWSTR)(unsafe.Pointer(&this.storage[54]))
   228  }
   229  func (this *PRINTDLG) HPrintTemplate() *HGLOBAL { // 4
   230  	return (*HGLOBAL)(unsafe.Pointer(&this.storage[58]))
   231  }
   232  func (this *PRINTDLG) HSetupTemplate() *HGLOBAL { // 4
   233  	return (*HGLOBAL)(unsafe.Pointer(&this.storage[62]))
   234  }
   235  
   236  type SIZE_T uint32
   237  type STRRET struct {
   238  	UType UINT
   239  	cStr  [260]byte
   240  }
   241  type TASKDIALOGCONFIG struct {
   242  	storage [96]byte
   243  }
   244  
   245  func (this *TASKDIALOGCONFIG) CbSize() *UINT {
   246  	return (*UINT)(unsafe.Pointer(&this.storage[0]))
   247  }
   248  func (this *TASKDIALOGCONFIG) HwndParent() *HWND {
   249  	return (*HWND)(unsafe.Pointer(&this.storage[4]))
   250  }
   251  func (this *TASKDIALOGCONFIG) HInstance() *HINSTANCE {
   252  	return (*HINSTANCE)(unsafe.Pointer(&this.storage[8]))
   253  }
   254  func (this *TASKDIALOGCONFIG) DwFlags() *TASKDIALOG_FLAGS {
   255  	return (*TASKDIALOG_FLAGS)(unsafe.Pointer(&this.storage[12]))
   256  }
   257  func (this *TASKDIALOGCONFIG) DwCommonButtons() *TASKDIALOG_COMMON_BUTTON_FLAGS {
   258  	return (*TASKDIALOG_COMMON_BUTTON_FLAGS)(unsafe.Pointer(&this.storage[16]))
   259  }
   260  func (this *TASKDIALOGCONFIG) PszWindowTitle() *PCWSTR {
   261  	return (*PCWSTR)(unsafe.Pointer(&this.storage[20]))
   262  }
   263  func (this *TASKDIALOGCONFIG) HMainIcon() *HICON {
   264  	return (*HICON)(unsafe.Pointer(&this.storage[24]))
   265  }
   266  func (this *TASKDIALOGCONFIG) PszMainIcon() *PCWSTR {
   267  	return (*PCWSTR)(unsafe.Pointer(&this.storage[24]))
   268  }
   269  func (this *TASKDIALOGCONFIG) PszMainInstruction() *PCWSTR {
   270  	return (*PCWSTR)(unsafe.Pointer(&this.storage[28]))
   271  }
   272  func (this *TASKDIALOGCONFIG) PszContent() *PCWSTR {
   273  	return (*PCWSTR)(unsafe.Pointer(&this.storage[32]))
   274  }
   275  func (this *TASKDIALOGCONFIG) CButtons() *UINT {
   276  	return (*UINT)(unsafe.Pointer(&this.storage[36]))
   277  }
   278  func (this *TASKDIALOGCONFIG) PButtons() **TASKDIALOG_BUTTON {
   279  	return (**TASKDIALOG_BUTTON)(unsafe.Pointer(&this.storage[40]))
   280  }
   281  func (this *TASKDIALOGCONFIG) NDefaultButton() *int32 {
   282  	return (*int32)(unsafe.Pointer(&this.storage[44]))
   283  }
   284  func (this *TASKDIALOGCONFIG) CRadioButtons() *UINT {
   285  	return (*UINT)(unsafe.Pointer(&this.storage[48]))
   286  }
   287  func (this *TASKDIALOGCONFIG) PRadioButtons() **TASKDIALOG_BUTTON {
   288  	return (**TASKDIALOG_BUTTON)(unsafe.Pointer(&this.storage[52]))
   289  }
   290  func (this *TASKDIALOGCONFIG) NDefaultRadioButton() *int32 {
   291  	return (*int32)(unsafe.Pointer(&this.storage[56]))
   292  }
   293  func (this *TASKDIALOGCONFIG) PszVerificationText() *PCWSTR {
   294  	return (*PCWSTR)(unsafe.Pointer(&this.storage[60]))
   295  }
   296  func (this *TASKDIALOGCONFIG) PszExpandedInformation() *PCWSTR {
   297  	return (*PCWSTR)(unsafe.Pointer(&this.storage[64]))
   298  }
   299  func (this *TASKDIALOGCONFIG) PszExpandedControlText() *PCWSTR {
   300  	return (*PCWSTR)(unsafe.Pointer(&this.storage[68]))
   301  }
   302  func (this *TASKDIALOGCONFIG) PszCollapsedControlText() *PCWSTR {
   303  	return (*PCWSTR)(unsafe.Pointer(&this.storage[72]))
   304  }
   305  func (this *TASKDIALOGCONFIG) HFooterIcon() *HICON {
   306  	return (*HICON)(unsafe.Pointer(&this.storage[76]))
   307  }
   308  func (this *TASKDIALOGCONFIG) PszFooterIcon() *PCWSTR {
   309  	return (*PCWSTR)(unsafe.Pointer(&this.storage[76]))
   310  }
   311  func (this *TASKDIALOGCONFIG) PszFooter() *PCWSTR {
   312  	return (*PCWSTR)(unsafe.Pointer(&this.storage[80]))
   313  }
   314  func (this *TASKDIALOGCONFIG) PfCallback() *uintptr {
   315  	return (*uintptr)(unsafe.Pointer(&this.storage[84]))
   316  }
   317  func (this *TASKDIALOGCONFIG) LpCallbackData() *LONG_PTR {
   318  	return (*LONG_PTR)(unsafe.Pointer(&this.storage[88]))
   319  }
   320  func (this *TASKDIALOGCONFIG) CxWidth() *UINT {
   321  	return (*UINT)(unsafe.Pointer(&this.storage[92]))
   322  }
   323  
   324  type VARIANT struct {
   325  	union1 [16]byte
   326  }
   327  
   328  func (this *VARIANT) PRecInfo() *IRecordInfo {
   329  	return (*IRecordInfo)(unsafe.Pointer(&this.union1[12]))
   330  }
   331  
   332  type WSADATA struct {
   333  	WVersion       uint16
   334  	WHighVersion   uint16
   335  	SzDescription  [WSADESCRIPTION_LEN + 1]byte
   336  	SzSystemStatus [WSASYS_STATUS_LEN + 1]byte
   337  	IMaxSockets    uint16
   338  	IMaxUdpDg      uint16
   339  	LpVendorInfo   *byte
   340  }