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.
96 lines
2.2 KiB
96 lines
2.2 KiB
/*++
|
|
|
|
Copyright (c) 1991-1992 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Rxmain.c
|
|
|
|
Abstract:
|
|
|
|
This is the main routine for the NT LAN Manager Workstation service.
|
|
|
|
Author:
|
|
|
|
--*/
|
|
|
|
#include "rxdrt.h" // Service related global definitions
|
|
#include "rxdevice.h" // Device init & shutdown
|
|
|
|
DWORD RxDrtTrace = 0;
|
|
|
|
#define RDBSS L"Rdbss"
|
|
#define MRXLOCAL L"MrxLocal"
|
|
#define MRXSMB L"MrxSmb"
|
|
|
|
int __cdecl
|
|
main( int argc , char** argv)
|
|
{
|
|
NTSTATUS Status;
|
|
|
|
// Set up the appropriate debug tracing.
|
|
RxDrtTrace = RXDRT_DEBUG_ALL;
|
|
|
|
DbgPrint("[RxDrt] START\n");
|
|
|
|
Status = RxLoadDriver(RDBSS);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxLoadDriver(%ws) returned %lx\n",RDBSS,Status);
|
|
}
|
|
|
|
Status = RxLoadDriver(MRXLOCAL);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxLoadDriver(%ws) returned %lx\n",MRXLOCAL,Status);
|
|
}
|
|
|
|
Status = RxLoadDriver(MRXSMB);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxLoadDriver(%ws) returned %lx\n",MRXSMB,Status);
|
|
}
|
|
|
|
Status = RxOpenRedirector();
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxOpenRedirector() returned %lx\n",Status);
|
|
}
|
|
|
|
Status = RxOpenDgReceiver();
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxOpenDgReceiver() returned %lx\n",Status);
|
|
}
|
|
|
|
Status = RxStartRedirector();
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxStartRedirector() returned %lx\n",Status);
|
|
}
|
|
|
|
Status = RxBindToTransports();
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxBindToTransports() returned %lx\n",Status);
|
|
}
|
|
|
|
Status = RxStopRedirector();
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxShutdownRedirector() returned %lx\n",Status);
|
|
}
|
|
|
|
Status = RxUnloadDriver(MRXSMB);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxUnloadDriver(%ws) returned %lx\n",MRXSMB,Status);
|
|
}
|
|
|
|
Status = RxUnloadDriver(MRXLOCAL);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxUnloadDriver(%ws) returned %lx\n",MRXLOCAL,Status);
|
|
}
|
|
|
|
Status = RxUnloadDriver(RDBSS);
|
|
if (!NT_SUCCESS(Status)) {
|
|
DbgPrint("[RxDrt] RxUnloadDriver(%ws) returned %lx\n",RDBSS,Status);
|
|
}
|
|
|
|
DbgPrint("[RxDrt] END\n");
|
|
return 0;
|
|
}
|
|
|
|
|
|
|