Changeset 2327 for trunk/src


Ignore:
Timestamp:
Jan 5, 2000, 8:37:29 PM (26 years ago)
Author:
sandervl
Message:

NtOpenThreadToken implemented

Location:
trunk/src/NTDLL
Files:
3 edited

Legend:

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

    r2128 r2327  
    1 /* $Id: nt.cpp,v 1.4 1999-12-18 21:45:13 sandervl Exp $ */
     1/* $Id: nt.cpp,v 1.5 2000-01-05 19:37:29 sandervl Exp $ */
    22
    33
     
    1919
    2020#include "ntdll.h"
     21#include <ntdllsec.h>
    2122
    2223
     
    288289           TokenHandle));
    289290
    290   *TokenHandle = 0;
    291   return ERROR_INVALID_HANDLE;
     291  return HMOpenThreadToken(ThreadHandle, DesiredAccess, OpenAsSelf, TokenHandle);
    292292}
    293293
  • trunk/src/NTDLL/ntdll.cpp

    r2128 r2327  
    1 /* $Id: ntdll.cpp,v 1.5 1999-12-18 21:45:13 sandervl Exp $ */
     1/* $Id: ntdll.cpp,v 1.6 2000-01-05 19:37:29 sandervl Exp $ */
    22
    33/*
     
    4242
    4343#include "ntdll.h"
    44 
     44#include <ntdllsec.h>
    4545
    4646/*****************************************************************************
     
    9494        NTDLL_hHeap = HeapCreate(0, 0x10000, 0);
    9595
    96         ProcSecInfo.dwType = SECTYPE_PROCESS;
     96        ProcSecInfo.dwType = SECTYPE_PROCESS | SECTYPE_INITIALIZED;
    9797        RtlAllocateAndInitializeSid(&sidIdAuth, 1, 0, 0, 0, 0, 0, 0, 0, 0, &ProcSecInfo.SidUser.User.Sid);
    9898        ProcSecInfo.SidUser.User.Attributes = 0; //?????????
  • trunk/src/NTDLL/ntdll.h

    r2134 r2327  
    1 /* $Id: ntdll.h,v 1.10 1999-12-19 12:25:55 sandervl Exp $ */
     1/* $Id: ntdll.h,v 1.11 2000-01-05 19:37:29 sandervl Exp $ */
    22
    33/*
     
    658658PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID);
    659659
    660 //SvL: Security data for win32 process (nothing fancy; just trying to fool apps
    661 //     into thinking the security subsystem is in perfect shape.
    662 #define SECTYPE_THREAD          0
    663 #define SECTYPE_PROCESS         1
    664 
    665 typedef struct {
    666  DWORD               dwType;
    667  TOKEN_USER          SidUser;
    668  TOKEN_GROUPS       *pTokenGroups;
    669  PRIVILEGE_SET      *pPrivilegeSet;
    670  TOKEN_PRIVILEGES   *pTokenPrivileges;
    671  TOKEN_OWNER         TokenOwner;
    672  TOKEN_PRIMARY_GROUP PrimaryGroup;
    673  TOKEN_DEFAULT_DACL  DefaultDACL;
    674  TOKEN_SOURCE        TokenSource;
    675  TOKEN_TYPE          TokenType;
    676 } PROCESSTHREAD_SECURITYINFO;
    677 
    678 //Per process info; Should probably be stored in process database structure
    679 extern PROCESSTHREAD_SECURITYINFO ProcSecInfo;
    680 
    681660#ifdef __cplusplus
    682661}
Note: See TracChangeset for help on using the changeset viewer.