我这两天用API函数做了一个内存修改器,却发现无法对系统核心进程进行修改
望高手指点
就算修改不了,假的核心进程总还能改吧??要怎么改

解决方案 »

  1.   

    ...windows下内存操作权限问题很重要也很麻烦。
      

  2.   

    AdjustTokenPrivileges
    The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires TOKEN_ADJUST_PRIVILEGES access. BOOL AdjustTokenPrivileges(
      HANDLE TokenHandle,  // handle to token that contains privileges
      BOOL DisableAllPrivileges,
                           // flag for disabling all privileges
      PTOKEN_PRIVILEGES NewState,
                           // pointer to new privilege information
      DWORD BufferLength,  // size, in bytes, of the PreviousState buffer
      PTOKEN_PRIVILEGES PreviousState,
                           // receives original state of changed 
                           // privileges
      PDWORD ReturnLength  // receives required size of the 
                           // PreviousState buffer
    );
      

  3.   

    http://www.google.com/codesearch里搜AdjustTokenPrivileges
      

  4.   

    Private Declare Function RtlAdjustPrivilege Lib "ntdll.dll" (ByVal Privilege As Long, ByVal Enable As Boolean, ByVal Client As Boolean, WasEnabled As Long) As Long  
      
    Public Function EnablePrivilege(ByVal Privilege As Long, Enable As Boolean) As Boolean  
        Dim ntStatus As Long  
        Dim WasEnabled As Long  
        ntStatus = RtlAdjustPrivilege(Privilege, Enable, True, WasEnabled)   
        If ntStatus = STATUS_NO_TOKEN Then  
            ntStatus = RtlAdjustPrivilege(Privilege, Enable, False, WasEnabled)   
        End If  
        If ntStatus = 0 Then  
            EnablePrivilege = True  
        Else  
            EnablePrivilege = False  
        End If  
    End Function本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/chenhui530/archive/2008/06/01/2500112.aspx
      

  5.   

    API:OpenProcessToken()
    LookupPrivilegeValue()
    AdjustTokenPrivileges()
      

  6.   

    使用任务管理器的方式,NtQuerySystemInformation去把系统句柄遍历啊遍历
      

  7.   

    晕.....一句API调用还不行啊???http://www.m5home.com/blog/article.asp?id=345照这里用.再不会我就无语了....
      

  8.   

    原来是API
    没看出来
    问题解决