--- mstools/samples/tls/tlsdll.c 2018/08/09 18:20:59 1.1 +++ mstools/samples/tls/tlsdll.c 2018/08/09 18:22:12 1.1.1.2 @@ -1,3 +1,12 @@ +/****************************************************************************\ +* +* Microsoft Developer Support +* Copyright (c) 1992 Microsoft Corporation +* +* MODULE: tlsdll.c +/****************************************************************************/ + + #include "windows.h" #include "stdlib.h" #include "string.h" @@ -34,7 +43,7 @@ printf("Error on %s = %d\n", errstring, /*-----------------------------------------------------------------*/ -INT APIENTRY LibMain(HANDLE hInst, ULONG ul_reason_being_called, LPVOID lpReserved) +INT WINAPI LibMain(HANDLE hInst, ULONG ul_reason_being_called, LPVOID lpReserved) /* Purpose: Is called by LibEntry, upon entering a dll or detaching @@ -113,7 +122,7 @@ return 1; /****************************************************************************/ -INT APIENTRY TlsInit() +INT WINAPI TlsInit() /* Purpose: Allow LibMain to be executed for each thread @@ -131,7 +140,7 @@ return 1; /****************************************************************************/ -INT APIENTRY TlsRetreive(DWORD TlsIndex) +INT WINAPI TlsRetreive(DWORD TlsIndex) /* Purpose: Retreive TLS values and display (printf) them