Changeset 999


Ignore:
Timestamp:
5/7/2009 7:14:16 AM (6 years ago)
Author:
lowjoel
Message:

-Give slightly more intuitive parameter names
-Specify MarshalAs? for bool's
-Forgot to use the provided parameter in NetAPI.NetStatisticsGet?

Location:
branches/eraser6/Util
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Util/KernelAPI.cs

    r997 r999  
    129129        /// while the application is running. 
    130130        /// </summary> 
    131         /// <param name="esFlags">The thread's execution requirements. This parameter 
    132         /// can be one or more of the EXECUTION_STATE values.</param> 
     131        /// <param name="executionState">The thread's execution requirements. This 
     132        /// parameter can be one or more of the EXECUTION_STATE values.</param> 
    133133        /// <returns>If the function succeeds, the return value is the previous 
    134134        /// thread execution state. 
     
    178178        /// This function does not stop the screen saver from executing.  
    179179        /// </remarks> 
    180         public static ThreadExecutionState SetThreadExecutionState(ThreadExecutionState esFlags) 
     180        public static ThreadExecutionState SetThreadExecutionState( 
     181            ThreadExecutionState executionState) 
    181182        { 
    182183            return (ThreadExecutionState)NativeMethods.SetThreadExecutionState( 
    183                 (NativeMethods.EXECUTION_STATE)esFlags); 
     184                (NativeMethods.EXECUTION_STATE)executionState); 
    184185        } 
    185186 
  • branches/eraser6/Util/NetAPI.cs

    r994 r999  
    5555        { 
    5656            IntPtr netAPIStats = IntPtr.Zero; 
    57             string serviceName = "Lanman" + service.ToString(); ; 
    58             if (NativeMethods.NetStatisticsGet(server, serviceName, 0, 0, out netAPIStats) == 0) 
     57            string serviceName = "Lanman" + service.ToString(); 
     58            if (NativeMethods.NetStatisticsGet(server, serviceName, level, options, out netAPIStats) == 0) 
    5959            { 
    6060                try 
  • branches/eraser6/Util/ShellAPI.cs

    r998 r999  
    3333        /// Empties the recycle bin for the current user. 
    3434        /// </summary> 
    35         /// <param name="flags">The list of flags to pass to the shell regarding 
     35        /// <param name="options">The list of flags to pass to the shell regarding 
    3636        /// the user feedback, etc.</param> 
    37         public static void EmptyRecycleBin(EmptyRecycleBinFlags flags) 
     37        public static void EmptyRecycleBin(EmptyRecycleBinFlags options) 
    3838        { 
    3939            NativeMethods.SHEmptyRecycleBin(Form.ActiveForm.Handle, null, 
    40                 (NativeMethods.SHEmptyRecycleBinFlags)flags); 
     40                (NativeMethods.SHEmptyRecycleBinFlags)options); 
    4141        } 
    4242 
  • branches/eraser6/Util/UxThemeAPI.cs

    r998 r999  
    347347 
    348348            [DllImport("UxTheme.dll", CharSet = CharSet.Unicode)] 
     349            [return: MarshalAs(UnmanagedType.Bool)] 
    349350            public static extern bool IsThemeBackgroundPartiallyTransparent( 
    350351                SafeThemeHandle hTheme, int iPartId, int iStateId); 
Note: See TracChangeset for help on using the changeset viewer.