Re: IDiskQuotaControl
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 03/30/04
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: COM Calling C# Security Issue"
- Previous message: Matthew Wieder: "COM Calling C# Security Issue"
- In reply to: Toby Mathews: "IDiskQuotaControl"
- Next in thread: Andreas Håkansson: "Re: IDiskQuotaControl"
- Reply: Andreas Håkansson: "Re: IDiskQuotaControl"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 11:59:41 -0500
Toby,
You will have to define the IDiskQuotaControl interface in your code,
using the attributes from the System.Runtime.InteropServices namespace.
Once you have this, you can get the type of the COM component from a call to
the static GetTypeFromCLSID method on the Type class. With that, you can
pass the type to the static CreateInstance method on the Activator class,
and cast the return type to the IDiskQuotaControl interface you declared in
code.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Toby Mathews" <tobymathewsNOSPAM@yahoo.spamfree.co.uk> wrote in message
news:c4c678$1vv$1@thorium.cix.co.uk...
> Hi there,
>
> Can anyone help me get started (preferably in C#) using
IDiskQuotaControl
> to set disk quotas for users? I am baffled and can only find C++ examples.
>
> Thanks in advance,
>
> Toby Mathews
>
>
- Next message: Nicholas Paldino [.NET/C# MVP]: "Re: COM Calling C# Security Issue"
- Previous message: Matthew Wieder: "COM Calling C# Security Issue"
- In reply to: Toby Mathews: "IDiskQuotaControl"
- Next in thread: Andreas Håkansson: "Re: IDiskQuotaControl"
- Reply: Andreas Håkansson: "Re: IDiskQuotaControl"
- Messages sorted by: [ date ] [ thread ]