commore  1.0.6-SNAPSHOT
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
System.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2006-2014 Raphael David / CANTOR
3 //
4 
5 #ifndef CMR_SYSTEM_INCLUDED
6 #define CMR_SYSTEM_INCLUDED
7 
8 #include "commore/Commore.h"
9 #include "commore/AString.h"
10 
11 #ifdef WIN32
12 #include <windows.h>
13 #endif
14 
15 namespace commore
16 {
17  //
18  CMREXD AString get_system_name();
19  //
20  // Get the complete program file path
21  //
22  CMREXD AString get_program_file_path();
23 
24  CMREXD AString get_program_name();
25  CMREXD bool set_program_name(const AChar* name);
26 
27 
28  CMREXD AString get_application_name();
29  CMREXD bool set_application_name(const AChar* name);
30 
31  CMREXD AString get_working_dir();
32 
33  //
36 
37  CMREXD unsigned long get_current_thread_id();
38  CMREXD unsigned long get_current_process_id();
39 
40 #ifdef WIN32
41  //
42  // Get window securiy attribute - no right
43  //
44  SECURITY_ATTRIBUTES* get_dummy_security_attribute();
45 #endif
46 
47 };
48 
49 
50 #endif
51 
CMREXD AString get_working_dir()
CMREXD AString get_program_file_path()
Definition: System.cpp:162
CMREXD AString get_last_system_error_text()
Definition: System.cpp:194
char AChar
Definition: Type.h:65
CMREXD unsigned long get_current_thread_id()
Definition: Thread.cpp:411
#define CMREXD
Definition: Compiler.h:22
CMREXD bool set_application_name(const AChar *name)
Definition: System.cpp:368
CMREXD AString get_program_name()
Definition: System.cpp:172
CMREXD bool set_program_name(const AChar *name)
Definition: System.cpp:344
CMREXD AString get_system_name()
Definition: System.cpp:149
CMREXD unsigned long get_current_process_id()
Definition: System.cpp:335
CMREXD AString get_application_name()
Definition: System.cpp:357
CMREXD int get_last_system_error_num()
Definition: System.cpp:188