Ignore:
Timestamp:
Dec 18, 1999, 9:01:14 PM (26 years ago)
Author:
sandervl
Message:

Partially implemented some Token & SID apis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/ntdll.cpp

    r1653 r2122  
    1 /* $Id: ntdll.cpp,v 1.3 1999-11-09 09:30:20 phaller Exp $ */
     1/* $Id: ntdll.cpp,v 1.4 1999-12-18 20:01:14 sandervl Exp $ */
    22
    33/*
     
    5050#define NTSTATUS DWORD
    5151
     52//SvL: per process heap for NTDLL
     53HANDLE NTDLL_hHeap = 0;
    5254
    5355/*****************************************************************************
     
    7779  //@@@PH raise debug exception if running in debugger
    7880}
     81
     82
     83BOOL WINAPI NTDLL_LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
     84{
     85    dprintf(("NTDLL_LibMain: 0x%x 0x%lx %p\n", hinstDLL, fdwReason, lpvReserved));
     86
     87    switch (fdwReason) {
     88    case DLL_PROCESS_ATTACH:
     89        NTDLL_hHeap = HeapCreate(0, 0x10000, 0);
     90        break;
     91    case DLL_PROCESS_DETACH:
     92        HeapDestroy(NTDLL_hHeap);
     93        NTDLL_hHeap = 0;
     94        break;
     95    case DLL_THREAD_ATTACH:
     96        break;
     97    case DLL_THREAD_DETACH:
     98        break;
     99    default:
     100        break;
     101    }
     102    return TRUE;
     103}
     104
Note: See TracChangeset for help on using the changeset viewer.