OSDN Git Service

Remove IBugTraqProvider intermediate files from repository
[tortoisegit/TortoiseGitJp.git] / src / crashrpt / Utility.h
1 ///////////////////////////////////////////////////////////////////////////////\r
2 //\r
3 //  Module: Utility.h\r
4 //\r
5 //    Desc: Misc static helper methods\r
6 //\r
7 // Copyright (c) 2003 Michael Carruth\r
8 //\r
9 ///////////////////////////////////////////////////////////////////////////////\r
10 \r
11 #pragma once\r
12 \r
13 #include "stdafx.h"\r
14 \r
15 \r
16 ////////////////////////////// Class Definitions /////////////////////////////\r
17 \r
18 // ===========================================================================\r
19 // CUtility\r
20 // \r
21 // See the module comment at top of file.\r
22 //\r
23 namespace CUtility \r
24 {\r
25 \r
26         BSTR AllocSysString(string s);\r
27 \r
28    //-----------------------------------------------------------------------------\r
29    // getLastWriteFileTime\r
30    //    Returns the time the file was last modified in a FILETIME structure.\r
31    //\r
32    // Parameters\r
33    //    sFile       Fully qualified file name\r
34    //\r
35    // Return Values\r
36    //    FILETIME structure\r
37    //\r
38    // Remarks\r
39    //\r
40    FILETIME \r
41    getLastWriteFileTime(\r
42       string sFile\r
43       );\r
44    FILETIME\r
45            getLastWriteFileTime(\r
46            WCHAR * wszFile\r
47            );\r
48    //-----------------------------------------------------------------------------\r
49    // getAppName\r
50    //    Returns the application module's file name\r
51    //\r
52    // Parameters\r
53    //    none\r
54    //\r
55    // Return Values\r
56    //    File name of the executable\r
57    //\r
58    // Remarks\r
59    //    none\r
60    //\r
61    string \r
62    getAppName();\r
63 \r
64    //-----------------------------------------------------------------------------\r
65    // getSaveFileName\r
66    //    Presents the user with a save as dialog and returns the name selected.\r
67    //\r
68    // Parameters\r
69    //    none\r
70    //\r
71    // Return Values\r
72    //    Name of the file to save to, or "" if the user cancels.\r
73    //\r
74    // Remarks\r
75    //    none\r
76    //\r
77    string \r
78    getSaveFileName();\r
79         \r
80    //-----------------------------------------------------------------------------\r
81    // getTempFileName\r
82    //    Returns a generated temporary file name\r
83    //\r
84    // Parameters\r
85    //    none\r
86    //\r
87    // Return Values\r
88    //    Temporary file name\r
89    //\r
90    // Remarks\r
91    //\r
92    string \r
93    getTempFileName();\r
94 };\r
95 \r