Can we use MIP SDK to apply sensitivity labels to SharePoint Online files? - microsoft365

Can we use MIP SDK to apply sensitivity labels to SharePoint Online files. If yes, please provide the reference/sample code to apply the sensitivity label.

No, this isn't directly supported today. You must pull the label down from SharePoint, use the SDK to label, then write the file back to SharePoint.
Alternatively, there are Graph APIs to apply the label.
https://www.linkedin.com/pulse/programatic-way-apply-sensitivity-label-file-sanjoyan-mustafi/

Related

How to load font from resource using dwrite API?

I want to load a font from a compiled resource which is the program itself. I can load it using AddFontMemResourceEx when I was using GDI. However, direct 2D has it own Dwrite API which is not compatible with GDI. The official document suggests using CreateCustomFontFileReference + CreateCustomFontCollection. Could anyone give me an example how to do it?
Take a look at the DirectWriteCustomFontSets sample in the microsoft/windows-classic-samples repo on GitHub (here). It demonstrates five scenarios using a custom font set, and based on your question it sounds like case 4 would apply to your situation: "Creates a custom font set using font data contained in in-memory buffers."
For this scenario, the key interface is IDWriteInMemoryFontFileLoader, which was added in the Windows 10 Creators Update (spring 2017).
The specific files in the sample project that will be most relevant are:
CustomFontSetManager.h/.cpp — this includes members applicable to the other scenarios as well
BinaryResources.h/.cpp
Document.h/.cpp — this is described as simulating a document file containing the font data (e.g., a .doc file), but it could be any kind of binary.

How to fetch Edge browsing history programmatically? Is there is any way using COM/Windows API to fetch it? [duplicate]

I used FindFirstUrlCacheEntry/FindNextUrlCacheEntry Win API to get Internet Explorer's history programmatically in C++.
Can you tell me how to get Microsoft Edge History using C++ (Windows API)?
Not possible at this point in time. Might want to use the 'suggestions routes' at some of the links below.
Developer Feedback Home - https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer
Developer Feedback Twitter - https://www.twitter.com/msedgedev
Feature Suggestions - https://windowsphone.uservoice.com/forums/101801-feature-suggestions/category/18985-web-browsing
Healy in Tampa
The history is stored in \AppData\Local\Microsoft\Windows\WebCache\WebCacheV01.dat. It uses Microsoft’s Extensible Storage Engine to store data. There is a C++ wrapper for accessing Extensible Storage Engine files I've used to access data from this file.
The "Containers" table inside WebCacheV01.dat tells which "Container_X" tables have type of "Content" or "History", as well as the Secure Directories and their order. You can use the ESEDatabaseView utility to view the data inside the WebCacheV01.dat file.

Disable layers (like roads) on map visualization in PowerBI

I've created a really simple PowerBI report based on some dummy data in a CSV. It looks like this:
To repro my scenario just input any kind of map data like the single number shown above, and plot it in a map visualization with all the default settings.
The map has a lot of clutter, mostly caused by the roads and their names (and to a lesser extent by the city names). Is there any way to disable layers in the map visualization?
I've tried to answer my own question by:
Going through all of the individual settings on the map visualization;
Using some Google-fu to find my answer, skimming the most promising result and a secondary set of "tips and tricks";
Re-watching the appropriate parts of the Pluralsight course on PowerBI;
But haven't found a way to do this yet.
Am I missing something? Or is it just not possible?
The default map/filled map visuals in Power BI are limited in terms of options such as decluttering the map (even compared to maps in Excel 2016).
One option (possibly the only one right now) is to use the ArcGIS maps, which you can enable under Options and Settings > Preview Features > ArcGIS Maps for Power BI. (It is a Preview Feature). Once enabled, you can select the visual at the end of your list of visualizations.
These do allow for finer-grained control. For example, you can click the In-Focus Edit Mode button at the top-right on the ArcGIS map and then choose Basemap to change to a gray map.
ArcGIS maps can also show a base layer, such as population density (which I think you had asked about in another question).
There are certainly some considerations when using this feature (it is a preview feature, and your data is going to Esri rather than Bing to be plotted).
Introductory Blog Post: https://powerbi.microsoft.com/en-us/blog/announcing-arcgis-maps-for-power-bi-by-esri-preview/
More Information: http://www.esri.com/software/arcgis/arcgis-maps-for-power-bi

Enumerating Microsoft Edge History Programmatically

I used FindFirstUrlCacheEntry/FindNextUrlCacheEntry Win API to get Internet Explorer's history programmatically in C++.
Can you tell me how to get Microsoft Edge History using C++ (Windows API)?
Not possible at this point in time. Might want to use the 'suggestions routes' at some of the links below.
Developer Feedback Home - https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer
Developer Feedback Twitter - https://www.twitter.com/msedgedev
Feature Suggestions - https://windowsphone.uservoice.com/forums/101801-feature-suggestions/category/18985-web-browsing
Healy in Tampa
The history is stored in \AppData\Local\Microsoft\Windows\WebCache\WebCacheV01.dat. It uses Microsoft’s Extensible Storage Engine to store data. There is a C++ wrapper for accessing Extensible Storage Engine files I've used to access data from this file.
The "Containers" table inside WebCacheV01.dat tells which "Container_X" tables have type of "Content" or "History", as well as the Secure Directories and their order. You can use the ESEDatabaseView utility to view the data inside the WebCacheV01.dat file.

MS Word/ ODF Automation in Qt

How can I perform automation of MS Word documents (.doc) or ODF documents (.odt) in Qt 4.5? I know using the QAxWidget, QAxObject.
I have data (QString) and few images as well. I have to add them into the document. I googled but I couldn't find any commands for MS- Word/ ODF. But I want the specific commands that should be passed in QAxObject::dynamicCall() function to perform my operations.
For e.g in MS Excel we have to use something like,
excel.querySubObject("ActiveWorkBook");
which will return the object of the Active workbook of the Excel document.
What are all the commands that are available for the generation of MS-Word or ODF (odt) documents? I am using Windows XP. Any links, examples are welcome..
Take a look at http://doc.trolltech.com/qq/qq27-odfwriter.html, Qt provides functionality to create OpenDocument Format (ODF) files.
The ActiveX commands related to the MS Word can be obtained by the VBAWD10.chm that is being installed along with MS - Word.
The details of the ActiveX help documents available can be obtained here.
The toughest part is to conform those in such a way that it can accessed through the ActiveQt Module.
I provided a similar solution to my question here
Hope it helps for those who are all looking similar solutions..