mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
e1ef078741
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line): /DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible. /DEBUGPORT=FOO --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...) /DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port. svn path=/branches/kd++/; revision=58883
45 lines
1.3 KiB
C
45 lines
1.3 KiB
C
#ifndef _RASSHOST_H_
|
|
#define _RASSHOST_H_
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <ras.h>
|
|
#include <mprapi.h>
|
|
|
|
#define SECURITYMSG_SUCCESS 1
|
|
#define SECURITYMSG_FAILURE 2
|
|
#define SECURITYMSG_ERROR 3
|
|
|
|
typedef DWORD HPORT;
|
|
|
|
typedef struct _SECURITY_MESSAGE
|
|
{
|
|
DWORD dwMsgId;
|
|
HPORT hPort;
|
|
DWORD dwError;
|
|
CHAR UserName[UNLEN + 1];
|
|
CHAR Domain[DNLEN + 1];
|
|
} SECURITY_MESSAGE, *PSECURITY_MESSAGE;
|
|
|
|
typedef struct _RAS_SECURITY_INFO
|
|
{
|
|
DWORD LastError;
|
|
DWORD BytesReceived;
|
|
CHAR DeviceName[MAX_DEVICE_NAME + 1];
|
|
} RAS_SECURITY_INFO, *PRAS_SECURITY_INFO;
|
|
|
|
typedef DWORD (WINAPI *RASSECURITYPROC)();
|
|
|
|
VOID WINAPI RasSecurityDialogComplete(IN SECURITY_MESSAGE* pSecMsg);
|
|
DWORD WINAPI RasSecurityDialogBegin(IN HPORT hPort, IN PBYTE pSendBuf, IN DWORD SendBufSize, IN PBYTE pRecvBuf, IN DWORD RecvBufSize, IN VOID (WINAPI* RasSecurityDialogComplete)(SECURITY_MESSAGE*));
|
|
DWORD WINAPI RasSecurityDialogEnd(IN HPORT hPort);
|
|
DWORD WINAPI RasSecurityDialogSend(IN HPORT hPort, IN PBYTE pBuffer, IN WORD BufferLength);
|
|
DWORD WINAPI RasSecurityDialogReceive(IN HPORT hPort, IN PBYTE pBuffer, IN PWORD pBufferLength, IN DWORD Timeout, IN HANDLE hEvent);
|
|
DWORD WINAPI RasSecurityDialogGetInfo(IN HPORT hPort, IN RAS_SECURITY_INFO* pBuffer);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|