C# Class OleViewDotNet.COMUtilities

Datei anzeigen Open project: tyranid/oleviewdotnet Class Usage Examples

Public Methods

Method Description
ConvertTypeLibToAssembly ( ITypeLib typeLib ) : Assembly
CreateDynamicCallWrapper ( object target, Type t ) : dynamic
Get32bitExePath ( ) : string
GetAppDataDirectory ( ) : string
GetAppDirectory ( ) : string
GetCategoryName ( System.Guid catid ) : string
GetDispatchTypeInfo ( object comObj ) : Type
GetExePath ( ) : string
GetILForSD ( byte sd ) : string
GetInterfaceType ( System.Guid iid ) : Type
GetMonikerDisplayName ( IMoniker pmk ) : string
GetObjectClass ( object p ) : System.Guid
GetPluginDirectory ( ) : string
GetStringSDForSD ( byte sd ) : string
GetTypeLibDirectory ( ) : string
HasSubkey ( this key, string name ) : bool
IsComImport ( Type t ) : bool
IsValidGUID ( string guid ) : bool
LoadObjectFromStream ( object obj, Stream stm ) : void
LoadTypeLib ( string path ) : Assembly
LoadTypeLibAssemblies ( ) : void
MarshalObject ( object obj ) : byte[]
MemberInfoToString ( MemberInfo member ) : string
OleLoadFromStream ( Stream stm ) : object
OleSaveToStream ( object obj, Stream stm ) : void
ReadGuidFromKey ( RegistryKey rootKey, string keyName, string valueName ) : System.Guid
ReadIntFromKey ( RegistryKey rootKey, string keyName, string valueName ) : int
ReadSecurityDescriptorFromKey ( RegistryKey key, string value ) : RawSecurityDescriptor
ReadStringFromKey ( RegistryKey rootKey, string keyName, string valueName ) : string
SDHasAC ( byte sd ) : bool
SaveObjectToStream ( object obj, Stream stm ) : void

Private Methods

Method Description
COMUtilities ( ) : System
CoCreateInstance ( System.Guid &rclsid, IntPtr pUnkOuter, CLSCTX dwClsContext, System.Guid &riid, IntPtr &ppv ) : int
CoGetClassObject ( System.Guid &rclsid, CLSCTX dwClsContext, IntPtr pServerInfo, System.Guid &riid, IntPtr &ppv ) : int
CoUnmarshalInterface ( IStream stm, System.Guid &riid, IntPtr &ppv ) : int
ConvertSecurityDescriptorToStringSecurityDescriptor ( byte sd, uint rev, SECURITY_INFORMATION secinfo, IntPtr &str, int &length ) : bool
CreateBindCtx ( [ reserved ) : IBindCtx
CreateForwardingMethod ( MethodInfo mi ) : CodeMemberMethod
CreateForwardingProperty ( PropertyInfo pi ) : CodeMemberProperty
CreateObjrefMoniker ( [ punk ) : IMoniker
CreateWrapper ( Type t ) : Type
CreateWrapperTypeDeclaration ( Type t ) : CodeTypeDeclaration
CurrentDomain_AssemblyResolve ( object sender, ResolveEventArgs args ) : Assembly
GetParameter ( ParameterInfo pi ) : CodeParameterDeclarationExpression
LoadBuiltinTypes ( Assembly asm ) : void
LoadTypeLibEx ( String strTypeLibName, RegKind regKind, [ typeLib ) : void
LocalFree ( IntPtr hMem ) : IntPtr
RegisterTypeInterfaces ( Assembly a ) : void
SHCreateStreamOnFile ( string pszFile, STGM grfMode, IntPtr &ppStm ) : void

Method Details

ConvertTypeLibToAssembly() public static method

public static ConvertTypeLibToAssembly ( ITypeLib typeLib ) : Assembly
typeLib ITypeLib
return System.Reflection.Assembly

CreateDynamicCallWrapper() public static method

public static CreateDynamicCallWrapper ( object target, Type t ) : dynamic
target object
t System.Type
return dynamic

Get32bitExePath() public static method

public static Get32bitExePath ( ) : string
return string

GetAppDataDirectory() public static method

public static GetAppDataDirectory ( ) : string
return string

GetAppDirectory() public static method

public static GetAppDirectory ( ) : string
return string

GetCategoryName() public static method

public static GetCategoryName ( System.Guid catid ) : string
catid System.Guid
return string

GetDispatchTypeInfo() public static method

public static GetDispatchTypeInfo ( object comObj ) : Type
comObj object
return System.Type

GetExePath() public static method

public static GetExePath ( ) : string
return string

GetILForSD() public static method

public static GetILForSD ( byte sd ) : string
sd byte
return string

GetInterfaceType() public static method

public static GetInterfaceType ( System.Guid iid ) : Type
iid System.Guid
return System.Type

GetMonikerDisplayName() public static method

public static GetMonikerDisplayName ( IMoniker pmk ) : string
pmk IMoniker
return string

GetObjectClass() public static method

public static GetObjectClass ( object p ) : System.Guid
p object
return System.Guid

GetPluginDirectory() public static method

public static GetPluginDirectory ( ) : string
return string

GetStringSDForSD() public static method

public static GetStringSDForSD ( byte sd ) : string
sd byte
return string

GetTypeLibDirectory() public static method

public static GetTypeLibDirectory ( ) : string
return string

HasSubkey() public static method

public static HasSubkey ( this key, string name ) : bool
key this
name string
return bool

IsComImport() public static method

public static IsComImport ( Type t ) : bool
t System.Type
return bool

IsValidGUID() public static method

public static IsValidGUID ( string guid ) : bool
guid string
return bool

LoadObjectFromStream() public static method

public static LoadObjectFromStream ( object obj, Stream stm ) : void
obj object
stm Stream
return void

LoadTypeLib() public static method

public static LoadTypeLib ( string path ) : Assembly
path string
return System.Reflection.Assembly

LoadTypeLibAssemblies() public static method

public static LoadTypeLibAssemblies ( ) : void
return void

MarshalObject() public static method

public static MarshalObject ( object obj ) : byte[]
obj object
return byte[]

MemberInfoToString() public static method

public static MemberInfoToString ( MemberInfo member ) : string
member System.Reflection.MemberInfo
return string

OleLoadFromStream() public static method

public static OleLoadFromStream ( Stream stm ) : object
stm Stream
return object

OleSaveToStream() public static method

public static OleSaveToStream ( object obj, Stream stm ) : void
obj object
stm Stream
return void

ReadGuidFromKey() public static method

public static ReadGuidFromKey ( RegistryKey rootKey, string keyName, string valueName ) : System.Guid
rootKey Microsoft.Win32.RegistryKey
keyName string
valueName string
return System.Guid

ReadIntFromKey() public static method

public static ReadIntFromKey ( RegistryKey rootKey, string keyName, string valueName ) : int
rootKey Microsoft.Win32.RegistryKey
keyName string
valueName string
return int

ReadSecurityDescriptorFromKey() public static method

public static ReadSecurityDescriptorFromKey ( RegistryKey key, string value ) : RawSecurityDescriptor
key Microsoft.Win32.RegistryKey
value string
return System.Security.AccessControl.RawSecurityDescriptor

ReadStringFromKey() public static method

public static ReadStringFromKey ( RegistryKey rootKey, string keyName, string valueName ) : string
rootKey Microsoft.Win32.RegistryKey
keyName string
valueName string
return string

SDHasAC() public static method

public static SDHasAC ( byte sd ) : bool
sd byte
return bool

SaveObjectToStream() public static method

public static SaveObjectToStream ( object obj, Stream stm ) : void
obj object
stm Stream
return void