FreeRDP
TestPathCchStripPrefix.c File Reference
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/tchar.h>
#include <winpr/winpr.h>

Functions

int TestPathCchStripPrefix (int argc, char *argv[])
 

Variables

static const TCHAR testPathPrefixFileNamespace [] = _T("\\\\?\\C:\\Program Files\\")
 
static const TCHAR testPathNoPrefixFileNamespace [] = _T("C:\\Program Files\\")
 
static const TCHAR testPathPrefixFileNamespaceMinimum [] = _T("\\\\?\\C:")
 
static const TCHAR testPathNoPrefixFileNamespaceMinimum [] = _T("C:")
 
static const TCHAR testPathPrefixDeviceNamespace [] = _T("\\\\?\\GLOBALROOT")
 

Function Documentation

int TestPathCchStripPrefix ( int  argc,
char *  argv[] 
)

PathCchStripPrefix returns S_OK if the prefix was removed, S_FALSE if the path did not have a prefix to remove, or an HRESULT failure code.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const TCHAR testPathNoPrefixFileNamespace[] = _T("C:\\Program Files\\")
static
const TCHAR testPathNoPrefixFileNamespaceMinimum[] = _T("C:")
static
const TCHAR testPathPrefixDeviceNamespace[] = _T("\\\\?\\GLOBALROOT")
static
const TCHAR testPathPrefixFileNamespace[] = _T("\\\\?\\C:\\Program Files\\")
static
const TCHAR testPathPrefixFileNamespaceMinimum[] = _T("\\\\?\\C:")
static