<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Mao's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mao_chen/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mao_chen/feed.xml</link>
    <description>I am out of Microsoft Now. The connection can be reached by savy.ch@gmail.com</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:20:24 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Building Your Linked Notes support for OneNote 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/mao_chen/building-your-linked-notes-support-for-onenote-2010</link>
      <pubDate>Tue, 11 May 2010 01:12:00 GMT</pubDate>
      <dc:creator><![CDATA[maochen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mao_chen/2010/05/11/building-your-linked-notes-support-for-onenote-2010/</guid>
      <description><![CDATA[Building Your Linked Notes support for OneNote...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0cm 0cm 12pt" class=MsoTitle><STRONG><FONT size=7><EM><FONT face=Cambria>Building Your Linked Notes support for OneNote 2010<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></EM></FONT></STRONG></P>
<H1 style="MARGIN: 30pt 0cm 0pt"><EM><FONT size=5><FONT face=Cambria>Introduction<o:p></o:p></FONT></FONT></EM></H1>
<P style="MARGIN: 0cm 0cm 12pt" class=MsoNormal><FONT size=3><FONT face=Calibri><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Taking linked notes in Microsoft OneNote 2010 Beta makes it easy to do research on your computer by letting you take notes in a docked OneNote window on your desktop while you work side-by-side in other programs or in your Web browser. Notes taken in this mode are automatically linked by OneNote to whatever you’re looking at in Internet Explorer, in Word documents, in PowerPoint presentations, or on another OneNote page in any of your notebooks.<o:p></o:p></FONT></FONT></P>
<H1 style="MARGIN: 30pt 0cm 0pt"><EM><FONT size=5><FONT face=Cambria>Design<o:p></o:p></FONT></FONT></EM></H1>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Linked Notes Leverage COM technology to work with OneNote. The Running Object Table (ROT) is important to communication between applications with OneNote.<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>OneNote are monitor the last active window’s<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>classname. Using it to identify which object will be invoked. The registry list under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\OneNote\Linked Note Taking\NoteLinkContentServices] are used to help identify the GUID id. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN><o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto" class=MsoListParagraphCxSpMiddle><FONT size=3><FONT face=Calibri>Rest of the value meaning:<o:p></o:p></FONT></FONT></P>
<P style="MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto" class=MsoListParagraphCxSpMiddle><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<TABLE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; MARGIN: auto auto auto 54pt; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184" class=MsoTableGrid border=1 cellSpacing=0 cellPadding=0 class="MsoTableGrid">
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 131.35pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt" vAlign=top width=175>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpMiddle><FONT size=3><FONT face=Calibri>(Default)<o:p></o:p></FONT></FONT></P></TD>
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 238.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" vAlign=top width=318>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpLast><FONT size=3><FONT face=Calibri>Application Path , used to get the application icon in OneNote<o:p></o:p></FONT></FONT></P></TD></TR>
<TR style="mso-yfti-irow: 1">
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 131.35pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=175>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpFirst><FONT size=3><FONT face=Calibri>SupportLinkingToContent<o:p></o:p></FONT></FONT></P></TD>
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 238.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=318>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpLast><FONT size=3><FONT face=Calibri>If you need to navigate to some offset, set it to 1. <o:p></o:p></FONT></FONT></P></TD></TR>
<TR style="mso-yfti-irow: 2; mso-yfti-lastrow: yes">
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 131.35pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=175>
<P style="TEXT-ALIGN: center; LINE-HEIGHT: normal; MARGIN: 0cm 22pt 0pt 0cm; mso-add-space: auto" class=MsoListParagraphCxSpFirst align=center><FONT size=3><FONT face=Calibri>WindowClassNames<o:p></o:p></FONT></FONT></P></TD>
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: #f0f0f0; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 238.25pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: #f0f0f0; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=318>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpLast><FONT size=3><FONT face=Calibri>Application top window class name, get it by spy++.</FONT></FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-add-space: auto" class=MsoListParagraphCxSpLast><FONT size=3><FONT face=Calibri>OneNote is monitor window class name for last active window. If match one of these, then OneNote start to get the link.</FONT></FONT></P></TD></TR></TBODY></TABLE>
<P style="MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto" class=MsoListParagraphCxSpFirst><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><FONT size=3>The GUID will be used in querying ROT object from OneNote, by adding the Content Service header {!14BED0B9-4DA5-4826-AFA0-3C9D1AE782C5##}.<BR>For example:<BR><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>IE content Service ID = “!14BED0B9-4DA5-4826-AFA0-3C9D1AE782C5##C5859006-55D2-4DCD-9647-0428C317AF94”<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-fareast-font-family: Cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: Cambria; mso-bidi-theme-font: major-latin; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><SPAN style="mso-list: Ignore"><FONT size=3>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>While taking linked Notes. OneNote will try to query the ID, then try to call </FONT><SPAN style="LINE-HEIGHT: 200%; FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">get_CurrentLocation() and get_Thumbnail().</SPAN><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-fareast-font-family: Cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: Cambria; mso-bidi-theme-font: major-latin; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><SPAN style="mso-list: Ignore"><FONT size=3>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>While navigate back to application, OneNote will query the ID first. If no com object found by id, OneNote will try to do ShellExecute to launch the application. Then wait 30 seconds,<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>finally get the com object and call<SPAN style="mso-spacerun: yes">&nbsp; </SPAN></FONT></FONT><SPAN style="LINE-HEIGHT: 200%; FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">NavigateTo()</SPAN><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><o:p></o:p></SPAN></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>6.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin">Here is a tricky solution. For link url, you can note use ShellExecute to launch the application. Creating a new shell protocol will solve it.</SPAN><FONT face=Calibri> Reference the link to know how to create a new protocol:</FONT></FONT><B><SPAN style="LINE-HEIGHT: 200%; FONT-FAMILY: 'Segoe UI','sans-serif'; COLOR: #3f529c; FONT-SIZE: 19pt"> </SPAN></B><A href="https://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx" mce_href="https://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx"><B><SPAN style="LINE-HEIGHT: 200%; FONT-FAMILY: 'Segoe UI','sans-serif'; FONT-SIZE: 8pt; mso-bidi-font-size: 19.0pt"><FONT color=#0000ff>Registering an Application to a URL Protocol</FONT></SPAN></B></A><FONT face=Calibri><SPAN style="LINE-HEIGHT: 200%; FONT-SIZE: 3pt; mso-bidi-font-size: 11.0pt"> .</SPAN><o:p></o:p></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>7.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>I </FONT><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin">Creat</SPAN><FONT face=Calibri>ed protocol for Firefox and Chrome with<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 99.25pt; mso-add-space: auto; mso-list: l1 level1 lfo2" class=MsoListParagraphCxSpMiddle><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><FONT size=3>Firefox://https://www.microsoft.com<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 99.25pt; mso-add-space: auto; mso-list: l1 level1 lfo2" class=MsoListParagraphCxSpMiddle><SPAN style="FONT-FAMILY: Symbol; mso-fareast-font-family: Symbol; mso-bidi-font-family: Symbol"><SPAN style="mso-list: Ignore"><FONT size=3>·</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri><FONT size=3>Chrome://https://msdn.microsoft.com<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-list: l2 level1 lfo1" class=MsoListParagraphCxSpMiddle><SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-fareast-font-family: Cambria; mso-fareast-theme-font: major-latin; mso-bidi-font-family: Cambria; mso-bidi-theme-font: major-latin; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><SPAN style="mso-list: Ignore"><FONT size=3>8.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>when communicating with OneNote in </FONT><SPAN style="LINE-HEIGHT: 200%; FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">get_CurrentLocation(),</SPAN><FONT size=3><FONT face=Calibri>Building your Application URL in format:<SPAN style="FONT-FAMILY: 'Cambria','serif'; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: major-bidi; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin"><o:p></o:p></SPAN></FONT></FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 54pt; mso-add-space: auto; mso-layout-grid-align: none" class=MsoListParagraphCxSpLast><SPAN style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt">notelink://{GUID ID for your application}/{your link address}/{document offset}<o:p></o:p></SPAN></P>
<H1 style="MARGIN: 30pt 0cm 0pt"><EM><FONT size=5><FONT face=Cambria>HowTo<o:p></o:p></FONT></FONT></EM></H1>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Build your application or extension.<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Implement the COM interface: INoteLinkContentService<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>When booting application, register the COM object to ROT by invoke ROT function.<o:p></o:p></FONT></FONT></P>
<TABLE style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; MARGIN: auto auto auto 36pt; BORDER-COLLAPSE: collapse; BORDER-TOP: medium none; BORDER-RIGHT: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-yfti-tbllook: 1184" class=MsoTableGrid border=1 cellSpacing=0 cellPadding=0 class="MsoTableGrid">
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<TD style="BORDER-BOTTOM: windowtext 1pt solid; BORDER-LEFT: windowtext 1pt solid; PADDING-BOTTOM: 0cm; BACKGROUND-COLOR: transparent; PADDING-LEFT: 5.4pt; WIDTH: 442.8pt; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; BORDER-RIGHT: windowtext 1pt solid; PADDING-TOP: 0cm; mso-border-alt: solid windowtext .5pt" vAlign=top width=590>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt">void</SPAN><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"> CContentService::Register()<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">{<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CComPtr&lt;IRunningObjectTable&gt; spiROT;<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>HRESULT hr = GetRunningObjectTable(0, &amp;spiROT);<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><I><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><o:p>&nbsp;</o:p></SPAN></I></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (SUCCEEDED(hr))<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CComPtr&lt;IMoniker&gt; spiMoniker;<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>hr = CreateItemMoniker(L<SPAN style="COLOR: #a31515">"!"</SPAN>, FF_ADDIN_CONTENTSERVICE_NAME, &amp;spiMoniker);<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><I><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><o:p>&nbsp;</o:p></SPAN></I></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (SUCCEEDED(hr))<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>hr = spiROT-&gt;Register(ROTFLAGS_REGISTRATIONKEEPSALIVE, <SPAN style="COLOR: blue">this</SPAN>, spiMoniker, &amp;m_dwCookie);<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">if</SPAN> (SUCCEEDED(hr))<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">return</SPAN>;<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>}<I><o:p></o:p></I></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 18pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">}<I><o:p></o:p></I></SPAN></P></TD></TR></TBODY></TABLE>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpFirst><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>And Revoke the COM objects when closing the application.<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpMiddle><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Adding registry item in installation script for content service.<o:p></o:p></FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><SPAN style="mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>6.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3><FONT face=Calibri>Adding customized protocol in HKCR.</FONT></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><FONT size=3><FONT face=Calibri></FONT></FONT>&nbsp;</P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><FONT size=3 face=Calibri>And you may get the Firefox and Chrome extension source code from sky drive(can not upload 6.5MB document to MSDB blogs)</FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><FONT size=3 face=Calibri>link: <A href="https://cid-1af201418b02d448.skydrive.live.com/browse.aspx/%E5%85%AC%E5%85%B1?lc=1033" mce_href="https://cid-1af201418b02d448.skydrive.live.com/browse.aspx/%E5%85%AC%E5%85%B1?lc=1033">https://cid-1af201418b02d448.skydrive.live.com/browse.aspx/%E5%85%AC%E5%85%B1?lc=1033</A></FONT></P>
<P style="TEXT-INDENT: -18pt; MARGIN: 0cm 0cm 12pt 36pt; mso-list: l0 level1 lfo3; tab-stops: 53.2pt" class=MsoListParagraphCxSpLast><FONT size=3 face=Calibri>Thanks for your interests. I am moving to new working area. :)</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>The Chrome Linked Notes support will come out soon here</title>
      <link>https://docs.microsoft.com/archive/blogs/mao_chen/the-chrome-linked-notes-support-will-come-out-soon-here</link>
      <pubDate>Fri, 30 Apr 2010 10:54:00 GMT</pubDate>
      <dc:creator><![CDATA[maochen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mao_chen/2010/04/30/the-chrome-linked-notes-support-will-come-out-soon-here/</guid>
      <description><![CDATA[Updated to support latest Chrome 5.0.375.70.
--------------------------------------------
I need...]]></description>
      <content:encoded><![CDATA[<p>Updated to support latest Chrome 5.0.375.70.</p>
<p>--------------------------------------------</p>
<p>I need to write a protocol handler to handle URL as"chrome://https://test.com"&nbsp;</p>
<p>Also the Firefox has the same issue. </p>
<p>But all other function works.</p>
<p>To be continued.&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/10/00/54/01/ChromeLNT.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-00-54-01/ChromeLNT.zip">ChromeLNT.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Linked Notes Taking in OneNote 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/mao_chen/linked-notes-taking-in-onenote-2010</link>
      <pubDate>Sun, 21 Feb 2010 23:41:00 GMT</pubDate>
      <dc:creator><![CDATA[maochen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mao_chen/2010/02/21/linked-notes-taking-in-onenote-2010/</guid>
      <description><![CDATA[OneNote 2010&nbsp;will come out this year as new core application in Microsoft Office suite. My team...]]></description>
      <content:encoded><![CDATA[<P>OneNote 2010&nbsp;will come out this year as new core application in Microsoft Office suite. My team contributes Linked Notes feature individually, which helps people to create 2-way links between notes and original document/web page.</P>
<P>Introduction to OneNote 2010: &nbsp;https://www.onenotehelp.com&nbsp;</P>
<P>Introduction to Linked Notes in OneNote:&nbsp;https://www.onenotehelp.com/2009/11/19/take-linked-notes-in-onenote-2010/</P>
<P>As people requested, I had done the FireFox support for Linked Notes(non-official bits&nbsp;from Microsoft) as a FF addon last year. The Google Chrome browser may be the next target application. Due to the <A title=IKLA href="https://www.adobe.com/devnet/reader/ikla.html" target=_blank mce_href="https://www.adobe.com/devnet/reader/ikla.html">Adobe license&nbsp;limitation</A>, the Acrobat Reader plugin to support Linked Notes goes to death.</P>
<P>The FF addon bits will come out soon here.</P>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/09/96/72/59/Firefox.zip" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-09-96-72-59/Firefox.zip">Firefox.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Here am I.</title>
      <link>https://docs.microsoft.com/archive/blogs/mao_chen/here-am-i</link>
      <pubDate>Sat, 20 Feb 2010 01:25:00 GMT</pubDate>
      <dc:creator><![CDATA[maochen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mao_chen/2010/02/20/here-am-i/</guid>
      <description><![CDATA[It's a new beginning to writing my thoughts/ideas on MSDN Blog. 
Wish this will help you.]]></description>
      <content:encoded><![CDATA[<P>It's a new beginning to writing my thoughts/ideas on MSDN Blog. </P>
<P>Wish this will help you.</P>]]></content:encoded>
    </item>
  </channel>
</rss>