File Index Symbol Index

/******************************************************************************** * * * ProcessEnv.h -- ApiSet Contract for api-ms-win-core-processenvironment-l1 * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ********************************************************************************/
#ifdef _MSC_VER
#pragma once
#endif // _MSC_VER
#ifndef _PROCESSENV_
#define _PROCESSENV_
#include <apiset.h>
#include <apisetcconv.h>
#include <minwindef.h>
#ifdef __cplusplus
extern
"C"
{
#endif
#pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
BOOL
SetEnvironmentStringsW
( );
#ifdef UNICODE
#define SetEnvironmentStrings SetEnvironmentStringsW #endif
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
#pragma endregion #pragma region PC Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP | WINAPI_PARTITION_SYSTEM)
HANDLE
GetStdHandle
( );
BOOL
SetStdHandle
( );
#if (_WIN32_WINNT >= 0x0600)
BOOL
SetStdHandleEx
( );
#endif // _WIN32_WINNT >= 0x0600
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP | WINAPI_PARTITION_SYSTEM)
#pragma endregion #pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
LPSTR
GetCommandLineA
( );
LPWSTR
GetCommandLineW
( );
#ifdef UNICODE
#define GetCommandLine GetCommandLineW
#else
#define GetCommandLine GetCommandLineA #endif // !UNICODE
_NullNull_terminated_
LPCH
GetEnvironmentStrings
( );
_NullNull_terminated_
LPWCH
GetEnvironmentStringsW
( );
#ifdef UNICODE
#define GetEnvironmentStrings GetEnvironmentStringsW
#else
#define GetEnvironmentStringsA GetEnvironmentStrings #endif // !UNICODE
BOOL
FreeEnvironmentStringsA
( );
BOOL
FreeEnvironmentStringsW
( );
#ifdef UNICODE
#define FreeEnvironmentStrings FreeEnvironmentStringsW
#else
#define FreeEnvironmentStrings FreeEnvironmentStringsA #endif // !UNICODE
_Success_(return != 0 && return < nSize)
DWORD
GetEnvironmentVariableA
( );
_Success_(return != 0 && return < nSize)
DWORD
GetEnvironmentVariableW
( );
#ifdef UNICODE
#define GetEnvironmentVariable GetEnvironmentVariableW
#else
#define GetEnvironmentVariable GetEnvironmentVariableA #endif // !UNICODE
BOOL
SetEnvironmentVariableA
( );
BOOL
SetEnvironmentVariableW
( );
#ifdef UNICODE
#define SetEnvironmentVariable SetEnvironmentVariableW
#else
#define SetEnvironmentVariable SetEnvironmentVariableA #endif // !UNICODE
_Success_(return != 0 && return <= nSize)
DWORD
ExpandEnvironmentStringsA
( );
_Success_(return != 0 && return <= nSize)
DWORD
ExpandEnvironmentStringsW
( );
#ifdef UNICODE
#define ExpandEnvironmentStrings ExpandEnvironmentStringsW
#else
#define ExpandEnvironmentStrings ExpandEnvironmentStringsA #endif // !UNICODE
BOOL
SetCurrentDirectoryA
( );
BOOL
SetCurrentDirectoryW
( );
#ifdef UNICODE
#define SetCurrentDirectory SetCurrentDirectoryW
#else
#define SetCurrentDirectory SetCurrentDirectoryA #endif // !UNICODE
_Success_(return != 0 && return < nBufferLength)
DWORD
GetCurrentDirectoryA
( );
_Success_(return != 0 && return < nBufferLength)
DWORD
GetCurrentDirectoryW
( );
#ifdef UNICODE
#define GetCurrentDirectory GetCurrentDirectoryW
#else
#define GetCurrentDirectory GetCurrentDirectoryA #endif // !UNICODE
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#pragma endregion #pragma region Desktop Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
DWORD
SearchPathW
( );
#ifdef UNICODE
#define SearchPath SearchPathW
#else
#define SearchPath SearchPathA #endif // !UNICODE
DWORD
SearchPathA
( );
#if _WIN32_WINNT >= 0x0502
BOOL
NeedCurrentDirectoryForExePathA
( );
BOOL
NeedCurrentDirectoryForExePathW
( );
#ifdef UNICODE
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathW
#else
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathA #endif // !UNICODE
#endif // _WIN32_WINNT >= 0x0502
#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
#pragma endregion
#ifdef __cplusplus
}
#endif
#endif // _PROCESSENV_