ReactOS  0.4.14-dev-77-gd9e7c48
precomp.h File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winsock2.h>
#include <wsnetbs.h>
#include <wininet.h>
Include dependency graph for precomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _AUTODIAL_ADDR
 
struct  _AUTODIAL_CONN
 
struct  _AUTODIAL_COMMAND
 

Macros

#define _WIN32_WINNT   0x502
 
#define _CRT_SECURE_NO_DEPRECATE
 
#define WIN32_NO_STATUS
 
#define _INC_WINDOWS
 
#define COM_NO_WINDOWS_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)
 

Typedefs

typedef struct _AUTODIAL_ADDR AUTODIAL_ADDR
 
typedef struct _AUTODIAL_ADDRPAUTODIAL_ADDR
 
typedef struct _AUTODIAL_CONN AUTODIAL_CONN
 
typedef struct _AUTODIAL_CONNPAUTODIAL_CONN
 
typedef struct _AUTODIAL_COMMAND AUTODIAL_COMMAND
 
typedef struct _AUTODIAL_COMMANDPAUTODIAL_COMMAND
 

Enumerations

enum  AUTODIAL_FAMILY { AutoDialIp, AutoDialIpx, AutoDialNetBios, AutoDialIpHost }
 
enum  CONNECTION_FAMILY { ConnectionIpxLana, ConnectionIp, ConnectionIpHost, ConnectionNetBiosMac }
 

Functions

BOOLEAN WINAPI AcsHlpNoteNewConnection (IN PAUTODIAL_ADDR ConnectionAddress, IN PAUTODIAL_CONN Connection)
 
BOOLEAN WINAPI AcsHlpAttemptConnection (IN PAUTODIAL_ADDR ConnectionAddress)
 

Macro Definition Documentation

◆ _ACD_CTL_CODE

#define _ACD_CTL_CODE (   function,
  method,
  access 
)    CTL_CODE(FILE_DEVICE_ACD, function, method, access)

Definition at line 21 of file precomp.h.

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 5 of file precomp.h.

◆ _INC_WINDOWS

#define _INC_WINDOWS

Definition at line 7 of file precomp.h.

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x502

Definition at line 4 of file precomp.h.

◆ COM_NO_WINDOWS_H

#define COM_NO_WINDOWS_H

Definition at line 8 of file precomp.h.

◆ FILE_DEVICE_ACD

#define FILE_DEVICE_ACD   0x000000F1

Definition at line 20 of file precomp.h.

◆ IOCTL_ACD_COMPLETION

#define IOCTL_ACD_COMPLETION   _ACD_CTL_CODE(4, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 32 of file precomp.h.

◆ IOCTL_ACD_CONNECT_ADDRESS

#define IOCTL_ACD_CONNECT_ADDRESS   _ACD_CTL_CODE(5, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 34 of file precomp.h.

◆ IOCTL_ACD_ENABLE

Definition at line 26 of file precomp.h.

◆ IOCTL_ACD_KEEPALIVE

#define IOCTL_ACD_KEEPALIVE   _ACD_CTL_CODE(3, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 30 of file precomp.h.

◆ IOCTL_ACD_NOTIFICATION

#define IOCTL_ACD_NOTIFICATION   _ACD_CTL_CODE(2, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 28 of file precomp.h.

◆ IOCTL_ACD_RESET

Definition at line 24 of file precomp.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 6 of file precomp.h.

Typedef Documentation

◆ AUTODIAL_ADDR

◆ AUTODIAL_COMMAND

◆ AUTODIAL_CONN

◆ PAUTODIAL_ADDR

◆ PAUTODIAL_COMMAND

◆ PAUTODIAL_CONN

Enumeration Type Documentation

◆ AUTODIAL_FAMILY

Enumerator
AutoDialIp 
AutoDialIpx 
AutoDialNetBios 
AutoDialIpHost 

Definition at line 37 of file precomp.h.

◆ CONNECTION_FAMILY

Enumerator
ConnectionIpxLana 
ConnectionIp 
ConnectionIpHost 
ConnectionNetBiosMac 

Definition at line 45 of file precomp.h.

Function Documentation

◆ AcsHlpAttemptConnection()

BOOLEAN WINAPI AcsHlpAttemptConnection ( IN PAUTODIAL_ADDR  ConnectionAddress)

Definition at line 89 of file autodial.c.

90 {
92 
93  /* Clear the command packet */
95 
96  /* Copy the address into the command packet */
97  RtlCopyMemory(&Command.Address, ConnectionAddress, sizeof(AUTODIAL_ADDR));
98 
99  /* Send it to the driver */
100  return AcsHlpSendCommand(&Command);
101 }
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
Definition: shell.h:41
struct Command Command
BOOLEAN WINAPI AcsHlpSendCommand(IN PAUTODIAL_COMMAND Command)
Definition: autodial.c:17
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261

Referenced by WSAttemptAutodialAddr(), and WSAttemptAutodialName().

◆ AcsHlpNoteNewConnection()

BOOLEAN WINAPI AcsHlpNoteNewConnection ( IN PAUTODIAL_ADDR  ConnectionAddress,
IN PAUTODIAL_CONN  Connection 
)

Definition at line 108 of file autodial.c.

110 {
112 
113  /* Copy the address into the command packet */
114  RtlCopyMemory(&Command.Address, ConnectionAddress, sizeof(AUTODIAL_ADDR));
115 
116  /* Set the New Connection flag and copy the connection data */
117  Command.NewConnection = TRUE;
118  RtlCopyMemory(&Command.Connection, Connection, sizeof(AUTODIAL_CONN));
119 
120  /* Send it to the driver */
121  return AcsHlpSendCommand(&Command);
122 }
#define TRUE
Definition: types.h:120
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
Definition: shell.h:41
struct Command Command
BOOLEAN WINAPI AcsHlpSendCommand(IN PAUTODIAL_COMMAND Command)
Definition: autodial.c:17

Referenced by WSNoteSuccessfulHostentLookup().