Changeset 10600
- Timestamp:
- 02/07/10 10:25:40 (7 months ago)
- Files:
-
- 1 modified
-
trunk/Padre/lib/Padre/Util/Win32.pm (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Util/Win32.pm
r10598 r10600 40 40 my %Types = (); 41 41 42 # 43 # Converts the specified path to its long form. 44 # 45 # Needs a path string 46 # Returns undef for failure, or the long form of the specified path 47 # 42 =head2 C<GetLongPathName> 43 44 Padre::Util::Win32::GetLongPathName($path); 45 46 Converts the specified path C<$path> to its long form. 47 Returns undef for failure, or the long form of the specified path 48 49 =cut 50 48 51 sub GetLongPathName { 49 52 … … 69 72 } 70 73 71 # 72 # Move to recycle bin 73 # 74 # Returns undef (failed), zero (aborted) or one (success) 75 # 74 =head2 C<Recycle> 75 76 Padre::Util::Win32::Recycle($file_to_recycle); 77 78 Move C<$file_to_recycle> to recycle bin 79 Returns undef (failed), zero (aborted) or one (success) 80 81 =cut 82 76 83 sub Recycle { 77 84 … … 118 125 } 119 126 127 =head2 C<AllowSetForegroundWindow> 128 129 Padre::Util::Win32::AllowSetForegroundWindow($pid); 130 131 Enables the specified process C<$pid> to set the foreground window 132 via C<SetForegroundWindow> 133 134 L<http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx> 135 136 =cut 137 120 138 # 121 139 # Enables the specified process to set the foreground window … … 136 154 } 137 155 138 # 139 # Execute a background process and wait for it to end 140 # If you set Show to 0, then you have an invisible command line window on win32! 141 # 156 =head2 C<ExecuteProcessAndWait> 157 158 Padre::Util::Win32::ExecuteProcessAndWait; 159 160 Execute a background process and wait for it to end 161 If you set Show to 0, then you have an invisible command line window on win32! 162 163 =cut 164 142 165 sub ExecuteProcessAndWait { 143 166 die "Win32 function called!" unless Padre::Constant::WIN32; … … 212 235 } 213 236 214 # 215 # Retrieves the current process memory size in bytes 216 # 237 =head2 C<GetCurrentProcessMemorySize> 238 239 Padre::Util::Win32::GetCurrentProcessMemorySize; 240 241 Returns the current process memory size in bytes 242 243 =cut 244 217 245 sub GetCurrentProcessMemorySize { 218 246
