FreeRDP/winpr/libwinpr/path/test/TestPathShell.c

36 lines
788 B
C
Raw Normal View History

#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/tchar.h>
#include <winpr/winpr.h>
int TestPathShell(int argc, char* argv[])
{
char* path;
path = GetKnownPath(KNOWN_PATH_HOME);
printf("KNOWN_PATH_HOME: %s\n", path);
path = GetKnownPath(KNOWN_PATH_TEMP);
printf("KNOWN_PATH_TEMP: %s\n", path);
path = GetKnownPath(KNOWN_PATH_DATA);
printf("KNOWN_PATH_DATA: %s\n", path);
path = GetKnownPath(KNOWN_PATH_CONFIG);
printf("KNOWN_PATH_CONFIG: %s\n", path);
path = GetKnownPath(KNOWN_PATH_CACHE);
printf("KNOWN_PATH_CACHE: %s\n", path);
path = GetKnownPath(KNOWN_PATH_RUNTIME);
printf("KNOWN_PATH_RUNTIME: %s\n", path);
2013-03-22 23:52:43 +04:00
path = GetKnownSubPath(KNOWN_PATH_CONFIG, "freerdp");
printf("KNOWN_PATH_CONFIG SubPath: %s\n", path);
return 0;
}