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!

Marshal.FreeHGlobal

Frees memory, previously allocated from from the process' unmanaged, native heap.

[Visual Basic]
Public Shared Sub FreeHGlobal( _
   ByVal hglobal As Integer _
)
[C#]
public static void FreeHGlobal(
   int hglobal
);
[C++]
public: static void FreeHGlobal(
   int hglobal
);
[JScript]
public static function FreeHGlobal(
   hglobal : int
);

Parameters

hglobal
The handle returned by the original, matching, call to AllocHGlobal.

Exceptions

Exception Type Condition
System.Runtime.InteropServices.ArgumentException if there is any failure.

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace