Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4712f361
Commit
4712f361
authored
Jan 04, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add NLA_BLOB structure and its dependencies in mswsock.h.
parent
00032842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
mswsock.h
include/mswsock.h
+69
-0
No files found.
include/mswsock.h
View file @
4712f361
...
@@ -164,6 +164,75 @@ typedef struct _WSACMSGHDR {
...
@@ -164,6 +164,75 @@ typedef struct _WSACMSGHDR {
/* followed by UCHAR cmsg_data[] */
/* followed by UCHAR cmsg_data[] */
}
WSACMSGHDR
,
*
PWSACMSGHDR
,
*
LPWSACMSGHDR
;
}
WSACMSGHDR
,
*
PWSACMSGHDR
,
*
LPWSACMSGHDR
;
typedef
enum
_NLA_BLOB_DATA_TYPE
{
NLA_RAW_DATA
,
NLA_INTERFACE
,
/* interface name, type and speed */
NLA_802_1X_LOCATION
,
/* wireless network info */
NLA_CONNECTIVITY
,
/* status on network connectivity */
NLA_ICS
/* internet connection sharing */
}
NLA_BLOB_DATA_TYPE
;
typedef
enum
_NLA_CONNECTIVITY_TYPE
{
NLA_NETWORK_AD_HOC
,
/* private network */
NLA_NETWORK_MANAGED
,
/* network managed by domain */
NLA_NETWORK_UNMANAGED
,
NLA_NETWORK_UNKNOWN
}
NLA_CONNECTIVITY_TYPE
;
typedef
enum
_NLA_INTERNET
{
NLA_INTERNET_UNKNOWN
,
/* can't determine if connected or not */
NLA_INTERNET_NO
,
/* not connected to internet */
NLA_INTERNET_YES
/* connected to internet */
}
NLA_INTERNET
;
/* this structure is returned in the lpBlob field during calls to WSALookupServiceNext */
typedef
struct
_NLA_BLOB
{
/* the header defines the size of the current record and if there is a next record */
struct
{
NLA_BLOB_DATA_TYPE
type
;
DWORD
dwSize
;
DWORD
nextOffset
;
/* if it's zero there are no more blobs */
}
header
;
/* the following union interpretation depends on the header.type value
* from the struct above.
* the header.dwSize will be the size of all data, specially useful when
* the last struct field is size [1] */
union
{
/* NLA_RAW_DATA */
CHAR
rawData
[
1
];
/* NLA_INTERFACE */
struct
{
DWORD
dwType
;
DWORD
dwSpeed
;
CHAR
adapterName
[
1
];
}
interfaceData
;
/* NLA_802_1X_LOCATION */
struct
{
CHAR
information
[
1
];
}
locationData
;
/* NLA_CONNECTIVITY */
struct
{
NLA_CONNECTIVITY_TYPE
type
;
NLA_INTERNET
internet
;
}
connectivity
;
/* NLA_ICS */
struct
{
struct
{
DWORD
speed
;
DWORD
type
;
DWORD
state
;
WCHAR
machineName
[
256
];
WCHAR
sharedAdapterName
[
256
];
}
remote
;
}
ICS
;
}
data
;
}
NLA_BLOB
,
*
PNLA_BLOB
;
typedef
BOOL
(
WINAPI
*
LPFN_ACCEPTEX
)(
SOCKET
,
SOCKET
,
PVOID
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
typedef
BOOL
(
WINAPI
*
LPFN_ACCEPTEX
)(
SOCKET
,
SOCKET
,
PVOID
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
typedef
BOOL
(
WINAPI
*
LPFN_CONNECTEX
)(
SOCKET
,
const
struct
WS
(
sockaddr
)
*
,
int
,
PVOID
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
typedef
BOOL
(
WINAPI
*
LPFN_CONNECTEX
)(
SOCKET
,
const
struct
WS
(
sockaddr
)
*
,
int
,
PVOID
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
typedef
BOOL
(
WINAPI
*
LPFN_DISCONNECTEX
)(
SOCKET
,
LPOVERLAPPED
,
DWORD
,
DWORD
);
typedef
BOOL
(
WINAPI
*
LPFN_DISCONNECTEX
)(
SOCKET
,
LPOVERLAPPED
,
DWORD
,
DWORD
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment