ReactOS  0.4.14-dev-49-gfb4591c
kernel32.h
Go to the documentation of this file.
1 #pragma once
2 
3 //
4 // Kernel32 Filter IDs
5 //
6 #define kernel32file 200
7 #define kernel32ver 201
8 #define actctx 202
9 #define resource 203
10 #define kernel32session 204
11 #define comm 205
12 #define profile 206
13 #define nls 207
14 
15 
16 #if DBG
17 #define DEBUG_CHANNEL(ch) static ULONG gDebugChannel = ch;
18 #else
19 #define DEBUG_CHANNEL(ch)
20 #endif
21 
22 #define TRACE(fmt, ...) TRACE__(gDebugChannel, fmt, ##__VA_ARGS__)
23 #define WARN(fmt, ...) WARN__(gDebugChannel, fmt, ##__VA_ARGS__)
24 #define FIXME(fmt, ...) WARN__(gDebugChannel, fmt,## __VA_ARGS__)
25 #define ERR(fmt, ...) ERR__(gDebugChannel, fmt, ##__VA_ARGS__)
26 
27 #define STUB \
28  SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
29  DPRINT1("%s() is UNIMPLEMENTED!\n", __FUNCTION__)
30 
31 #define debugstr_a
32 #define debugstr_w
33 #define debugstr_wn
34 #define wine_dbgstr_w
35 #define debugstr_guid
36 
37 #include "wine/unicode.h"
38 #include "baseheap.h"
39 
40 #define MAGIC(c1,c2,c3,c4) ((c1) + ((c2)<<8) + ((c3)<<16) + ((c4)<<24))
41 
42 #define MAGIC_HEAP MAGIC( 'H','E','A','P' )
43 
44 #define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b))
45 #define ROUNDDOWN(a,b) (((a)/(b))*(b))
46 
47 #define ROUND_DOWN(n, align) \
48  (((ULONG)n) & ~((align) - 1l))
49 
50 #define ROUND_UP(n, align) \
51  ROUND_DOWN(((ULONG)n) + (align) - 1, (align))
52 
53 #define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
54 
55 #define __TRY _SEH2_TRY
56 #define __EXCEPT_PAGE_FAULT _SEH2_EXCEPT(_SEH2_GetExceptionCode() == STATUS_ACCESS_VIOLATION)
57 #define __ENDTRY _SEH2_END
58 
59 /* Undocumented CreateProcess flag */
60 #define STARTF_SHELLPRIVATE 0x400
61 
62 typedef struct _CODEPAGE_ENTRY
63 {
70 
71 typedef struct tagLOADPARMS32
72 {
78 } LOADPARMS32;
79 
81 {
90 
92 {
98 
99 typedef struct _BASEP_ACTCTX_BLOCK
100 {
106 
107 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_ERROR 1
108 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_SUCCESS 2
109 #define BASEP_GET_MODULE_HANDLE_EX_PARAMETER_VALIDATION_CONTINUE 3
110 
112 
113 typedef
114 DWORD
117  DWORD dwMilliseconds);
118 
120 
121 /* Flags for PrivCopyFileExW && BasepCopyFileExW */
122 #define BASEP_COPY_METADATA 0x10
123 #define BASEP_COPY_SACL 0x20
124 #define BASEP_COPY_OWNER_AND_GROUP 0x40
125 #define BASEP_COPY_DIRECTORY 0x80
126 #define BASEP_COPY_BACKUP_SEMANTICS 0x100
127 #define BASEP_COPY_REPLACE 0x200
128 #define BASEP_COPY_SKIP_DACL 0x400
129 #define BASEP_COPY_PUBLIC_MASK 0xF
130 #define BASEP_COPY_BASEP_MASK 0xFFFFFFF0
131 
132 /* Flags for PrivMoveFileIdentityW */
133 #define PRIV_DELETE_ON_SUCCESS 0x1
134 #define PRIV_ALLOW_NON_TRACKABLE 0x2
135 
136 /* GLOBAL VARIABLES **********************************************************/
137 
138 extern BOOL bIsFileApiAnsi;
139 extern HMODULE hCurrentModule;
140 
142 
147 
149 
151 
153 
154 /* FUNCTION PROTOTYPES *******************************************************/
155 
156 VOID
157 NTAPI
159 
160 PTEB GetTeb(VOID);
161 
164 
165 DWORD FilenameW2A_FitOrFail(LPSTR DestA, INT destLen, LPCWSTR SourceW, INT sourceLen);
166 DWORD FilenameU2A_FitOrFail(LPSTR DestA, INT destLen, PUNICODE_STRING SourceU);
167 
168 #define HeapAlloc RtlAllocateHeap
169 #define HeapReAlloc RtlReAllocateHeap
170 #define HeapFree RtlFreeHeap
171 #define _lread(a, b, c) (long)(_hread(a, b, (long)c))
172 
174 WINAPI
176  IN DWORD dwMilliseconds);
177 
179 WINAPI
181  IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL,
183 
184 NTSTATUS
185 WINAPI
188  _In_opt_ SIZE_T StackCommit,
189  _In_opt_ SIZE_T StackReserve,
190  _Out_ PINITIAL_TEB InitialTeb);
191 
192 VOID
193 WINAPI
196  _In_ PINITIAL_TEB InitialTeb);
197 
198 VOID
199 WINAPI
202  IN PVOID StartAddress,
203  IN PVOID StackAddress,
205 
206 VOID
207 WINAPI
209 
210 VOID
211 WINAPI
213 
214 VOID
215 NTAPI
217  IN PBASEP_ACTCTX_BLOCK ActivationBlock
218 );
219 
220 NTSTATUS
221 NTAPI
223  IN DWORD Flags,
226  OUT PBASEP_ACTCTX_BLOCK *ActivationBlock
227 );
228 
229 NTSTATUS
230 NTAPI
232  IN PVOID DllHandle,
234  OUT PVOID *ActCtx
235 );
236 
237 __declspec(noreturn)
238 VOID
239 WINAPI
240 BaseThreadStartup(LPTHREAD_START_ROUTINE lpStartAddress,
242 
243 __declspec(noreturn)
244 VOID
245 WINAPI
246 BaseFiberStartup(VOID);
247 
249 
250 VOID
251 WINAPI
253 
254 PVOID
255 WINAPI
257 
258 VOID
259 WINAPI
262 
264 WINAPI
266 
267 BOOLEAN
268 WINAPI
270  IN LPCSTR String);
271 
275 
277 
281 
283 
284 ULONG
285 NTAPI
287 
288 ULONG
289 NTAPI
291 
296 
299 
300 HANDLE
301 WINAPI
303 
304 NTSTATUS
305 WINAPI
306 BasepMapFile(IN LPCWSTR lpApplicationName,
309 
311 IntGetCodePageEntry(UINT CodePage);
312 
313 LPWSTR
314 WINAPI
316  IN LPWSTR FullPath,
318 );
319 
320 LPWSTR
321 WINAPI
323  IN LPWSTR FullPath
324 );
325 
326 ULONG
327 WINAPI
329  IN PUNICODE_STRING PathName,
331 );
332 
333 NTSTATUS
334 WINAPI
339  IN USHORT ExeType,
342  IN PVOID* SxsData,
345 );
346 
347 BOOLEAN
348 WINAPI
350  VOID
351 );
352 
353 VOID
354 WINAPI
356 
357 DWORD
358 WINAPI
360 
361 VOID
362 NTAPI
364  IN PVOID Context,
365  OUT BOOLEAN *StopEnumeration);
366 
367 typedef NTSTATUS
370  IN ULONG CertFlag
371 );
372 
373 typedef NTSTATUS
376 );
377 
378 typedef NTSTATUS
380  IN HANDLE Token,
381  IN HANDLE Process,
383 );
384 
385 typedef struct _BASEP_APPCERT_ENTRY
386 {
391 
392 typedef struct _BASE_MSG_SXS_HANDLES
393 {
399 
401 {
405 
407 {
412 
413 NTSTATUS
414 NTAPI
420  IN PVOID Context,
422 );
423 
426 
427 VOID
428 WINAPI
432 );
433 
434 BOOL
436  IN LPCWSTR lpExistingFileName,
437  IN LPCWSTR lpNewFileName,
438  IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL,
439  IN LPVOID lpData OPTIONAL,
440  IN LPBOOL pbCancel OPTIONAL,
441  IN DWORD dwCopyFlags,
442  IN DWORD dwBasepFlags,
443  OUT LPHANDLE lpExistingHandle,
444  OUT LPHANDLE lpNewHandle
445 );
446 
447 BOOL
449  IN LPCWSTR lpszMountPoint,
450  OUT LPWSTR lpszVolumeName,
451  IN DWORD cchBufferLength,
452  OUT LPBOOL IsAMountPoint
453 );
454 
455 BOOL
457  IN LPCWSTR lpszMountPoint,
458  OUT LPWSTR lpszVolumeName,
459  IN DWORD cchBufferLength,
460  OUT LPBOOL IsAMountPoint
461 );
462 
463 BOOL
466  IN PUNICODE_STRING NtPathName
467 );
468 
469 /* FIXME: This is EXPORTED! It should go in an external kernel32.h header */
470 VOID
471 WINAPI
473  IN PVOID AppCompatData,
474  IN PVOID AppCompatSxsData
475 );
476 
477 NTSTATUS
478 WINAPI
480  IN HANDLE UserToken,
483  OUT PBOOLEAN InJob,
484  OUT PHANDLE NewToken,
485  OUT PHANDLE JobHandle
486 );
UNICODE_STRING BaseWindowsSystemDirectory
Definition: path.c:20
DWORD FilenameW2A_FitOrFail(LPSTR DestA, INT destLen, LPCWSTR SourceW, INT sourceLen)
Definition: fileinfo.c:102
CONST WCHAR * PCWCH
Definition: ntbasedef.h:418
UNICODE_STRING BaseWindowsDirectory
Definition: path.c:20
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
HANDLE WINAPI BaseGetNamedObjectDirectory(VOID)
Definition: utils.c:63
const uint16_t * PCWSTR
Definition: typedefs.h:55
PVOID PVOID PWCHAR PVOID Environment
Definition: env.c:45
#define IN
Definition: typedefs.h:38
VOID WINAPI BasepFreeAppCompatData(IN PVOID AppCompatData, IN PVOID AppCompatSxsData)
Definition: appcache.c:342
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID PULONG PULONG FusionFlags
Definition: env.c:45
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
Definition: winbase.h:707
NTSTATUS NTAPI BasepProbeForDllManifest(IN PVOID DllHandle, IN PCWSTR FullDllName, OUT PVOID *ActCtx)
Definition: actctx.c:136
NTSTATUS NTAPI BasepAllocateActivationContextActivationBlock(IN DWORD Flags, IN PVOID CompletionRoutine, IN PVOID CompletionContext, OUT PBASEP_ACTCTX_BLOCK *ActivationBlock)
Definition: actctx.c:45
PRTL_CONVERT_STRINGA BasepUnicodeStringTo8BitString
Definition: utils.c:27
NTSTATUS WINAPI BasepCheckWinSaferRestrictions(IN HANDLE UserToken, IN LPWSTR ApplicationName, IN HANDLE FileHandle, OUT PBOOLEAN InJob, OUT PHANDLE NewToken, OUT PHANDLE JobHandle)
Definition: utils.c:919
*BytesInUnicodeString PWCH UnicodeString
Definition: rtlfuncs.h:1980
ULONG(NTAPI * PRTL_COUNT_STRINGA)(IN PANSI_STRING UnicodeString)
Definition: kernel32.h:282
BOOL BasepCopyFileExW(IN LPCWSTR lpExistingFileName, IN LPCWSTR lpNewFileName, IN LPPROGRESS_ROUTINE lpProgressRoutine OPTIONAL, IN LPVOID lpData OPTIONAL, IN LPBOOL pbCancel OPTIONAL, IN DWORD dwCopyFlags, IN DWORD dwBasepFlags, OUT LPHANDLE lpExistingHandle, OUT LPHANDLE lpNewHandle)
Definition: copy.c:202
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
LARGE_INTEGER ViewBase
Definition: kernel32.h:397
PBASEP_APPCERT_PLUGIN_FUNC fPluginCertFunc
Definition: kernel32.h:389
BOOL IsThisARootDirectory(IN HANDLE VolumeHandle, IN PUNICODE_STRING NtPathName)
Definition: volume.c:154
LPSTR lpCmdLine
Definition: kernel32.h:74
LPSTR lpEnvAddress
Definition: kernel32.h:73
uint16_t * PWSTR
Definition: typedefs.h:54
VOID WINAPI BaseMarkFileForDelete(IN HANDLE FileHandle, IN ULONG FileAttributes)
Definition: utils.c:874
PRTL_COUNT_STRING BasepUnicodeStringTo8BitSize
Definition: utils.c:28
_In_ PCWSTR _In_z_ PCWSTR _In_ ULONG ValueType
Definition: rtlfuncs.h:4016
LONG NTSTATUS
Definition: precomp.h:26
ULONG WINAPI BaseIsDosApplication(IN PUNICODE_STRING PathName, IN NTSTATUS Status)
Definition: vdm.c:66
RTL_CRITICAL_SECTION gcsAppCert
Definition: proc.c:29
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID _Out_ PHANDLE Token
NTSTATUS(NTAPI * PRTL_CONVERT_STRING)(IN PUNICODE_STRING UnicodeString, IN PANSI_STRING AnsiString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:272
PLDR_DATA_TABLE_ENTRY BasepExeLdrEntry
Definition: proc.c:25
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
NTSTATUS WINAPI BaseCreateStack(_In_ HANDLE hProcess, _In_opt_ SIZE_T StackCommit, _In_opt_ SIZE_T StackReserve, _Out_ PINITIAL_TEB InitialTeb)
Definition: utils.c:354
NTSTATUS(NTAPI * PBASEP_APPCERT_PLUGIN_FUNC)(IN LPWSTR ApplicationName, IN ULONG CertFlag)
Definition: kernel32.h:368
static WCHAR String[]
Definition: stringtable.c:55
uint16_t * PWCHAR
Definition: typedefs.h:54
DWORD(* WaitForInputIdleType)(HANDLE hProcess, DWORD dwMilliseconds)
Definition: kernel32.h:115
_In_ PVOID _Out_opt_ PULONG_PTR _Outptr_opt_ PCUNICODE_STRING * ObjectName
Definition: cmfuncs.h:62
_In_ PVOID Parameter
Definition: ldrtypes.h:241
Definition: kernel32.h:385
char * LPSTR
Definition: xmlstorage.h:182
WORD wMagicValue
Definition: kernel32.h:75
PRTL_CONVERT_STRING Basep8BitStringToUnicodeString
Definition: utils.c:26
struct _SXS_OVERRIDE_MANIFEST * PSXS_OVERRIDE_MANIFEST
#define FASTCALL
Definition: nt_native.h:50
PLARGE_INTEGER WINAPI BaseFormatTimeOut(OUT PLARGE_INTEGER Timeout, IN DWORD dwMilliseconds)
Definition: utils.c:288
LIST_ENTRY Entry
Definition: kernel32.h:387
#define DWORD
Definition: nt_native.h:44
WaitForInputIdleType UserWaitForInputIdleRoutine
Definition: proc.c:20
int32_t INT
Definition: typedefs.h:56
#define _In_opt_
Definition: no_sal2.h:213
RTL_CRITICAL_SECTION BaseDllDirectoryLock
Definition: dllmain.c:32
BOOLEAN WINAPI Basep8BitStringToDynamicUnicodeString(OUT PUNICODE_STRING UnicodeString, IN LPCSTR String)
Definition: utils.c:225
struct _CODEPAGE_ENTRY CODEPAGE_ENTRY
HANDLE BaseNamedObjectDirectory
Definition: dllmain.c:24
_In_ PUNICODE_STRING ValueName
Definition: cmfuncs.h:264
HANDLE FileHandle
Definition: stats.c:38
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID WINAPI BaseInitializeContext(IN PCONTEXT Context, IN PVOID Parameter, IN PVOID StartAddress, IN PVOID StackAddress, IN ULONG ContextType)
Definition: utils.c:513
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
HMODULE hCurrentModule
Definition: dllmain.c:25
unsigned int BOOL
Definition: ntddk_ex.h:94
PRTL_COUNT_STRINGA Basep8BitStringToUnicodeSize
Definition: utils.c:29
PVOID CompletionContext
Definition: kernel32.h:103
LIST_ENTRY BasepAppCertDllsList
Definition: proc.c:28
UINT CodePage
Definition: kernel32.h:65
_Unreferenced_parameter_ PVOID * CompletionContext
Definition: cdprocs.h:1130
SYSTEM_BASIC_INFORMATION BaseCachedSysInfo
unsigned char BOOLEAN
DWORD WINAPI BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:166
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:4004
PVOID ActivationContext
Definition: kernel32.h:102
PCODEPAGE_ENTRY FASTCALL IntGetCodePageEntry(UINT CodePage)
Definition: nls.c:196
struct _BASEP_ACTCTX_BLOCK BASEP_ACTCTX_BLOCK
#define _Out_
Definition: no_sal2.h:323
const char * LPCSTR
Definition: xmlstorage.h:183
_In_ PCWSTR FullDllName
Definition: ldrtypes.h:247
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE _In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Out_ PIO_STATUS_BLOCK _In_opt_ PLARGE_INTEGER _In_ ULONG FileAttributes
Definition: fltkernel.h:1230
VOID NTAPI BaseDllInitializeMemoryManager(VOID)
Definition: heapmem.c:26
BOOL BasepGetVolumeNameForVolumeMountPoint(IN LPCWSTR lpszMountPoint, OUT LPWSTR lpszVolumeName, IN DWORD cchBufferLength, OUT LPBOOL IsAMountPoint)
Definition: mntpoint.c:398
LPWSTR WINAPI BaseComputeProcessExePath(IN LPWSTR FullPath)
Definition: path.c:405
LIST_ENTRY Entry
Definition: kernel32.h:64
struct _BASEP_ACTCTX_BLOCK * PBASEP_ACTCTX_BLOCK
VOID WINAPI BaseProcessStartup(PPROCESS_START_ROUTINE lpStartAddress)
Definition: proc.c:450
static DWORD LPDWORD LPCSTR DWORD srclen
Definition: directory.c:51
struct _SXS_OVERRIDE_MANIFEST SXS_OVERRIDE_MANIFEST
#define WINAPI
Definition: msvc.h:8
UNICODE_STRING Name
Definition: kernel32.h:388
struct _CODEPAGE_ENTRY * PCODEPAGE_ENTRY
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
NTSTATUS(NTAPI * PBASEP_APPCERT_EMBEDDED_FUNC)(IN LPWSTR ApplicationName)
Definition: kernel32.h:374
_In_ GUID _In_ PVOID ValueData
Definition: hubbusif.h:311
BOOL BasepGetVolumeNameFromReparsePoint(IN LPCWSTR lpszMountPoint, OUT LPWSTR lpszVolumeName, IN DWORD cchBufferLength, OUT LPBOOL IsAMountPoint)
Definition: mntpoint.c:257
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
_Must_inspect_result_ _Out_ PHANDLE VolumeHandle
Definition: fltkernel.h:2284
struct tagLOADPARMS32 LOADPARMS32
struct _BASEP_APPCERT_ENTRY * PBASEP_APPCERT_ENTRY
_In_ PCWSTR _Out_ PVOID * ActCtx
Definition: ldrtypes.h:247
struct _BASE_MSG_SXS_HANDLES * PBASE_MSG_SXS_HANDLES
LPWSTR WINAPI BaseComputeProcessDllPath(IN LPWSTR FullPath, IN PVOID Environment)
Definition: path.c:420
char * PBOOLEAN
Definition: retypes.h:11
NTSTATUS(NTAPI * PSAFER_REPLACE_PROCESS_THREAD_TOKENS)(IN HANDLE Token, IN HANDLE Process, IN HANDLE Thread)
Definition: kernel32.h:379
#define NTSTATUS
Definition: precomp.h:20
_In_ GUID _In_ PVOID _In_ ULONG ValueLength
Definition: hubbusif.h:311
LPVOID lpParameter
Definition: kernel32.h:241
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
#define VOID
Definition: acefi.h:82
PUNICODE_STRING Nt
Definition: kernel32.h:403
Definition: btrfs_drv.h:1780
DWORD(WINAPI * LPPROGRESS_ROUTINE)(_In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ LARGE_INTEGER, _In_ DWORD, _In_ DWORD, _In_ HANDLE, _In_ HANDLE, _In_opt_ LPVOID)
Definition: winbase.h:1392
struct _BASE_MSG_SXS_HANDLES BASE_MSG_SXS_HANDLES
_BASE_CURRENT_DIR_PLACEMENT
Definition: kernel32.h:91
PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER
Definition: winbase.h:1406
NTSTATUS(NTAPI * PRTL_CONVERT_STRINGA)(IN PANSI_STRING AnsiString, IN PCUNICODE_STRING UnicodeString, IN BOOLEAN AllocateMemory)
Definition: kernel32.h:278
Definition: typedefs.h:117
GLenum src
Definition: glext.h:6340
VOID WINAPI BasepAnsiStringToHeapUnicodeString(IN LPCSTR AnsiString, OUT LPWSTR *UnicodeString)
Definition: utils.c:263
WORD wCmdShow
Definition: kernel32.h:76
BOOLEAN WINAPI IsShimInfrastructureDisabled(VOID)
Definition: appcache.c:37
LPOVERLAPPED_COMPLETION_ROUTINE CompletionRoutine
Definition: kernel32.h:104
void(CALLBACK * LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD, DWORD, LPOVERLAPPED)
Definition: winbase.h:1404
Status
Definition: gdiplustypes.h:24
VOID NTAPI BasepFreeActivationContextActivationBlock(IN PBASEP_ACTCTX_BLOCK ActivationBlock)
Definition: actctx.c:26
#define _In_
Definition: no_sal2.h:204
enum _BASE_SEARCH_PATH_TYPE * PBASE_SEARCH_PATH_TYPE
ULONG_PTR SIZE_T
Definition: typedefs.h:78
Definition: compat.h:484
PVOID AllocateMemory(IN UINT Size)
Definition: utility.c:20
PVOID PVOID PWCHAR ApplicationName
Definition: env.c:45
BOOL * LPBOOL
Definition: windef.h:162
NTSTATUS WINAPI BasepCheckBadapp(IN HANDLE FileHandle, IN PWCHAR ApplicationName, IN PWCHAR Environment, IN USHORT ExeType, IN PVOID *SdbQueryAppCompatData, IN PULONG SdbQueryAppCompatDataSize, IN PVOID *SxsData, IN PULONG SxsDataSize, OUT PULONG FusionFlags)
Definition: appcache.c:272
static ULONG Timeout
Definition: ping.c:61
UNICODE_STRING BaseDefaultPath
Definition: path.c:21
ULONG(NTAPI * PRTL_COUNT_STRING)(IN PUNICODE_STRING UnicodeString)
Definition: kernel32.h:276
PVOID PVOID PWCHAR PVOID USHORT ExeType
Definition: env.c:45
Definition: kernel32.h:62
unsigned short USHORT
Definition: pedump.c:61
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID PULONG SxsDataSize
Definition: env.c:45
DWORD FilenameW2A_N(LPSTR dest, INT destlen, LPCWSTR src, INT srclen)
Definition: fileinfo.c:150
PBASE_STATIC_SERVER_DATA BaseStaticServerData
Definition: dllmain.c:19
unsigned int * PULONG
Definition: retypes.h:1
#define alloc
Definition: rosglue.h:13
unsigned int UINT
Definition: ndis.h:50
PBYTE SectionMapping
Definition: kernel32.h:67
POBJECT_ATTRIBUTES WINAPI BaseFormatObjectAttributes(OUT POBJECT_ATTRIBUTES ObjectAttributes, IN PSECURITY_ATTRIBUTES SecurityAttributes OPTIONAL, IN PUNICODE_STRING ObjectName)
Definition: utils.c:304
PUNICODE_STRING WINAPI Basep8BitStringToStaticUnicodeString(IN LPCSTR AnsiString)
Definition: utils.c:188
PUNICODE_STRING Win32
Definition: kernel32.h:402
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
VOID WINAPI BaseFreeThreadStack(_In_ HANDLE hProcess, _In_ PINITIAL_TEB InitialTeb)
Definition: utils.c:495
#define OUT
Definition: typedefs.h:39
BOOL bIsFileApiAnsi
Definition: utils.c:25
VOID WINAPI BaseProcessStartThunk(VOID)
struct _BASEP_APPCERT_ENTRY BASEP_APPCERT_ENTRY
_In_ PIRP _In_opt_ PVOID _In_opt_ POPLOCK_WAIT_COMPLETE_ROUTINE CompletionRoutine
Definition: fsrtlfuncs.h:673
unsigned int ULONG
Definition: retypes.h:1
UINT(WINAPI * PPROCESS_START_ROUTINE)(VOID)
Definition: kernel32.h:248
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE ContextType
Definition: fltkernel.h:1444
DWORD FilenameU2A_FitOrFail(LPSTR DestA, INT destLen, PUNICODE_STRING SourceU)
Definition: fileinfo.c:60
VOID NTAPI BasepLocateExeLdrEntry(IN PLDR_DATA_TABLE_ENTRY Entry, IN PVOID Context, OUT BOOLEAN *StopEnumeration)
Definition: utils.c:156
NTSTATUS WINAPI BasepMapFile(IN LPCWSTR lpApplicationName, OUT PHANDLE hSection, IN PUNICODE_STRING ApplicationName)
Definition: utils.c:686
LPTOP_LEVEL_EXCEPTION_FILTER GlobalTopLevelExceptionFilter
Definition: except.c:158
enum _BASE_CURRENT_DIR_PLACEMENT BASE_CURRENT_DIR_PLACEMENT
UNICODE_STRING BaseDefaultPathAppend
Definition: path.c:21
struct _SXS_WIN32_NT_PATH_PAIR * PSXS_WIN32_NT_PATH_PAIR
static char * dest
Definition: rtl.c:135
PWCHAR FilenameA2W(LPCSTR NameA, BOOL alloc)
Definition: fileinfo.c:22
_BASE_SEARCH_PATH_TYPE
Definition: kernel32.h:80
NTSTATUS NTAPI BasepConfigureAppCertDlls(IN PWSTR ValueName, IN ULONG ValueType, IN PVOID ValueData, IN ULONG ValueLength, IN PVOID Context, IN PVOID EntryContext)
Definition: proc.c:189
HANDLE SectionHandle
Definition: kernel32.h:66
VOID WINAPI InitCommandLines(VOID)
Definition: proc.c:842
PVOID WINAPI BasepIsRealtimeAllowed(IN BOOLEAN Keep)
Definition: utils.c:663
WCHAR * LPWSTR
Definition: xmlstorage.h:184
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG PVOID * SxsData
Definition: env.c:45
PTEB GetTeb(VOID)
Definition: thread.c:437
ULONG NTAPI BasepUnicodeStringToAnsiSize(IN PUNICODE_STRING String)
Definition: utils.c:49
DWORD dwReserved
Definition: kernel32.h:77
_In_ const BITMAPINFO _In_ UINT _In_opt_ HANDLE hSection
Definition: wingdi.h:3234
BYTE * PBYTE
Definition: pedump.c:66
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID * SdbQueryAppCompatData
Definition: env.c:45
enum _BASE_SEARCH_PATH_TYPE BASE_SEARCH_PATH_TYPE
base of all file and directory entries
Definition: entries.h:82
VOID WINAPI BaseThreadStartupThunk(VOID)
CPTABLEINFO CodePageTable
Definition: kernel32.h:68
__declspec(noreturn) VOID WINAPI BaseThreadStartup(LPTHREAD_START_ROUTINE lpStartAddress
Definition: thread.c:53
UNICODE_STRING BaseDllDirectory
Definition: path.c:21
ULONG NTAPI BasepAnsiStringToUnicodeSize(IN PANSI_STRING String)
Definition: utils.c:56
struct _SXS_WIN32_NT_PATH_PAIR SXS_WIN32_NT_PATH_PAIR
PVOID PVOID PWCHAR PVOID USHORT PULONG PVOID PULONG SdbQueryAppCompatDataSize
Definition: env.c:45
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68