Original Post
General programming, right?
I have an MFC app (used vc++ wizard to start project). It is dialog based. I want to be able to do the following...
: Hide window on minimize
: Show window on users command (below)
: Get a menu when user clicks on icon in the tray
: Get priviledges from Win NT/2K to shutdown the computer.
I have the shutdown working for W9x, and I can get an icon in the tray.
I tried working w/ the examples that are in the vc++ help... but I get an error (privileges) when I try to shutdown the computer.
My current process:
: GetToken && Handle for dialog
: LookupPrivilegeName
: AdjustTokenPriviledges
[there may be something missing, not sure since I don''t have my source w/ me]
any help?
~ me ~