ReactOS 0.4.15-dev-8241-g63935f8
version.c File Reference
#include "precomp.h"
Include dependency graph for version.c:

Go to the source code of this file.

Functions

NTSTATUS SbDspGetVersion (IN PUCHAR BasePort, OUT PUCHAR MajorVersion, OUT PUCHAR MinorVersion, IN ULONG Timeout)
 

Function Documentation

◆ SbDspGetVersion()

NTSTATUS SbDspGetVersion ( IN PUCHAR  BasePort,
OUT PUCHAR  MajorVersion,
OUT PUCHAR  MinorVersion,
IN ULONG  Timeout 
)

Definition at line 19 of file version.c.

24{
26
27 /* Make sure our parameters are sane */
28 if ( ! MajorVersion )
30
31 if ( ! MinorVersion )
33
34 /* Send version request */
36 if ( Status != STATUS_SUCCESS )
37 return Status;
38
39 /* Get the major version */
41 if ( Status != STATUS_SUCCESS )
42 return FALSE;
43
44 /* Get the minor version */
46 return Status;
47}
LONG NTSTATUS
Definition: precomp.h:26
#define FALSE
Definition: types.h:117
ULONG MajorVersion
Definition: ros_glue.cpp:4
ULONG MinorVersion
Definition: ros_glue.cpp:5
Status
Definition: gdiplustypes.h:25
#define STATUS_INVALID_PARAMETER_2
Definition: ntstatus.h:476
#define STATUS_INVALID_PARAMETER_3
Definition: ntstatus.h:477
static ULONG Timeout
Definition: ping.c:61
NTSTATUS SbDspWrite(IN PUCHAR BasePort, IN UCHAR DataByte, IN ULONG Timeout)
Definition: dsp_io.c:99
NTSTATUS SbDspRead(IN PUCHAR BasePort, OUT PUCHAR DataByte, IN ULONG Timeout)
Definition: dsp_io.c:120
#define SB_DSP_VERSION
Definition: sbdsp.h:78
#define STATUS_SUCCESS
Definition: shellext.h:65