arsd.comhelpers

My old com helper code. I haven't used it for years.

Public Imports

core.stdc.string
public import core.stdc.string;

Members

Aliases

PFNDESTROYED
alias PFNDESTROYED = void function()

Undocumented in source.

pfn_t
alias pfn_t = HRESULT function()

Register/unregister a DLL server. Input: flag !=0: register ==0: unregister

Classes

ClassFactory
class ClassFactory(Class)

Undocumented in source.

Functions

ObjectDestroyed
void ObjectDestroyed()

Undocumented in source. Be warned that the author may not have intended to support it.

SetKeyAndValue
BOOL SetKeyAndValue(LPCSTR pszKey, LPCSTR pszSubkey, LPCSTR pszValue)

Undocumented in source. Be warned that the author may not have intended to support it.

createObject
AutoComPtr!T createObject(GUID classId)

Create a COM object. the string params are GUID literals that i mixin (this sux i know) or if the interface has no IID it will try to IDispatch it or you can request a fully dynamic version via opDispatch. note i can try import core.sys.windows.uuid; IID_IDispatch for example to generically look up ones from the system if they are not attached and come from the windows namespace

dll_regserver
int dll_regserver(const(char)* dllname, int flag)

Undocumented in source. Be warned that the author may not have intended to support it.

gc_init
void gc_init()

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

gc_term
void gc_term()

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

getFromVariant
T getFromVariant(VARIANT arg)

Undocumented in source. Be warned that the author may not have intended to support it.

hasGuidAttribute
bool hasGuidAttribute()

Undocumented in source. Be warned that the author may not have intended to support it.

initializeCom
void initializeCom()

Undocumented in source. Be warned that the author may not have intended to support it.

oleCharsToString
char[] oleCharsToString(char[] buffer, OLECHAR* chars)

Undocumented in source. Be warned that the author may not have intended to support it.

rt_init
void rt_init()

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

rt_term
void rt_term()

Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

unicode2ansi
void unicode2ansi(char* s)

Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

ComObjectImpl
mixintemplate ComObjectImpl()

Undocumented in source.

ComServerMain
mixintemplate ComServerMain(Class, string progId, string ver)

Undocumented in source.

IDispatchImpl
mixintemplate IDispatchImpl()

Undocumented in source.

Static variables

coInitializeCalled
int coInitializeCalled;

Undocumented in source.

g_cLock
ULONG g_cLock;

Undocumented in source.

g_cObj
ULONG g_cObj;

Undocumented in source.

Structs

AutoComPtr
struct AutoComPtr(T)

Undocumented in source.

ComGuid
struct ComGuid

Undocumented in source.

TmpStr
struct TmpStr

Undocumented in source.

Templates

getGuidAttribute
template getGuidAttribute(T)

Undocumented in source.

Meta