mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
102 lines
2.3 KiB
C
102 lines
2.3 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Ancillary Function Driver DLL
|
|
* FILE: include/msafd.h
|
|
* PURPOSE: Ancillary Function Driver DLL header
|
|
*/
|
|
|
|
#define _WIN32_WINNT 0x502
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
|
#define WIN32_NO_STATUS
|
|
|
|
/* PSDK Headers */
|
|
#include <winsock2.h>
|
|
#include <wsipx.h>
|
|
#include <wsnetbs.h>
|
|
#include <wininet.h>
|
|
|
|
/* NDK */
|
|
#include <iofuncs.h>
|
|
#include <rtltypes.h>
|
|
|
|
/* Shared GUIDs */
|
|
#include <nsp_dns.h>
|
|
|
|
/* These should go in rasadhlp.h */
|
|
#define FILE_DEVICE_ACD 0x000000F1
|
|
#define _ACD_CTL_CODE(function, method, access) \
|
|
CTL_CODE(FILE_DEVICE_ACD, function, method, access)
|
|
|
|
#define IOCTL_ACD_RESET \
|
|
_ACD_CTL_CODE(0, METHOD_BUFFERED, FILE_WRITE_ACCESS)
|
|
#define IOCTL_ACD_ENABLE \
|
|
_ACD_CTL_CODE(1, METHOD_BUFFERED, FILE_WRITE_ACCESS)
|
|
#define IOCTL_ACD_NOTIFICATION \
|
|
_ACD_CTL_CODE(2, METHOD_BUFFERED, FILE_READ_ACCESS)
|
|
#define IOCTL_ACD_KEEPALIVE \
|
|
_ACD_CTL_CODE(3, METHOD_BUFFERED, FILE_READ_ACCESS)
|
|
#define IOCTL_ACD_COMPLETION \
|
|
_ACD_CTL_CODE(4, METHOD_BUFFERED, FILE_WRITE_ACCESS)
|
|
#define IOCTL_ACD_CONNECT_ADDRESS \
|
|
_ACD_CTL_CODE(5, METHOD_BUFFERED, FILE_READ_ACCESS)
|
|
|
|
typedef enum
|
|
{
|
|
AutoDialIp,
|
|
AutoDialIpx,
|
|
AutoDialNetBios,
|
|
AutoDialIpHost
|
|
} AUTODIAL_FAMILY;
|
|
|
|
typedef enum
|
|
{
|
|
ConnectionIpxLana,
|
|
ConnectionIp,
|
|
ConnectionIpHost,
|
|
ConnectionNetBiosMac,
|
|
} CONNECTION_FAMILY;
|
|
|
|
typedef struct _AUTODIAL_ADDR
|
|
{
|
|
AUTODIAL_FAMILY Family;
|
|
union
|
|
{
|
|
IN_ADDR Ip4Address;
|
|
CHAR IpxNode[6];
|
|
CHAR NetBiosAddress[NETBIOS_NAME_LENGTH];
|
|
CHAR HostName[INTERNET_MAX_PATH_LENGTH];
|
|
};
|
|
} AUTODIAL_ADDR, *PAUTODIAL_ADDR;
|
|
|
|
typedef struct _AUTODIAL_CONN
|
|
{
|
|
CONNECTION_FAMILY Family;
|
|
union
|
|
{
|
|
UCHAR IpxLana;
|
|
ULONG Ip4Address;
|
|
WCHAR ConnectionName[32];
|
|
CHAR NetBiosMac[6];
|
|
};
|
|
} AUTODIAL_CONN, *PAUTODIAL_CONN;
|
|
|
|
typedef struct _AUTODIAL_COMMAND
|
|
{
|
|
AUTODIAL_ADDR Address;
|
|
BOOL NewConnection;
|
|
AUTODIAL_CONN Connection;
|
|
} AUTODIAL_COMMAND, *PAUTODIAL_COMMAND;
|
|
|
|
BOOLEAN
|
|
WINAPI
|
|
AcsHlpNoteNewConnection(
|
|
IN PAUTODIAL_ADDR ConnectionAddress,
|
|
IN PAUTODIAL_CONN Connection
|
|
);
|
|
|
|
BOOLEAN
|
|
WINAPI
|
|
AcsHlpAttemptConnection(
|
|
IN PAUTODIAL_ADDR ConnectionAddress
|
|
);
|
|
|