[.net] gcAllowVeryLargeObjects Element–beat the 2GB array size limit on 64 bit

Please note that this post is only applicable for .net 4.5 and above. Having trouble with .net array size limit, i.e. 2GB on a 64 bit target. Use above tag in your config file to work around this issue. A sample config file will look as follows… <configuration> <runtime> <gcallowverylargeobjects enabled=”true” /> </runtime> </configuration></pre> Please […]
Continue reading…

 

[Windows API] Programmatically invoking Map Network Drive dialog.

This how the map network drive dialog look like. So how do we show this dialog programmatically? The windows API’s for showing this dialog is: WNetConnectionDialog and WNetConnectionDialog1. I’ve demonstrated both WNetConnectionDialog and WNetConnectionDialog1 in this code snippet. WNetConnectionDialog is a simple API which takes a window handle and a DWORD. While WNetConnectionDialog1 is an […]
Continue reading…