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.
 
 
 
 
 
 

40 lines
1.0 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1994.
//
// File: dlltable.h
//
// Contents: DLL tracking class
//
// Classes: CDll
//
// History: 16-Mar-94 DrewB Taken from OLE2 16-bit sources
//
//----------------------------------------------------------------------------
#ifndef __DLLTABLE_H__
#define __DLLTABLE_H__
class FAR CDlls
{
public:
HINSTANCE GetLibrary(LPSTR pLibName, BOOL fAutoFree);
void ReleaseLibrary(HINSTANCE hInst);
void FreeAllLibraries(void);
void FreeUnusedLibraries(void);
CDlls() { m_size = 0; m_pDlls = NULL; }
~CDlls() {}
private:
UINT m_size; // Number of entries
struct {
HINSTANCE hInst;
ULONG refsTotal; // total number of refs
ULONG refsAuto; // number of autounload refs
LPFNCANUNLOADNOW lpfnDllCanUnloadNow; // set on first load
} FAR* m_pDlls;
};
#endif // #ifndef __DLLTABLE_H__