mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.4 KiB
112 lines
2.4 KiB
|
|
/**********************************************************************/
|
|
/** Microsoft Windows NT **/
|
|
/** Copyright(c) Microsoft Corp., 1994-1997 **/
|
|
/**********************************************************************/
|
|
|
|
/*
|
|
uspud.h
|
|
|
|
This module contains usermode interface to the spud.sys driver.
|
|
|
|
|
|
*/
|
|
|
|
#ifndef _USPUD_H_
|
|
#define _USPUD_H_
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDTransmitFileAndRecv(
|
|
HANDLE hSocket, // Socket handle to use for operation
|
|
PAFD_TRANSMIT_FILE_INFO transmitInfo, // transmit file req info
|
|
PAFD_RECV_INFO recvInfo, // recv req info
|
|
PSPUD_REQ_CONTEXT reqContext // context info for req
|
|
);
|
|
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDSendAndRecv(
|
|
HANDLE hSocket, // Socket handle to use for operation
|
|
PAFD_SEND_INFO sendInfo, // send req info
|
|
PAFD_RECV_INFO recvInfo, // recv req info
|
|
PSPUD_REQ_CONTEXT reqContext // context info for req
|
|
);
|
|
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDCancel(
|
|
PSPUD_REQ_CONTEXT reqContext // context info for req
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDCheckStatus(
|
|
PSPUD_REQ_CONTEXT reqContext // context info for req
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDGetCounts(
|
|
PSPUD_COUNTERS SpudCounts, // Counters
|
|
DWORD ClearCounts
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDInitialize(
|
|
DWORD Version, // Version information from Spud.h
|
|
HANDLE hIoPort, // Handle of IO completion port for ATQ
|
|
HANDLE hOplockPort // Handle of oplock completion port for ATQ
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDTerminate(
|
|
VOID
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDCreateFile(
|
|
OUT PHANDLE FileHandle,
|
|
IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|
OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
IN ULONG FileAttributes,
|
|
IN ULONG ShareAccess,
|
|
IN ULONG CreateOptions,
|
|
IN SECURITY_INFORMATION SecurityInformation,
|
|
OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|
IN ULONG Length,
|
|
OUT PULONG LengthNeeded,
|
|
IN PVOID pOplock
|
|
);
|
|
|
|
extern
|
|
NTSTATUS
|
|
NTAPI
|
|
SPUDOplockAcknowledge(
|
|
IN HANDLE FileHandle,
|
|
IN PVOID pOplock
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //!_USPUD_H_
|