<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/c-plus-plus/tags/windows</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 17:39:46 GMT</pubDate>
<item>
<title>(C++) Kill Rising\'s popup window - breakerzhao</title>
<link>http://snipplr.com/view/64634/kill-risings-popup-window/</link>
<description><![CDATA[ <p>Terminate Rising anti-virus program's annoying ad. popup window process "popwndexe.exe", remove from its config file "RsMgrsvc.ini".</p> ]]></description>
<pubDate>Thu, 19 Apr 2012 01:30:32 GMT</pubDate>
<guid>http://snipplr.com/view/64634/kill-risings-popup-window/</guid>
</item>
<item>
<title>(C++) Reliably Checking Windows Bitness (32-bit or 64-bit) With C++ - shadevampire</title>
<link>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</link>
<description><![CDATA[ <p>See on the source (url)</p> ]]></description>
<pubDate>Wed, 27 Jul 2011 01:55:47 GMT</pubDate>
<guid>http://snipplr.com/view/57165/reliably-checking-windows-bitness-32bit-or-64bit-with-c/</guid>
</item>
<item>
<title>(C++) windows check battery status in c++ - shadevampire</title>
<link>http://snipplr.com/view/54867/windows-check-battery-status-in-c/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 04 Jun 2011 08:41:01 GMT</pubDate>
<guid>http://snipplr.com/view/54867/windows-check-battery-status-in-c/</guid>
</item>
<item>
<title>(C++) embed an MFC dialog-based app in a DLL and run using RunDll32 - jimfred</title>
<link>http://snipplr.com/view/18801/embed-an-mfc-dialogbased-app-in-a-dll-and-run-using-rundll32/</link>
<description><![CDATA[ <p>This approach allows an application to be embedded in a DLL. This is handy for diagnostic/maintenance utilities that are used with the DLL.

Steps to create:
* Create a MFC DLL project
* Add a dialog
* Add an entry point function such as void CALLBACK AppInDll_Entry(HWND hwnd, HINSTANCE hinst, LPCSTR lpCmdLine, int nCmdShow)
* In this new function, do this:
	CDlgInDll dlg;
   theApp.m_pMainWnd = &amp;dlg;
	INT_PTR nResponse = dlg.DoModal();
* in CAppInDllApp::InitInstance(), do this
	INITCOMMONCONTROLSEX InitCtrls;
	InitCtrls.dwSize = sizeof(InitCtrls);
	InitCtrls.dwICC = ICC_WIN95_CLASSES;
	InitCommonControlsEx(&amp;InitCtrls);

	SetRegistryKey(_T("Local AppWizard-Generated Applications"));

   CWinApp::InitInstance();
* Launch the 'app' using runDll32, for example:
rundll32 AppInDll.dll AppInDll_Entry a b c
or 
ShellExecute( NULL, "open", "c:\\windows\\system32\\rundll32.exe", "AppInDll.dll AppInDll_Entry a b c", NULL, SW_SHOWNORMAL) ;</p> ]]></description>
<pubDate>Mon, 24 Aug 2009 18:52:02 GMT</pubDate>
<guid>http://snipplr.com/view/18801/embed-an-mfc-dialogbased-app-in-a-dll-and-run-using-rundll32/</guid>
</item>
<item>
<title>(C++) MyExec, calls CreateProcess, waits for completion. WinBase - jimfred</title>
<link>http://snipplr.com/view/14820/myexec-calls-createprocess-waits-for-completion-winbase/</link>
<description><![CDATA[ <p>I occasionally need a WinExec function the synchronously executes a command. cwdArg may be null. 

This example, upon error, pops-up a dialog and exits the app. This is useful for small installation utilities.

non-dot.net, with or without MFC.</p> ]]></description>
<pubDate>Thu, 07 May 2009 15:42:02 GMT</pubDate>
<guid>http://snipplr.com/view/14820/myexec-calls-createprocess-waits-for-completion-winbase/</guid>
</item>
<item>
<title>(C++) Get my exe's directory. WinBase API - jimfred</title>
<link>http://snipplr.com/view/14818/get-my-exes-directory-winbase-api/</link>
<description><![CDATA[ <p>Determine directory where the .exe is running from. Usually it's CWD - but not always, such as MsiExec Custom Actions.

Windows. non-dot.net, with or without MFC.</p> ]]></description>
<pubDate>Thu, 07 May 2009 15:35:41 GMT</pubDate>
<guid>http://snipplr.com/view/14818/get-my-exes-directory-winbase-api/</guid>
</item>
<item>
<title>(C++) Simple non-dot.net function to determine if a file exists. Uses the WinBase API. - jimfred</title>
<link>http://snipplr.com/view/14817/simple-nondotnet-function-to-determine-if-a-file-exists-uses-the-winbase-api/</link>
<description><![CDATA[ <p>Simple non-dot.net function to determine if a file exists. Uses the WinBase API. Can be used with or without mfc.

Windows, non-dot.net, with or without MFC.</p> ]]></description>
<pubDate>Thu, 07 May 2009 15:29:12 GMT</pubDate>
<guid>http://snipplr.com/view/14817/simple-nondotnet-function-to-determine-if-a-file-exists-uses-the-winbase-api/</guid>
</item>
<item>
<title>(C++) Win32 API to check shift state - jimfred</title>
<link>http://snipplr.com/view/10393/win32-api-to-check-shift-state/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 11 Dec 2008 00:05:22 GMT</pubDate>
<guid>http://snipplr.com/view/10393/win32-api-to-check-shift-state/</guid>
</item>
<item>
<title>(C++) C++ - Hello World - whitetiger</title>
<link>http://snipplr.com/view/1613/c--hello-world/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:20 GMT</pubDate>
<guid>http://snipplr.com/view/1613/c--hello-world/</guid>
</item>
<item>
<title>(C++) C - clear screen - whitetiger</title>
<link>http://snipplr.com/view/1604/c--clear-screen/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:08 GMT</pubDate>
<guid>http://snipplr.com/view/1604/c--clear-screen/</guid>
</item>
<item>
<title>(C++) C - command - whitetiger</title>
<link>http://snipplr.com/view/1603/c--command/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:07 GMT</pubDate>
<guid>http://snipplr.com/view/1603/c--command/</guid>
</item>
<item>
<title>(C++) Xlib - mouseClick - whitetiger</title>
<link>http://snipplr.com/view/1599/xlib--mouseclick/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:04 GMT</pubDate>
<guid>http://snipplr.com/view/1599/xlib--mouseclick/</guid>
</item>
</channel>
</rss>