Ignore:
Timestamp:
Nov 30, 1999, 3:19:03 PM (26 years ago)
Author:
sandervl
Message:

Added process api + virtualprotect fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/stubs.cpp

    r1879 r1885  
    1 /* $Id: stubs.cpp,v 1.9 1999-11-29 20:43:01 sandervl Exp $ */
     1/* $Id: stubs.cpp,v 1.10 1999-11-30 14:15:54 sandervl Exp $ */
    22
    33/*
     
    21362136}
    21372137
    2138 
    2139 
    2140 /*****************************************************************************
    2141  * Name      : BOOL GetProcessShutdownParameters
    2142  * Purpose   : The GetProcessShutdownParameters function retrieves shutdown
    2143  *             parameters for the currently calling process.
    2144  * Parameters: LPDWORD lpdwLevel
    2145  *             LPDWORD lpdwFlags
    2146  * Variables :
    2147  * Result    : TRUE / FALSE
    2148  * Remark    :
    2149  * Status    : UNTESTED STUB
    2150  *
    2151  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2152  *****************************************************************************/
    2153 
    2154 BOOL WIN32API GetProcessShutdownParameters(LPDWORD lpdwLevel,
    2155                                               LPDWORD lpdwFlags)
    2156 {
    2157   dprintf(("Kernel32: GetProcessShutdownParameters(%08xh,%08xh) not implemented.\n",
    2158            lpdwLevel,
    2159            lpdwFlags));
    2160 
    2161   return (FALSE);
    2162 }
    2163 
    2164 
    2165 
    21662138/*****************************************************************************
    21672139 * Name      : BOOL GetProcessTimes
     
    21962168}
    21972169
    2198 
    2199 /*****************************************************************************
    2200  * Name      : BOOL GetProcessWorkingSetSize
    2201  * Purpose   : The GetProcessWorkingSetSize function obtains the minimum and
    2202  *             maximum working set sizes of a specified process.
    2203  * Parameters: HANDLE  hProcess                open handle to the process of interest
    2204  *             LPDWORD lpMinimumWorkingSetSize points to variable to receive minimum working set size
    2205  *             LPDWORD lpMaximumWorkingSetSize points to variable to receive maximum working set size
    2206  * Variables :
    2207  * Result    : TRUE / FALSE
    2208  * Remark    :
    2209  * Status    : UNTESTED STUB
    2210  *
    2211  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2212  *****************************************************************************/
    2213 
    2214 BOOL WIN32API GetProcessWorkingSetSize(HANDLE  hProcess,
    2215                                           LPDWORD lpMinimumWorkingSetSize,
    2216                                           LPDWORD lpMaximumWorkingSetSize)
    2217 {
    2218   dprintf(("Kernel32: GetProcessWorkingSetSize(%08xh,%08xh,%08xh) not implemented - dummy values, TRUE.\n",
    2219            hProcess,
    2220            lpMinimumWorkingSetSize,
    2221            lpMaximumWorkingSetSize));
    2222 
    2223   /* PH: we're returning dummy values here */
    2224   *lpMinimumWorkingSetSize =   512 * 1024; /* 512k */
    2225   *lpMaximumWorkingSetSize = 65536 * 1024; /* 64M  */
    2226 
    2227   return (TRUE);
    2228 }
    22292170
    22302171
     
    27962737}
    27972738
    2798 
    2799 /*****************************************************************************
    2800  * Name      : BOOL SetProcessShutdownParameters
    2801  * Purpose   : The SetProcessShutdownParameters function sets shutdown parameters
    2802  *             for the currently calling process. This function sets a shutdown
    2803  *             order for a process relative to the other processes in the system.
    2804  * Parameters: DWORD dwLevel  shutdown priority
    2805  *             DWORD dwFlags  shutdown flags
    2806  * Variables :
    2807  * Result    : TRUE / FALSE
    2808  * Remark    :
    2809  * Status    : UNTESTED STUB
    2810  *
    2811  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2812  *****************************************************************************/
    2813 
    2814 BOOL WIN32API SetProcessShutdownParameters(DWORD dwLevel,
    2815                                               DWORD dwFlags)
    2816 {
    2817   dprintf(("KERNEL32: SetProcessShutdownParameters(%08xh,%08xh) not implemented.\n",
    2818            dwLevel,
    2819            dwFlags));
    2820 
    2821   return (FALSE);
    2822 }
    2823 
    2824 
    2825 /*****************************************************************************
    2826  * Name      : BOOL SetProcessWorkingSetSize
    2827  * Purpose   : The SetProcessWorkingSetSize function sets the minimum and
    2828  *             maximum working set sizes for a specified process.
    2829  *             The working set of a process is the set of memory pages currently
    2830  *             visible to the process in physical RAM memory. These pages are
    2831  *             resident and available for an application to use without triggering
    2832  *             a page fault. The size of the working set of a process is specified
    2833  *             in bytes. The minimum and maximum working set sizes affect the
    2834  *             virtual memory paging behavior of a process.
    2835  * Parameters: HANDLE hProcess                open handle to the process of interest
    2836  *             DWORD  dwMinimumWorkingSetSize specifies minimum working set size
    2837  *             DWORD  dwMaximumWorkingSetSize specifies maximum working set size
    2838  * Variables :
    2839  * Result    : TRUE / FALSE
    2840  * Remark    :
    2841  * Status    : UNTESTED STUB
    2842  *
    2843  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    2844  *****************************************************************************/
    2845 
    2846 BOOL WIN32API SetProcessWorkingSetSize(HANDLE hProcess,
    2847                                           DWORD  dwMinimumWorkingSetSize,
    2848                                           DWORD  dwMaximumWorkingSetSize)
    2849 {
    2850   dprintf(("KERNEL32: SetProcessWorkingSetSize(%08xh,%08xh,%08xh) not implemented.\n",
    2851            hProcess,
    2852            dwMinimumWorkingSetSize,
    2853            dwMaximumWorkingSetSize));
    2854 
    2855   return (FALSE);
    2856 }
    2857 
    2858 
    28592739/*****************************************************************************
    28602740 * Name      : BOOL SetSystemPowerState
Note: See TracChangeset for help on using the changeset viewer.