CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: imclaren

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    815

    I had a chance to test this with Win2K Pro....

    I had a chance to test this with Win2K Pro. You're right...it doesn't shutdown.

    Turns out that VB apps don't have the correct privilege to shut down the system. See MS KB article 176695.
    ...
  2. Replies
    3
    Views
    815

    Want to try this? It uses the ExitWindowsEx API...

    Want to try this? It uses the ExitWindowsEx API call, so it should work with any version of Windows.

    I'd try it with Windows 2000, but my SQL server users would be annoyed <grin>!
  3. Replies
    1
    Views
    640

    You can find the path to the user's desktop by...

    You can find the path to the user's desktop by reading the 'Desktop' registry setting from

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

    (Assuming...
  4. Replies
    6
    Views
    5,001

    The printer.devicename gives you the same as...

    The printer.devicename gives you the same as ActivePrinter does in VBA. I guess this is OK for locally-attached printers but for network ones it gives you somethine like

    \\server\printer on NE01:...
  5. Replies
    6
    Views
    5,001

    Reading printer model name

    Hi,

    I'm looking for some sample code (VBA97 or VB6) for reading the model (driver?) name of a printer (the default printer would be fine).

    The ActivePrinter property gives me <printer path> on...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured