Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
925 B

/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
PassportSharedMemory.h
Abstract:
Shared Memory class
Author:
Christopher Bergh (cbergh) 10-Sept-1988
Revision History:
--*/
#if !defined(PASSPORTSHAREDMEMORY_H)
#define PASSPORTSHAREDMEMORY_H
#include <windows.h>
class PassportExport PassportSharedMemory
{
public:
PassportSharedMemory();
virtual ~PassportSharedMemory();
BOOL CreateSharedMemory (
const DWORD &dwMaximumSizeHigh,
const DWORD &dwMaximunSizeLow,
LPCTSTR lpcName,
BOOL useMutex = TRUE);
BOOL OpenSharedMemory( LPCTSTR lpcName,
BOOL useMutex = TRUE);
void CloseSharedMemory( void );
protected:
// handle and pointer for the shared memory
HANDLE m_hShMem;
PBYTE m_pbShMem;
BOOL m_bInited;
HANDLE m_hMutex;
BOOL m_bUseMutex;
};
#endif