~ubuntu-branches/ubuntu/maverick/librapi2/maverick

« back to all changes in this revision

Viewing changes to tests/rapi/CeGetSpecialFolderPath.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Volker Christian
  • Date: 2004-03-25 15:38:55 UTC
  • Revision ID: james.westby@ubuntu.com-20040325153855-bcjmhydo8rufdgsv
Tags: upstream-0.8.9
ImportĀ upstreamĀ versionĀ 0.8.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "test.h"
 
2
 
 
3
int main()
 
4
{
 
5
        VERIFY_HRESULT(CeRapiInit());
 
6
 
 
7
        WCHAR buffer[MAX_PATH];
 
8
        DWORD length;
 
9
        
 
10
        // XXX: CSIDL_DESKTOPDIRECTORY does not work, but that's probably OK
 
11
        //TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_DESKTOPDIRECTORY, MAX_PATH, buffer));
 
12
 
 
13
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_FAVORITES, MAX_PATH, buffer));
 
14
        printf("CSIDL_FAVORITES: %s\n", from_unicode(buffer));
 
15
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_FONTS, MAX_PATH, buffer));
 
16
        printf("CSIDL_FONTS: %s\n", from_unicode(buffer));
 
17
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_PERSONAL, MAX_PATH, buffer));
 
18
        printf("CSIDL_PERSONAL: %s\n", from_unicode(buffer));
 
19
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_PROGRAMS, MAX_PATH, buffer));
 
20
        printf("CSIDL_PROGRAMS: %s\n", from_unicode(buffer));
 
21
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_RECENT, MAX_PATH, buffer));
 
22
        printf("CSIDL_RECENT: %s\n", from_unicode(buffer));
 
23
        TEST_NOT_FALSE(length = CeGetSpecialFolderPath(CSIDL_STARTUP, MAX_PATH, buffer));
 
24
        printf("CSIDL_STARTUP: %s\n", from_unicode(buffer));
 
25
        
 
26
        VERIFY_HRESULT(CeRapiUninit());
 
27
        return TEST_SUCCEEDED;
 
28
}
 
29