About this tag
The sample code tag on WindowsForum.com covers developer-focused content related to testing, SDKs, and application development for Windows platforms. Topics include using Internet Explorer Driver to test IE mode in Microsoft Edge, updates to C#/WinRT for .NET5, TraceProcessor for event tracing, dual-screen preview SDKs, C# console UWP applications, Visual Studio packaging projects, configuring apps to start at log-in, and building user interfaces with Windows.UI.Composition. These threads provide code examples and guidance for developers working with Windows technologies.
  1. V

    Creating an Analog Clock in Visual Basic: Tips and Guidance Needed

    How can you make an analog clock? Thanks! Sent from my SM-T110 using Tapatalk
  2. AceInfinity

    Windows 7 [C#] Marshalling, Pointers, Structs & Classes Full Example

    class ShapeClass { public unsafe Shape* Polygon; } struct Shape { public unsafe Shape(char* name, int numsides) { Sides = numsides; Name = name; } public unsafe char* Name; public int Sides; } private unsafe void MainMethod() { char[] name =...
  3. P

    Windows 7 Get Rotation Speed of Disk Sample Code

    Hi all! Im not really good at VC++ but does anyone have a sample code to get the rotation speed of disk in a computer. I have been working on detecting SSD drives and one solution from researching all day was to get the rotation speed and since SSD have 0 rpm this might be the only way to detect...
  4. V

    Windows 7 Credential Provider problem on Windows 7

    Hello, I am a software developer and I encounter a LogonUI problem on Windows 7 when I use a credential provider in particular conditions. I have modified the SampleHardwareEventCredentialProvider sample of the RTMCredentialProviderSamples__FINAL archive (Link Removed). The original sample...
  5. N

    Windows Vista Enumprinters API behaviour in Windows Vista

    Hello, my application has a feature that shows printers details as tree node and I use EnumPrinters API to fill nodes of this tree. i.e., the provider name, domain names and printer names etc. We have used Lazy loading concept in this tree formation. EnumPrinters API is called for any node level...