#include <Windows.h>
const char * sharedFolder = "..."; DWORD attFolder = GetFileAttributes(sharedFolder);
using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern bool LockWorkStation();