mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
MAPIEx: Modified interface and added doc.
git-svn-id: svn://ultimatepp.org/upp/trunk@3399 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a0c02fe485
commit
b16161ec11
31 changed files with 894 additions and 334 deletions
|
|
@ -349,7 +349,7 @@ bool MAPIEx::OpenFolder(unsigned long ulFolderID, MAPIFolder& folder) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool MAPIEx::OpenFolder(const String folderName, MAPIFolder &folder) {
|
||||
bool MAPIEx::OpenFolder(const String &folderName, MAPIFolder &folder) {
|
||||
MAPIFolder root;
|
||||
if(OpenRootFolder(root))
|
||||
root.OpenSubFolder(folderName, folder);
|
||||
|
|
@ -660,7 +660,7 @@ bool MAPIEx::GetExEmail(SBinary entryID, String& strEmail) {
|
|||
return bResult;
|
||||
}
|
||||
|
||||
void MAPIEx::GetSystemTime(SYSTEMTIME& tm, int wYear, int wMonth, int wDay, int wHour,
|
||||
void MAPIEx::SetSystemTime(SYSTEMTIME& tm, int wYear, int wMonth, int wDay, int wHour,
|
||||
int wMinute, int wSecond, int wMilliSeconds) {
|
||||
tm.wYear = (WORD)wYear;
|
||||
tm.wMonth = (WORD)wMonth;
|
||||
|
|
@ -671,3 +671,19 @@ void MAPIEx::GetSystemTime(SYSTEMTIME& tm, int wYear, int wMonth, int wDay, int
|
|||
tm.wMilliseconds= (WORD)wMilliSeconds;
|
||||
tm.wDayOfWeek = 0;
|
||||
}
|
||||
|
||||
void MAPIEx::SetSystemTime(SYSTEMTIME& tm, const Time &t) {
|
||||
tm.wYear = t.year;
|
||||
tm.wMonth = t.month;
|
||||
tm.wDay = t.day;
|
||||
tm.wHour = t.hour;
|
||||
tm.wMinute = t.minute;
|
||||
tm.wSecond = t.second;
|
||||
tm.wMilliseconds = 0;
|
||||
tm.wDayOfWeek = 0;
|
||||
}
|
||||
|
||||
Time MAPIEx::GetSystemTime(SYSTEMTIME& tm) {
|
||||
return Time(tm.wYear, tm.wMonth, tm.wDay, tm.wHour, tm.wMinute, tm.wSecond);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue