Example Code

Access computer name by calling Dynamic Link Library (DLL) using shared library function in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview

Demonstrates how to access computer name by calling a Dynamic Link Library (DLL) using shared library function.

 

Description
The example calls a shared library function with path C:\Windows\System32\kernel32.dll to access to Computer Name and number of character.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the program
  2. The Computer Name and the Number of Characters will be displayed

 

Additional Information or Resources

VI Block Diagram

 

BD.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.