<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"><channel><title>dandy</title><link>http://www.aypwip.org/webnote/dandy</link><description>Webnote RSS feed</description><lastBuildDate>Wed, 09 Jun 2010 16:39:52 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>{</title><description>	{
    	AknIconConfig::EnableAknIconSrvCache(EFalse);
    	AknIconConfig::EnableAknIconSrvCache(ETrue);

    	RLibrary dll;
		TInt err = dll.Load(_L("aknicon.dll"));
		if(err == KErrNone)
		{
			typedef TInt (*fn)(TBool);
			
			fn AknIconConfig_EnableAknIconSrvCache = (fn)dll.Lookup(
#ifdef __WINS__
					41
#else
					44
#endif
					);
			if(AknIconConfig_EnableAknIconSrvCache)
			{
				err = AknIconConfig_EnableAknIconSrvCache(EFalse);
				err = AknIconConfig_EnableAknIconSrvCache(ETrue);
			}

			dll.Close();
		}
	}

http://you.video.sina.com.cn/b/25047902-1308329744.html
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note14</guid></item><item><title>&#35299;&#20915;QQ&#33258;&#21160;&#36864;&#20986;&#38382;&#39064;</title><description>&#35299;&#20915;QQ&#33258;&#21160;&#36864;&#20986;&#38382;&#39064;

&#35774;&#32622;&#19979;&#26435;&#38480;export GDK_NATIVE_WINDOWS=true

sudo gedit /usr/bin/qq

#!/bin/sh
export GDK_NATIVE_WINDOWS=true
cd /usr/share/tencent/qq/
./qq
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note13</guid></item><item><title>Since a self-signed certificate is only valid for 6 month, t</title><description>Since a self-signed certificate is only valid for 6 month, the signed sis file cannot be used any more after 6 months. Hereafter comes the workaround solution:

Download setup.exe from http://www.cygwin.com.
Installation: run setup.exe and when installing, don't forget to
include "openssl". Use the default settings for all other elements.
Run "Cygwin Bash Shell" which will bring up a DOS window, then run
the following three commands:

1) openssl genrsa -des3 -out test.key 1024
This generates the private key (test.key), here you need to give the passphrase.

2) openssl req -new -key test.key -out test.csr
This is an intermediate step, the certificate signing request is created.
You need to enter some information about the certificate.

3) openssl x509 -req -days 10950 -in test.csr -signkey test.key -out test.cer
This generate the self-signed certificate (test.cer).

Now you can use the test.key and test.cer in Carbide UI and it's valid for 30 years!
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note12</guid></item><item><title>&#32593;&#39029;&#20013;&#28304;&#20195;&#30721;&#39640;&#20142;&#33050;&#26412;&#65306;</title><description>&#32593;&#39029;&#20013;&#28304;&#20195;&#30721;&#39640;&#20142;&#33050;&#26412;&#65306;
http://softwaremaniacs.org/soft/highlight/en/

http://www.cnblogs.com/cloudgamer/archive/2009/01/06/Tween.html

http://www.usabilityfirst.com/glossary/main.cgi?function=display_term&amp;term_id=320

C++ allocator &#35814;&#35299;&#65306;
http://www.codeproject.com/KB/cpp/allocator.aspx

ATOM EXEC ROM &#23448;&#26041;&#38142;&#25509;&#65306;
http://www.mwg.com/xda-atom-exec_rom.aspx

http://3225.blog.163.com/blog/static/45339336200931453038623/

Twitter API &#26367;&#25442;&#26381;&#21153;&#22120;&#65306;
var TWITTER_API_URL = "http://nest.onedd.net/api/"; // "https://twitter.com/";

Symbian &#32534;&#31243;&#30693;&#35782;&#28857;&#24635;&#32467;&#65306;
http://nmzhangzg.spaces.live.com/
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note11</guid></item><item><title>#include &amp;lt;kernel/kernel.h&amp;gt;		// for DObject, Kern</title><description>#include &lt;kernel/kernel.h&gt;		// for DObject, Kern
#include &lt;kernel/kern_priv.h&gt;	// for DObjectCon, DThread

void EnumerateKernelObjects()
{
	DObjectCon* const * containers = Kern::Containers();
	
	TInt i = 0;
	while(containers[i])
	{
		DObjectCon* container = containers[i];
		if(container-&gt;UniqueID() == EThread + 1)
		{
			for(TInt j=0; j&lt;container-&gt;Count(); j++)
			{
				DObject* object = container-&gt;operator[](i);
				DThread* thread = (DThread*)object;
				thread-&gt;Inc();
				
				/// TODO:
				
				thread-&gt;Dec();
			}
		}
		i++;
	}
}
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note10</guid></item><item><title>http://siteadvisor.jp/sites/symbian.com/downloads/</title><description>http://siteadvisor.jp/sites/symbian.com/downloads/

http://www.mcternan.me.uk/ArmStackUnwinding/

http://bonte.co.uk/myBlog/?page_id=164

http://www.symbian.com/developer/techlib/v9.2docs/doc_source/guide/Base-subsystem-guide/e32/PublishAndSubscribe/UsingPublishSubscribe.guide.html

http://www.mobinex.com.tr/products_activeidle.asp

http://wiki.forum.nokia.com/index.php/Extract_any_text_which_appears_on_the_screen

http://datspage.googlepages.com/symbiandrivers
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note8</guid></item><item><title>Symbian &#30340;&#32570;&#38519;</title><description>Symbian &#30340;&#32570;&#38519;
&#30446;&#24405;&#32452;&#32455;

http://liuy8953.net/archives/44

http://bbs.wda.com.cn/viewthread.php?tid=853901
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note6</guid></item><item><title>&#22312; Windows 2000/XP &#37324;&#65292;&#27599;&#20010;&#28040;&#24687;&#38431;&#21015;&#26368;&#22810;&#21482;&#33021;&#23384;&#25918; 10,000 &#20010; Post &#30340;&#28040;&#24687;&#65292;&#36229;&#36807;&#30340;&#36824;&#27809;&#34987;&#22788;&#29702;&#30340;</title><description>&#22312; Windows 2000/XP &#37324;&#65292;&#27599;&#20010;&#28040;&#24687;&#38431;&#21015;&#26368;&#22810;&#21482;&#33021;&#23384;&#25918; 10,000 &#20010; Post &#30340;&#28040;&#24687;&#65292;&#36229;&#36807;&#30340;&#36824;&#27809;&#34987;&#22788;&#29702;&#30340;&#23558;&#19981;&#20250;&#34987;&#22788;&#29702;&#65292;&#30452;&#25509;&#20002;&#25481;&#12290;&#36825;&#20010;&#20540;&#21487;&#20197;&#25913;&#24471;&#26356;&#22823;&#65306;
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows] USERPostMessageLimit&#65292;&#26368;&#23567;&#21487;&#20197;&#26159; 4000

MSDN Magazine C++ Q&amp;A [2000/12]

"David Lowndes" wrote:

&gt; &gt;I think the primary reason to introduce PostQuitMessage was because there
&gt; &gt;was no PostThreadMessage in Win16.
&gt;
&gt; As there weren't any threads it'd have been difficult ;)
&gt;
&gt; &gt;It may also make sure that all pending messages in the queue are handled
&gt; &gt;before the loop breaks. PostMessage(WM_QUIT) may not give such guarantee.
&gt;
&gt; Yes that's certainly a possibility.
&gt;
&gt; Dave
&gt; --
&gt; MVP VC++ FAQ: http://www.mvps.org/vcfaq
&gt; 

352942027577557
http://www.fileformat.info/format/ms-obj/corion.htm
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note5</guid></item><item><title>&#24494;&#36719;&#40736;&#26631;&#30828;&#20214;&#32500;&#20462;&#20013;&#24515;&#30340;&#20449;&#24687;&#65306;&#21271;&#20140;&#24066;&#28023;&#28096;&#21306;&#21271;&#22235;&#29615;&#35199;&#36335; 52 &#21495;&#20013;&#33455;&#22823;&#21414; 16 &#23618; 1602 &#23460;&#65292;82697247&#12290;</title><description>&#24494;&#36719;&#40736;&#26631;&#30828;&#20214;&#32500;&#20462;&#20013;&#24515;&#30340;&#20449;&#24687;&#65306;&#21271;&#20140;&#24066;&#28023;&#28096;&#21306;&#21271;&#22235;&#29615;&#35199;&#36335; 52 &#21495;&#20013;&#33455;&#22823;&#21414; 16 &#23618; 1602 &#23460;&#65292;82697247&#12290;

http://www.vmwarechina.com/dl/VMware/Workstation/2009/02/10/34.html</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note4</guid></item><item><title>DWORD GetProcessMemUsage(DWORD pid)</title><description>    DWORD GetProcessMemUsage(DWORD pid)
    {
        DWORD total = 0;
        HANDLE hSnapHeapList = CreateToolhelp32Snapshot( TH32CS_SNAPHEAPLIST, pid );
        if (hSnapHeapList == INVALID_HANDLE_VALUE)
        {
            return 1;
        }

        HEAPLIST32 hl32;

        memset( &amp;hl32, 0, sizeof(HEAPLIST32) );
        hl32.dwSize = sizeof(HEAPLIST32);

        if (Heap32ListFirst( hSnapHeapList, &amp;hl32 ))
        {
            do
            {
                HEAPENTRY32 he32;
                he32.dwSize = sizeof(HEAPENTRY32);

                if (Heap32First( hSnapHeapList, &amp;he32, pid, hl32.th32HeapID ))
                {
                    do
                    {
                        if ( he32.dwFlags == LF32_FIXED )
                        {
                            total += he32.dwBlockSize;
                        }
                    } while (Heap32Next( hSnapHeapList, &amp;he32 ));
                } // if

            } while (Heap32ListNext( hSnapHeapList, &amp;hl32 ));
        } // if

        return total;

    }
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note3</guid></item><item><title>#include &amp;lt;mshtml.h&amp;gt;</title><description>#include &lt;mshtml.h&gt;
#include &lt;atlbase.h&gt;
#include &lt;oleacc.h&gt;

BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lParam)
{
	TCHAR buf[100];

	::GetClassName(hwnd, (LPTSTR)&amp;buf, 100);
	if(_tcscmp(buf, _T("Internet Explorer_Server")) == 0)
	{
		*(HWND*)lParam = hwnd;
		return FALSE;
	}

	return TRUE;
}

//You can store the interface pointer in a member variable 
//for easier access
void PlayDocInterface(HWND hWnd) 
{
	CoInitialize(NULL);

	// Explicitly load MSAA so we know if it's installed
	HINSTANCE hInst = ::LoadLibrary(_T("OLEACC.DLL"));
	if(hInst != NULL)
	{
		if(hWnd != NULL)
		{
			HWND hWndChild = NULL;
			// Get 1st document window
			::EnumChildWindows(hWnd, EnumChildProc, (LPARAM)&amp;hWndChild);
			if(hWndChild)
			{
				CComPtr&lt;IHTMLDocument2&gt; spDoc;
				LRESULT lRes;

				UINT nMsg = ::RegisterWindowMessage(_T("WM_HTML_GETOBJECT"));
				::SendMessageTimeout(hWndChild, nMsg, 0L, 0L, SMTO_ABORTIFHUNG, 1000, (DWORD*)&amp;lRes);

				LPFNOBJECTFROMLRESULT pfObjectFromLresult = (LPFNOBJECTFROMLRESULT)::GetProcAddress(hInst, _T("ObjectFromLresult"));
				if(pfObjectFromLresult != NULL)
				{
					HRESULT hr;
					hr = (*pfObjectFromLresult)(lRes, IID_IHTMLDocument, 0, (void**)&amp;spDoc);
					if(SUCCEEDED(hr))
					{
						CComPtr&lt;IDispatch&gt; spDisp;
						CComQIPtr&lt;IHTMLWindow2&gt; spWin;
						spDoc-&gt;get_Script(&amp;spDisp);
						spWin = spDisp;
						spWin-&gt;get_document(&amp;spDoc.p);

						// Change background color to red
						spDoc-&gt;put_bgColor(CComVariant("red"));

						spWin-&gt;execScript(CComBSTR("document.all[\'AdContainer\'].outerHTML = \'\';"), CComBSTR("JavaScript"), &amp;CComVariant());
					}
				}
			} // else document not ready
		} // else Internet Explorer is not running

		::FreeLibrary(hInst);
	} // else Active Accessibility is not installed

	CoUninitialize();
}
</description><guid isPermaLink="true">http://www.aypwip.org/webnote/dandy#note0</guid></item></channel></rss>
