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

◆ TestPathCchStripPrefix()

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.

Variable Documentation

◆ testPathNoPrefixFileNamespace

const TCHAR testPathNoPrefixFileNamespace[] = _T("C:\\Program Files\\")
static

◆ testPathNoPrefixFileNamespaceMinimum

const TCHAR testPathNoPrefixFileNamespaceMinimum[] = _T("C:")
static

◆ testPathPrefixDeviceNamespace

const TCHAR testPathPrefixDeviceNamespace[] = _T("\\\\?\\GLOBALROOT")
static

◆ testPathPrefixFileNamespace

const TCHAR testPathPrefixFileNamespace[] = _T("\\\\?\\C:\\Program Files\\")
static

◆ testPathPrefixFileNamespaceMinimum

const TCHAR testPathPrefixFileNamespaceMinimum[] = _T("\\\\?\\C:")
static