[Sample Of June 4th] How to retrieve the Volume GUID of the Cluster Disks

  Sample Download : http://code.msdn.microsoft.com/CppClusterDiskDetails-ef261cc2 This sample demonstrates how to retrieve the Volume GUID of the Cluster Disks. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples…

0

[Sample Of Feb 2nd] How to print an image using ShellExecute

  Sample Download : http://code.msdn.microsoft.com/CSShellPrintImageWithShellE-adda9973 The sample demonstrates how to print an image using ShellExecute to invoke ImageView_PrintTo, equivalent to right clicking on an image and printing. Using the printto verb with ShellExecute may have unpredictable effects since this may be configured differently on different operating systems.  The approach demonstrated here invokes ImageView directly with…

0

[Sample Of Jan 22nd] How to retrieve the Volume GUID of the Cluster Disks

  Sample Download : http://code.msdn.microsoft.com/CppClusterDiskDetails-ef261cc2 This sample demonstrates how to retrieve the Volume GUID of the Cluster Disks.  You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples…

0

[Sample Of Jan 7th] How to detect arguments of another running process by using WMI

  Sample Download: CS Version: http://code.msdn.microsoft.com/CSDetectArgsOfAnotherProces-dccb66cc VB Version: http://code.msdn.microsoft.com/VBDetectArgsOfAnotherProces-fb6c8bc6 The code sample shows how to detect arguments of another running process by using WMI. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility…

0

[Sample Of Dec 10th] How to create and sign a cabinet file

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSCreateCabinet-117f3934 VB Version: http://code.msdn.microsoft.com/VBCreateCabinet-effd39ef The cabinet format provides a way to efficiently package multiple files. Creating and signing a cabinet is very useful to deploy IE ActiveX control or other products. To create a cabinet package, we can use the SDK supplied by WiX Toolset, then use signtool.exe to…

0

[Sample Of Nov 9th] How to add/remove catalog files using CAPI in C++

  Sample Download : http://code.msdn.microsoft.com/CppCATAdmin-6a7f5941 This program demonstrates how to add/remove catalog files from a Windows system (XP and higher) programmatically.  This can come in handy when installing third party filter drivers via your own installation program.  Catalog files, which include their digital signatures, can’t just be copied to the CATROOT directory in System32.  They…

0

[Sample Of Oct 10th] Get MAC of local Ethernet and Wireless80211

  Sample Download :  CS Version: http://code.msdn.microsoft.com/CSMACAddress-23db2a0a VB Version: http://code.msdn.microsoft.com/VBMACAddress-86df039b The sample demonstrates how to get the MAC of local Ethernet and Wireless80211 adapters or remote host using 3 approaches. 1. Use Win32 WMI classes. 2. Use IP Helper APIs. 3. Use NDIS WMI classes. You can find more code samples that demonstrate the most…

0

[Sample Of May 15th] File handle operations demo

  Sample Download : http://code.msdn.microsoft.com/CppFileHandle-baa56c07 This VC++ code sample demonstrates two typical scenarios of using file handles – enumerate file handles and get file name from a file handle. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio…

0

[Sample Of May 12nd] UAC self-elevation

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSUACSelfElevation-644673d3 VB Version: http://code.msdn.microsoft.com/VBUACSelfElevation-4c014507 Cpp Version: http://code.msdn.microsoft.com/CppUACSelfElevation-981c0160 User Account Control (UAC) is a new security component in Windows Vista and newer operating systems. With UAC fully enabled, interactive administrators normally run with least user privileges. This example demonstrates how to check the privilege level of the current process, and…

0

[Sample Of May 2nd] Create low-integrity process

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSCreateLowIntegrityProcess-d7cb5e4d VB Version: http://code.msdn.microsoft.com/VBCreateLowIntegrityProcess-4df197cc Cpp Version: http://code.msdn.microsoft.com/CppCreateLowIntegrityProces-8dd7731d   The code sample demonstrates how to start a low-integrity process. The application launches itself at the low integrity level when you click the “Launch myself at low integrity level” button on the application. Low integrity processes can only write to low…

0