1Padre::Util::Win32(3) User Contributed Perl DocumentationPadre::Util::Win32(3)
2
3
4

NAME

6       Padre::Util::Win32 - Padre Win32 Utility Functions
7

DESCRIPTION

9       The "Padre::Util::Win32" package is a internal storage area for
10       miscellaneous functions that aren't really Padre-specific that we want
11       to throw somewhere convenient so they won't clog up task-specific
12       packages.
13
14       All functions are exportable and documented for maintenance purposes,
15       but except for in the Padre core distribution you are discouraged in
16       the strongest possible terms from using these functions, as they may be
17       moved, removed or changed at any time without notice.
18

FUNCTIONS

20   "GetLongPathName"
21         Padre::Util::Win32::GetLongPathName($path);
22
23       Converts the specified path $path to its long form.  Returns "undef"
24       for failure, or the long form of the specified path
25
26   "Recycle"
27         Padre::Util::Win32::Recycle($file_to_recycle);
28
29       Move $file_to_recycle to recycle bin Returns "undef" (failed), zero
30       (aborted) or one (success)
31
32   "AllowSetForegroundWindow"
33         Padre::Util::Win32::AllowSetForegroundWindow($pid);
34
35       Enables the specified process $pid to set the foreground window via
36       "SetForegroundWindow"
37
38       http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx
39       <http://msdn.microsoft.com/en-us/library/ms633539(VS.85).aspx>
40
41   "ExecuteProcessAndWait"
42         Padre::Util::Win32::ExecuteProcessAndWait(
43               directory  => $directory,
44               file       => $file,
45               parameters => $parameters,
46               show       => $show)
47
48       Execute a background process named "$file $parameters" with the current
49       directory set to $directory and wait for it to end. If you set $show to
50       0, then you have an invisible command line window on win32!
51
52   "GetCurrentProcessMemorySize"
53         Padre::Util::Win32::GetCurrentProcessMemorySize;
54
55       Returns the current process memory size in bytes
56
57   "GetLastError"
58         Padre::Util::Win32::GetLastError;
59
60       Returns the error code of the last Win32 API call.
61
62       The list of error codes could be found at
63       http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx
64       <http://msdn.microsoft.com/en-us/library/ms681381(VS.85).aspx>.
65
67       Copyright 2008-2010 The Padre development team as listed in Padre.pm.
68
69       This program is free software; you can redistribute it and/or modify it
70       under the same terms as Perl itself.
71
72       The full text of the license can be found in the LICENSE file included
73       with this module.
74
75
76
77perl v5.12.1                      2010-06-11             Padre::Util::Win32(3)
Impressum