NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICorPublishAppDomain

This interface describes an application domain on a machine.

IDL Declaration.

interface ICorPublishAppDomain : IUnknown
{
    HRESULT GetID( [out]   ULONG32 *puId);   
    HRESULT GetName([in] SIZE_T cchName, [out] SIZE_T *pcchName, [out, size_is(cchName), length_is(*pcchName)] WCHAR szName[]);
};

GetID

HRESULT GetID( [out]   ULONG32 *puId);   

Gets the identification number of this application domain. Note that this number is unique to this AppDomain, but only within the given process.

Parameter Description
guid Pointer to the ULONG32 that represents the identification number of the application domain.

GetName

HRESULT GetName([in] SIZE_T cchName, [out] SIZE_T *pcchName, [out, size_is(cchName), length_is(*pcchName)] WCHAR szName[]);

Gets the name of the application domain.

Parameter Description
cchName The size of the buffer passed to the method.
pcchName The actual length of the name. This may be more than the size of the buffer in which case the method should be called again with the correct buffer size.
szName Pointer to the buffer to receive the characters in the name.