FreeRDP
environment.h File Reference
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
This graph shows which files directly or indirectly include this file:

Macros

#define GetCurrentDirectory   GetCurrentDirectoryA
 
#define SetCurrentDirectory   SetCurrentDirectoryA
 
#define SearchPath   SearchPathA
 
#define GetCommandLine   GetCommandLineA
 
#define NeedCurrentDirectoryForExePath   NeedCurrentDirectoryForExePathA
 
#define GetEnvironmentVariable   GetEnvironmentVariableA
 
#define SetEnvironmentVariable   SetEnvironmentVariableA
 
#define GetEnvironmentStringsA   GetEnvironmentStrings
 
#define SetEnvironmentStrings   SetEnvironmentStringsA
 
#define ExpandEnvironmentStrings   ExpandEnvironmentStringsA
 
#define FreeEnvironmentStrings   FreeEnvironmentStringsA
 

Functions

WINPR_API DWORD GetCurrentDirectoryA (DWORD nBufferLength, LPSTR lpBuffer)
 
WINPR_API DWORD GetCurrentDirectoryW (DWORD nBufferLength, LPWSTR lpBuffer)
 
WINPR_API BOOL SetCurrentDirectoryA (LPCSTR lpPathName)
 
WINPR_API BOOL SetCurrentDirectoryW (LPCWSTR lpPathName)
 
WINPR_API DWORD SearchPathA (LPCSTR lpPath, LPCSTR lpFileName, LPCSTR lpExtension, DWORD nBufferLength, LPSTR lpBuffer, LPSTR *lpFilePart)
 
WINPR_API DWORD SearchPathW (LPCWSTR lpPath, LPCWSTR lpFileName, LPCWSTR lpExtension, DWORD nBufferLength, LPWSTR lpBuffer, LPWSTR *lpFilePart)
 
WINPR_API LPSTR GetCommandLineA (VOID)
 
WINPR_API LPWSTR GetCommandLineW (VOID)
 
WINPR_API BOOL NeedCurrentDirectoryForExePathA (LPCSTR ExeName)
 
WINPR_API BOOL NeedCurrentDirectoryForExePathW (LPCWSTR ExeName)
 
WINPR_API DWORD GetEnvironmentVariableA (LPCSTR lpName, LPSTR lpBuffer, DWORD nSize)
 
WINPR_API DWORD GetEnvironmentVariableW (LPCWSTR lpName, LPWSTR lpBuffer, DWORD nSize)
 
WINPR_API BOOL SetEnvironmentVariableA (LPCSTR lpName, LPCSTR lpValue)
 
WINPR_API BOOL SetEnvironmentVariableW (LPCWSTR lpName, LPCWSTR lpValue)
 
WINPR_API BOOL FreeEnvironmentStringsA (LPCH lpszEnvironmentBlock)
 
WINPR_API BOOL FreeEnvironmentStringsW (LPWCH lpszEnvironmentBlock)
 
WINPR_API LPCH GetEnvironmentStrings (VOID)
 
WINPR_API LPWCH GetEnvironmentStringsW (VOID)
 
WINPR_API BOOL SetEnvironmentStringsA (LPCH NewEnvironment)
 
WINPR_API BOOL SetEnvironmentStringsW (LPWCH NewEnvironment)
 
WINPR_API DWORD ExpandEnvironmentStringsA (LPCSTR lpSrc, LPSTR lpDst, DWORD nSize)
 
WINPR_API DWORD ExpandEnvironmentStringsW (LPCWSTR lpSrc, LPWSTR lpDst, DWORD nSize)
 
WINPR_API LPCH MergeEnvironmentStrings (PCSTR original, PCSTR merge)
 
WINPR_API DWORD GetEnvironmentVariableEBA (LPCSTR envBlock, LPCSTR lpName, LPSTR lpBuffer, DWORD nSize)
 
WINPR_API BOOL SetEnvironmentVariableEBA (LPSTR *envBlock, LPCSTR lpName, LPCSTR lpValue)
 
WINPR_API char ** EnvironmentBlockToEnvpA (LPCH lpszEnvironmentBlock)
 
WINPR_API DWORD GetEnvironmentVariableX (const char *lpName, char *lpBuffer, DWORD nSize)
 
WINPR_API char * GetEnvAlloc (LPCSTR lpName)
 

Macro Definition Documentation

◆ ExpandEnvironmentStrings

#define ExpandEnvironmentStrings   ExpandEnvironmentStringsA

◆ FreeEnvironmentStrings

#define FreeEnvironmentStrings   FreeEnvironmentStringsA

◆ GetCommandLine

#define GetCommandLine   GetCommandLineA

◆ GetCurrentDirectory

#define GetCurrentDirectory   GetCurrentDirectoryA

◆ GetEnvironmentStringsA

#define GetEnvironmentStringsA   GetEnvironmentStrings

◆ GetEnvironmentVariable

#define GetEnvironmentVariable   GetEnvironmentVariableA

◆ NeedCurrentDirectoryForExePath

#define NeedCurrentDirectoryForExePath   NeedCurrentDirectoryForExePathA

◆ SearchPath

#define SearchPath   SearchPathA

◆ SetCurrentDirectory

#define SetCurrentDirectory   SetCurrentDirectoryA

◆ SetEnvironmentStrings

#define SetEnvironmentStrings   SetEnvironmentStringsA

◆ SetEnvironmentVariable

#define SetEnvironmentVariable   SetEnvironmentVariableA

Function Documentation

◆ EnvironmentBlockToEnvpA()

WINPR_API char** EnvironmentBlockToEnvpA ( LPCH  lpszEnvironmentBlock)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExpandEnvironmentStringsA()

WINPR_API DWORD ExpandEnvironmentStringsA ( LPCSTR  lpSrc,
LPSTR  lpDst,
DWORD  nSize 
)

◆ ExpandEnvironmentStringsW()

WINPR_API DWORD ExpandEnvironmentStringsW ( LPCWSTR  lpSrc,
LPWSTR  lpDst,
DWORD  nSize 
)

◆ FreeEnvironmentStringsA()

WINPR_API BOOL FreeEnvironmentStringsA ( LPCH  lpszEnvironmentBlock)

A brief history of the GetEnvironmentStrings functions: http://blogs.msdn.com/b/oldnewthing/archive/2013/01/17/10385718.aspx

◆ FreeEnvironmentStringsW()

WINPR_API BOOL FreeEnvironmentStringsW ( LPWCH  lpszEnvironmentBlock)

◆ GetCommandLineA()

WINPR_API LPSTR GetCommandLineA ( VOID  )

◆ GetCommandLineW()

WINPR_API LPWSTR GetCommandLineW ( VOID  )
Here is the caller graph for this function:

◆ GetCurrentDirectoryA()

WINPR_API DWORD GetCurrentDirectoryA ( DWORD  nBufferLength,
LPSTR  lpBuffer 
)

WinPR: Windows Portable Runtime Process Environment Functions

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2013 Thincast Technologies GmbH Copyright 2013 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

◆ GetCurrentDirectoryW()

WINPR_API DWORD GetCurrentDirectoryW ( DWORD  nBufferLength,
LPWSTR  lpBuffer 
)

◆ GetEnvAlloc()

WINPR_API char* GetEnvAlloc ( LPCSTR  lpName)

SHGetKnownFolderPath function: http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188/ XDG Base Directory Specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetEnvironmentStrings()

WINPR_API LPCH GetEnvironmentStrings ( VOID  )
Here is the caller graph for this function:

◆ GetEnvironmentStringsW()

WINPR_API LPWCH GetEnvironmentStringsW ( VOID  )

◆ GetEnvironmentVariableA()

WINPR_API DWORD GetEnvironmentVariableA ( LPCSTR  lpName,
LPSTR  lpBuffer,
DWORD  nSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetEnvironmentVariableEBA()

WINPR_API DWORD GetEnvironmentVariableEBA ( LPCSTR  envBlock,
LPCSTR  lpName,
LPSTR  lpBuffer,
DWORD  nSize 
)
Here is the caller graph for this function:

◆ GetEnvironmentVariableW()

WINPR_API DWORD GetEnvironmentVariableW ( LPCWSTR  lpName,
LPWSTR  lpBuffer,
DWORD  nSize 
)
Here is the call graph for this function:

◆ GetEnvironmentVariableX()

WINPR_API DWORD GetEnvironmentVariableX ( const char *  lpName,
char *  lpBuffer,
DWORD  nSize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MergeEnvironmentStrings()

WINPR_API LPCH MergeEnvironmentStrings ( PCSTR  original,
PCSTR  merge 
)
Here is the caller graph for this function:

◆ NeedCurrentDirectoryForExePathA()

WINPR_API BOOL NeedCurrentDirectoryForExePathA ( LPCSTR  ExeName)

◆ NeedCurrentDirectoryForExePathW()

WINPR_API BOOL NeedCurrentDirectoryForExePathW ( LPCWSTR  ExeName)

◆ SearchPathA()

WINPR_API DWORD SearchPathA ( LPCSTR  lpPath,
LPCSTR  lpFileName,
LPCSTR  lpExtension,
DWORD  nBufferLength,
LPSTR  lpBuffer,
LPSTR *  lpFilePart 
)

◆ SearchPathW()

WINPR_API DWORD SearchPathW ( LPCWSTR  lpPath,
LPCWSTR  lpFileName,
LPCWSTR  lpExtension,
DWORD  nBufferLength,
LPWSTR  lpBuffer,
LPWSTR *  lpFilePart 
)

◆ SetCurrentDirectoryA()

WINPR_API BOOL SetCurrentDirectoryA ( LPCSTR  lpPathName)

◆ SetCurrentDirectoryW()

WINPR_API BOOL SetCurrentDirectoryW ( LPCWSTR  lpPathName)

◆ SetEnvironmentStringsA()

WINPR_API BOOL SetEnvironmentStringsA ( LPCH  NewEnvironment)

◆ SetEnvironmentStringsW()

WINPR_API BOOL SetEnvironmentStringsW ( LPWCH  NewEnvironment)

◆ SetEnvironmentVariableA()

WINPR_API BOOL SetEnvironmentVariableA ( LPCSTR  lpName,
LPCSTR  lpValue 
)
Here is the caller graph for this function:

◆ SetEnvironmentVariableEBA()

WINPR_API BOOL SetEnvironmentVariableEBA ( LPSTR *  envBlock,
LPCSTR  lpName,
LPCSTR  lpValue 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEnvironmentVariableW()

WINPR_API BOOL SetEnvironmentVariableW ( LPCWSTR  lpName,
LPCWSTR  lpValue 
)