Back to index

plt-scheme  4.2.1
Functions | Variables
testobject.cxx File Reference
#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "testobject.h"
#include "testobject_i.c"
#include "TestControl.h"

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID)
STDAPI DllCanUnloadNow (void)
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
STDAPI DllRegisterServer (void)
STDAPI DllUnregisterServer (void)

Variables

CComModule _Module

Function Documentation

STDAPI DllCanUnloadNow ( void  )

Definition at line 41 of file testobject.cxx.

{
  return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
STDAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID *  ppv 
)

Definition at line 49 of file testobject.cxx.

{
  return _Module.GetClassObject (rclsid, riid, ppv);
}
BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  dwReason,
LPVOID   
)

Definition at line 27 of file testobject.cxx.

{
  if (dwReason == DLL_PROCESS_ATTACH) {
      _Module.Init (ObjectMap, hInstance, &LIBID_TESTOBJECTLib);
      DisableThreadLibraryCalls (hInstance);
      }
  else if (dwReason == DLL_PROCESS_DETACH)
      _Module.Term();
  return TRUE;    // ok
}
STDAPI DllRegisterServer ( void  )

Definition at line 57 of file testobject.cxx.

{
  // registers object, typelib and all interfaces in typelib
  return _Module.RegisterServer (TRUE);
}
STDAPI DllUnregisterServer ( void  )

Definition at line 66 of file testobject.cxx.

{
  return _Module.UnregisterServer (TRUE);
}

Variable Documentation

CComModule _Module

Definition at line 17 of file testobject.cxx.