--- mstools/samples/memory/nmmemsrv.c 2018/08/09 18:20:01 1.1 +++ mstools/samples/memory/nmmemsrv.c 2018/08/09 18:23:18 1.1.1.3 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + #include #include #include @@ -9,7 +20,7 @@ extern ErrorOut(); HANDLE CreateMapFile (char *MapFileName); HANDLE CreateMap (HANDLE *FileToBeMapped, char MapName[30]); -LPVOID MapView (HANDLE *hMap); +LPVOID MapView (HANDLE *hMap); /************************************************************************** * HANDLE CreateMapFile(char *MapFileName) @@ -19,13 +30,10 @@ LPVOID MapView (HANDLE *hMap); * Inputs: none * * Returns: MapFileHandle - a handle to the file - * or NULL if failure + * or NULL if failure * * Calls: CreateFile, ErrorOut * - * History: - * 09-13-91 Peteg Created. - * \**************************************************************************/ HANDLE CreateMapFile(char *MapFileName) { @@ -59,12 +67,12 @@ else * Inputs: *FileToBeMapped - pointer to the file handle * * Returns: MapHandle - handle to the file mapping object - * or NULL if failure + * or NULL if failure * * Calls: CreateFileMapping, ErrorOut * * History: - * 09-13-91 Peteg Created. + * 09-13-91 Pete Gray Created. * \**************************************************************************/ @@ -78,7 +86,7 @@ MapHandle= CreateFileMapping(*FileToBeMa PAGE_READWRITE, 0, 4096, - MapName); + MapName); if (MapHandle == NULL) { @@ -99,13 +107,13 @@ else * Inputs: *hMap - pointer to the mapping object * * Returns: MappedPointer - pointer to the address space that the - * object is mapped into - * or NULL if failure + * object is mapped into + * or NULL if failure * * Calls: MapViewOfFile, ErrorOut * * History: - * 09-13-91 Peteg Created. + * 09-13-91 Pete Gray Created. * \**************************************************************************/