#include <apitest.h>
#include <stdlib.h>
#include <stdio.h>
#include <ntndk.h>
Go to the source code of this file.
◆ PFN_atexit
◆ exitfunc1()
Definition at line 17 of file atexit.c.
18{
22}
#define ok_int(expression, result)
BOOL WINAPI DECLSPEC_HOTPATCH ReleaseSemaphore(IN HANDLE hSemaphore, IN LONG lReleaseCount, IN LPLONG lpPreviousCount)
Referenced by Test_atexit().
◆ exitfunc2()
◆ exitfunc3()
◆ START_TEST()
Definition at line 64 of file atexit.c.
65{
72
73
76 {
78 return;
79 }
80
81
83
84
88
89
93}
#define NT_SUCCESS(StatCode)
LPSTR WINAPI GetCommandLineA(void)
_ACRTIMP int __cdecl system(const char *)
_ACRTIMP char *__cdecl strstr(const char *, const char *)
@ SemaphoreBasicInformation
NTSTATUS NTAPI NtQuerySemaphore(IN HANDLE SemaphoreHandle, IN SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass, OUT PVOID SemaphoreInformation, IN ULONG SemaphoreInformationLength, OUT PULONG ReturnLength OPTIONAL)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateSemaphoreA(IN LPSECURITY_ATTRIBUTES lpSemaphoreAttributes OPTIONAL, IN LONG lInitialCount, IN LONG lMaximumCount, IN LPCSTR lpName OPTIONAL)
◆ Test_atexit()
Definition at line 41 of file atexit.c.
42{
45
46
49
50
53 ok(patexit !=
NULL,
"failed to get atexit from msvcrt.dll\n");
54
55
58 {
60 }
62}
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
int __cdecl atexit(void(__cdecl *)(void))
int(__cdecl * PFN_atexit)(void(__cdecl *)(void))
static NTSTATUS *static PWSTR CURDIR *static HMODULE hmod
HANDLE WINAPI DECLSPEC_HOTPATCH OpenSemaphoreA(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN LPCSTR lpName)
#define SEMAPHORE_ALL_ACCESS
Referenced by START_TEST().
◆ g_hSemaphore
◆ g_sequence