Changeset 10600

Show
Ignore:
Timestamp:
02/07/10 10:25:40 (7 months ago)
Author:
azawawi
Message:

Added proper POD documentation to Win32 functions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Util/Win32.pm

    r10598 r10600  
    4040my %Types = (); 
    4141 
    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 
     46Converts the specified path C<$path> to its long form. 
     47Returns undef for failure, or the long form of the specified path 
     48 
     49=cut 
     50 
    4851sub GetLongPathName { 
    4952 
     
    6972} 
    7073 
    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 
     78Move C<$file_to_recycle> to recycle bin 
     79Returns undef (failed), zero (aborted) or one (success) 
     80 
     81=cut 
     82 
    7683sub Recycle { 
    7784 
     
    118125} 
    119126 
     127=head2 C<AllowSetForegroundWindow> 
     128 
     129  Padre::Util::Win32::AllowSetForegroundWindow($pid); 
     130 
     131Enables the specified process C<$pid> to set the foreground window 
     132via C<SetForegroundWindow> 
     133 
     134L<http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx> 
     135 
     136=cut 
     137 
    120138# 
    121139# Enables the specified process to set the foreground window 
     
    136154} 
    137155 
    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 
     160Execute a background process and wait for it to end 
     161If you set Show to 0, then you have an invisible command line window on win32! 
     162 
     163=cut 
     164 
    142165sub ExecuteProcessAndWait { 
    143166        die "Win32 function called!" unless Padre::Constant::WIN32; 
     
    212235} 
    213236 
    214 # 
    215 # Retrieves the current process memory size in bytes 
    216 # 
     237=head2 C<GetCurrentProcessMemorySize> 
     238 
     239  Padre::Util::Win32::GetCurrentProcessMemorySize; 
     240 
     241Returns the current process memory size in bytes 
     242 
     243=cut 
     244 
    217245sub GetCurrentProcessMemorySize { 
    218246