Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

masaniparesh

@masaniparesh
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Check windows workstation is locked or not
    M masaniparesh

    Hi Friends, I have written below code for checking whether windows machine is locked or not but its gives always window is locked though its not locked. Could anyone suggest what is wrong here or can give alternative solution? bool lockedHost = false; HMODULE hUser32; FARPROC LockWorkStation; hUser32 = GetModuleHandle("user32.dll"); if (hUser32) { LockWorkStation = GetProcAddress(hUser32, "LockWorkStation"); if (LockWorkStation) { lockedHost = true; MessageBox(0, "locked1", "Info", MB_OK); } } Thanks in advanced, Paresh

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups