<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5048390849310565158</id><updated>2012-02-16T00:16:28.247-08:00</updated><category term='win32'/><category term='dos'/><category term='c++'/><category term='utf8'/><category term='programming'/><category term='asm'/><title type='text'>Mr J Love</title><subtitle type='html'>&lt;a href="http://jezlove.com/"&gt;jezlove.com&lt;/a&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-5077243817269419682</id><published>2012-01-13T12:09:00.000-08:00</published><updated>2012-01-13T21:56:12.635-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='win32'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Creating Virtual Drives on Windows</title><content type='html'>&lt;div&gt;1. DOS &lt;span&gt;subst &lt;/span&gt;Command (note: not persistent)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;subst X: "C:\some_target_folder"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. API-Call: &lt;span&gt;DefineDosDevice&lt;/span&gt; (note: not persistent)&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363904(v=vs.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/windows/desktop/aa363904(v=vs.85).aspx&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;3. Through the Registry (note: persistent)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Dos Devices"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;Add a String Value "X:" where X is the new virtual drive and set the value to: "\DosDevices\C:\some_target_folder"&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-5077243817269419682?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/5077243817269419682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=5077243817269419682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/5077243817269419682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/5077243817269419682'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2012/01/creating-virtual-drives-on-windows.html' title='Creating Virtual Drives on Windows'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-2433708304272696800</id><published>2011-08-01T15:15:00.000-07:00</published><updated>2012-01-13T21:47:06.889-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Personal Programming Diversions/Digressions</title><content type='html'>&lt;div&gt;1. Feature-itis: I keep dreaming up interesting features to add and get side-tracked from the important functional code I should be writing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2. Semantics/Perfectionism: I get obsessed with finding the perfect names for my classes/functions/variables. I take style-guides to be almighty laws.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-2433708304272696800?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/2433708304272696800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=2433708304272696800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/2433708304272696800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/2433708304272696800'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2012/01/personal-programming.html' title='Personal Programming Diversions/Digressions'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-5666940382725523352</id><published>2011-03-18T15:43:00.000-07:00</published><updated>2012-01-13T21:56:31.332-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='win32'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Simple Alert Function for Win32 System Error</title><content type='html'>&lt;pre&gt;#pragma comment(lib, "Kernel32.lib")&lt;br /&gt;#pragma comment(lib, "User32.lib")&lt;br /&gt;extern "C" __declspec(dllimport) unsigned long __stdcall GetLastError();&lt;br /&gt;extern "C" __declspec(dllimport) void* __stdcall LocalFree(void*);&lt;br /&gt;extern "C" __declspec(dllimport) unsigned long __stdcall FormatMessageA(unsigned long, void*, unsigned long, unsigned long, char**, unsigned long, void*);&lt;br /&gt;extern "C" __declspec(dllimport) signed long __stdcall MessageBoxA(void*, char*, char*, signed long);&lt;br /&gt;inline void alert(char* s) { MessageBoxA(0, s, "Alert", 0); }&lt;br /&gt;inline void alertSystemError() {&lt;br /&gt; unsigned long e = GetLastError();&lt;br /&gt; if(e) {&lt;br /&gt;  enum {&lt;br /&gt;   FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100,&lt;br /&gt;   FORMAT_MESSAGE_FROM_SYSTEM     = 0x00001000,&lt;br /&gt;   FORMAT_MESSAGE_IGNORE_INSERTS  = 0x00000200&lt;br /&gt;  };&lt;br /&gt;  char* s;&lt;br /&gt;  FormatMessageA(&lt;br /&gt;   FORMAT_MESSAGE_ALLOCATE_BUFFER |&lt;br /&gt;   FORMAT_MESSAGE_FROM_SYSTEM |&lt;br /&gt;   FORMAT_MESSAGE_IGNORE_INSERTS,&lt;br /&gt;   0,&lt;br /&gt;   e,&lt;br /&gt;   0,&lt;br /&gt;   &amp;amp;s,&lt;br /&gt;   0,&lt;br /&gt;   0);&lt;br /&gt;  LocalFree(s);&lt;br /&gt;  alert(s);&lt;br /&gt; }&lt;br /&gt; else { alert("No system error"); }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-5666940382725523352?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/5666940382725523352/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=5666940382725523352' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/5666940382725523352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/5666940382725523352'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2011/03/simple-alert-function-for-win32-system.html' title='Simple Alert Function for Win32 System Error'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-2258232057698884194</id><published>2011-03-18T12:15:00.000-07:00</published><updated>2012-01-13T21:56:52.575-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c++'/><category scheme='http://www.blogger.com/atom/ns#' term='win32'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Simple Alert Function (Win32)</title><content type='html'>&lt;pre&gt;#pragma comment(lib, "User32.lib")&lt;br /&gt;extern "C" __declspec(dllimport) int __stdcall MessageBoxA(void*, char*, char*, int);&lt;br /&gt;inline void alert(char* s) { MessageBoxA(0, s, 0, 0); }&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-2258232057698884194?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/2258232057698884194/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=2258232057698884194' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/2258232057698884194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/2258232057698884194'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2010/07/simple-alert-function-win32.html' title='Simple Alert Function (Win32)'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-6337274346493680395</id><published>2011-03-18T11:10:00.000-07:00</published><updated>2012-01-13T21:42:11.467-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='utf8'/><category scheme='http://www.blogger.com/atom/ns#' term='dos'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'>Displaing the £ sign on the DOS command line</title><content type='html'>&lt;span&gt;DOS (Western Europe): &lt;code&gt;#9C // 0x9C&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Which in UTF-8 is: &lt;code&gt;#A3 // 0xA3&lt;/code&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-6337274346493680395?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/6337274346493680395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=6337274346493680395' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/6337274346493680395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/6337274346493680395'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2012/01/getting-sign-on-dos-command-line.html' title='Displaing the &amp;pound; sign on the DOS command line'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-6776624806992866282</id><published>2011-01-23T22:03:00.000-08:00</published><updated>2012-01-23T22:08:02.312-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='win32'/><title type='text'></title><content type='html'>&lt;q&gt;Windows 7 Starter edition comes with one desktop background, which can't be changed or customized.&lt;/q&gt;&lt;br /&gt;&lt;cite&gt;&lt;a href="http://windows.microsoft.com/en-US/windows7/Personalize-your-computer"&gt;http://windows.microsoft.com/en-US/windows7/Personalize-your-computer&lt;/a&gt;&lt;/cite&gt;&lt;br /&gt;&lt;br /&gt;One word: wow. MS doesn't want users to be able to change the background?!?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-6776624806992866282?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/6776624806992866282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=6776624806992866282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/6776624806992866282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/6776624806992866282'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2011/01/windows-7-starter-edition-comes-with.html' title=''/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-3129322538733537295</id><published>2010-01-02T15:15:00.000-08:00</published><updated>2012-01-13T21:55:35.522-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asm'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><title type='text'></title><content type='html'>&lt;pre&gt;format PE GUI&lt;br /&gt;entry main&lt;br /&gt;section '.code' code readable executable&lt;br /&gt; _main:&lt;br /&gt;  push 0&lt;br /&gt;  push _message&lt;br /&gt;  push _caption&lt;br /&gt;  push 0&lt;br /&gt;  call [MessageBoxA]&lt;br /&gt;  push 0&lt;br /&gt;  call [ExitProcess]&lt;br /&gt;  ret&lt;br /&gt;section '.data' data readable writeable&lt;br /&gt; _caption db 'Simple Hello World Demo',0&lt;br /&gt; _message db 'Hello World!',0&lt;br /&gt;section '.idata' import data readable writeable&lt;br /&gt; dd 0,0,0,RVA kernel_name,RVA kernel_table&lt;br /&gt; dd 0,0,0,RVA user_name,RVA user_table&lt;br /&gt; dd 0,0,0,0,0&lt;br /&gt; kernel_table:&lt;br /&gt;  ExitProcess dd RVA _ExitProcess&lt;br /&gt;  dd 0&lt;br /&gt; user_table:&lt;br /&gt;  MessageBoxA dd RVA _MessageBoxA&lt;br /&gt;  dd 0&lt;br /&gt; kernel_name db 'Kernel32.dll',0&lt;br /&gt; user_name db 'User32.dll',0&lt;br /&gt; _ExitProcess dw 0&lt;br /&gt; db 'ExitProcess',0&lt;br /&gt; _MessageBoxA dw 0&lt;br /&gt; db 'MessageBoxA',0&lt;br /&gt;section '.reloc' fixups data readable discardable&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-3129322538733537295?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/3129322538733537295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=3129322538733537295' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/3129322538733537295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/3129322538733537295'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2010/01/format-pe-gui-entry-main-section.html' title=''/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5048390849310565158.post-171773781997277301</id><published>2010-01-01T00:00:00.000-08:00</published><updated>2012-01-13T21:40:52.264-08:00</updated><title type='text'>Hello World!</title><content type='html'>Hello World!&lt;br /&gt;Bonjour Monde!&lt;br /&gt;Hallo Welt!&lt;br /&gt;¡Hola Mundo!&lt;br /&gt;Ciao Mondo!&lt;br /&gt;Здравствулте! мир!&lt;br /&gt;&lt;br /&gt;First post!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5048390849310565158-171773781997277301?l=jezlove.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jezlove.blogspot.com/feeds/171773781997277301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5048390849310565158&amp;postID=171773781997277301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/171773781997277301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5048390849310565158/posts/default/171773781997277301'/><link rel='alternate' type='text/html' href='http://jezlove.blogspot.com/2010/01/hello-world.html' title='Hello World!'/><author><name>Jez</name><uri>http://www.blogger.com/profile/08362103091584010909</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_98YE1zqkPG0/SKCsDL8KDCI/AAAAAAAAAAU/nH7zPjF66M8/s1600-R/DSCF0593.jpg'/></author><thr:total>0</thr:total></entry></feed>
