touch!!

Remember good old unix/linux command called touch, so simple but very useful, it changes the modified and last access time of a file. Ever felt the need for the same in windows, well I did sometime back. There is a function in imagehlp.dll which is called TouchFileTimes. This is how we use it… [sourcecode language=’cpp’]// […]
Continue reading…

 

Showing “Select Computer” dialog, with all network computers listed out!

Ever seen that “Select Computer” dialog coming up and did you wonder how to have all those computer names without writing much code. There is an undocumented exported api in “ntlanman.dll” called ServerBrowseDialogA0 which is used exactly for this purpose. [sourcecode language=’cpp’]int main() { // Some funky stuff     HMODULE hMod = LoadLibrary( “Kernel32.dll” );     […]
Continue reading…