37#define WIN_OBJ_DIR L"\\Windows"
38#define SESSION_DIR L"\\Sessions"
91 ULONG ConnectInfoSize =
sizeof(ConnectInfo);
92 WCHAR SessionDir[256];
94 DPRINT(
"DllMain(hInst %p, dwReason %lu)\n",
160 DPRINT(
"Creating new thread for CSR\n");
177 L"%wZ;%wZ\\system;%wZ;",
212 DPRINT1(
"Failed to set up console\n");
#define BASESRV_SERVERDLL_INDEX
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
#define NT_SUCCESS(StatCode)
BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
#define DLL_THREAD_ATTACH
NTSTATUS NTAPI BasepProbeForDllManifest(IN PVOID DllHandle, IN PCWSTR FullDllName, OUT PVOID *ActCtx)
BOOLEAN WINAPI ConDllInitialize(IN ULONG Reason, IN PWSTR SessionDir)
WCHAR BaseDefaultPathBuffer[6140]
VOID FASTCALL NlsUninit(VOID)
static BOOL DllInitialized
NTSTATUS NTAPI BaseCreateThreadPoolThread(IN PTHREAD_START_ROUTINE Function, IN PVOID Parameter, OUT PHANDLE ThreadHandle)
BOOL FASTCALL NlsInit(VOID)
PBASE_STATIC_SERVER_DATA BaseStaticServerData
HANDLE BaseNamedObjectDirectory
RTL_CRITICAL_SECTION BaseDllDirectoryLock
BOOLEAN BaseRunningInServerProcess
NTSTATUS NTAPI BaseExitThreadPoolThread(IN NTSTATUS ExitStatus)
LPTOP_LEVEL_EXCEPTION_FILTER GlobalTopLevelExceptionFilter
UNICODE_STRING BaseWindowsDirectory
UNICODE_STRING BaseDefaultPathAppend
UNICODE_STRING BaseWindowsSystemDirectory
UNICODE_STRING BaseDefaultPath
RTL_CRITICAL_SECTION gcsAppCert
LIST_ENTRY BasepAppCertDllsList
VOID WINAPI InitCommandLines(VOID)
HANDLE WINAPI CreateRemoteThread(IN HANDLE hProcess, IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
VOID WINAPI ExitThread(IN DWORD uExitCode)
PRTL_CONVERT_STRING Basep8BitStringToUnicodeString
#define InitializeListHead(ListHead)
VOID NTAPI BaseDllInitializeMemoryManager(VOID)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
NTSYSAPI PVOID WINAPI RtlEncodePointer(PVOID)
VOID NTAPI LdrSetDllManifestProber(_In_ PLDR_MANIFEST_PROBER_ROUTINE Routine)
NTSTATUS NTAPI LdrDisableThreadCalloutsForDll(_In_ PVOID BaseAddress)
NTSYSAPI NTSTATUS NTAPI RtlDeleteCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSTATUS NTAPI RtlSetThreadPoolStartFunc(_In_ PRTL_START_POOL_THREAD StartPoolThread, _In_ PRTL_EXIT_POOL_THREAD ExitPoolThread)
NTSYSAPI NTSTATUS NTAPI RtlInitializeCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
ULONG(NTAPI * PTHREAD_START_ROUTINE)(PVOID Parameter)
NTSYSAPI NTSTATUS NTAPI RtlAnsiStringToUnicodeString(PUNICODE_STRING DestinationString, PANSI_STRING SourceString, BOOLEAN AllocateDestinationString)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSTATUS NTAPI NtTerminateProcess(HANDLE ProcessHandle, LONG ExitStatus)
#define NtCurrentProcess()
NTSTRSAFEVAPI RtlStringCbPrintfW(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PWSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCWSTR pszFormat,...)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
NTSTATUS NTAPI CsrNewThread(VOID)
NTSTATUS NTAPI CsrClientConnectToServer(_In_ PCWSTR ObjectDirectory, _In_ ULONG ServerId, _In_ PVOID ConnectionInfo, _Inout_ PULONG ConnectionInfoSize, _Out_ PBOOLEAN ServerToServerCall)
UNICODE_STRING WindowsDirectory
UNICODE_STRING WindowsSystemDirectory
PVOID * ReadOnlyStaticServerData
#define STATUS_UNSUCCESSFUL
_Inout_opt_ PVOID Parameter