comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Determining when a user password expires         


Author: Jeffrey Adler
Date: Feb 7, 2008 17:44

Hi all-

I am using NetUserGetInfo to get info about a system user. I get a
USER_INFO_2 structure that answers most questions such as password age, etc.

What I cannot find is how to determine WHEN a users password will expire.

Does anyone have any suggestions?

Thanks,

Jeff.
3 Comments
  title-bar context menus         


Author: you can call me al
Date: Feb 7, 2008 14:33

Hello,

I have been using an application called PowerMenu (http://
www.abstractpath.com/powermenu/) for a while now and am interested in
writing something similar myself. This program adds items to the
title bar (and taskbar) context menu of all running applications. The
added options allow you to set priority, window transparency, and
toggle the "always on top" state for the particular window.

I would like to know how I can create my own program (using visual
studio preferably) that is able to extend the title-bar context menus
of other running applications as well as interface with those
applications to manipulate their window properties.

Any information or leads would really be helpful and very much
appreciated. I mostly do console programming and part of the problem
I'm having is that I don't know the technical terms I should be
searching for to get started.

Thanks,
M
1 Comment
  userinit         


Author:
Date: Feb 7, 2008 14:00

Hello all,

winlogon pass control to userinit once it has authenticated the user.
userinit, among other things, load the user profile.

This is the process i'd like to detail a little bit.

- In case the user profile is not yet created locally, is userinit
responsible to create it (copy from default one)?
- How userinit can know whether user profile is a roaming one? winlogon
didn't pass onlu security token to userinit?
- In case there is no GUID about the current user in the registry,
userinit create a new entry, right? what about if, in this case, the
user profile already exist in file system? Is it kept?

Thank you for your explanation.
1 Comment
  App data storage         


Author: halcyong
Date: Feb 7, 2008 10:29

I would like to store app data (on a windows 2000 or XP machine) by
appending a folder to the following directory:

"C:\Documents and Settings\UserName\Local Settings\Application Data".

With the exception of the Drive Letter and UserName, will this path
always be the same? That is, can it be modified by the user or
administrator such that the application would return an invalid path
error? If the latter is possible, are there any Win32 functions that
might return the modified path?

Thanks in advance.
3 Comments
  Determining when a user locks the desktop         


Author: mannewalis
Date: Feb 7, 2008 07:29

I would like to know when the user locks the desktop, and or switches
to another user account.

I took a look at the following, and had the following results...

1.)

WTSRegisterSessionNotification

I tried this, but for some reason on my machine, when I lock the
desktop, I do not get a notification. When I unlock the desktop, I get
both the WTS_SESSION_LOCK and WTS_SESSION_UNLOCK back to back.

2.)

I tried using OpenInputDesktop to see if it would fail if the desktop
was locked. It did not.

3.)

I tried using the above with GetThreadDesktop to compare handles, but
OpenInputDesktop appears to return a duplicated handle which is
frequently different.

4.)

I tried WTSQuerySessionInformation to retrieve the WTSConnectState,
but this appears to be active even when you have locked the desktop.
Show full article (0.98Kb)
10 Comments
  Link msvcrt statically in DLL project         


Author: Francis
Date: Feb 7, 2008 03:09

Hi,

I would like to know if it is possible to link to msvcrt statically in
a DLL project? My current solution is to link dynamically and silently
install the runtime together with the application. However this seems
like a hack to me, I'd prefer to simply link statically.

Francis
2 Comments
  Using Multiprocessor Untis         


Author: Gernot Frisch
Date: Feb 7, 2008 01:52

Hi,

is it possible to create a thread and use the 2nd processor of my Core 2 Duo
machine?

Can someone point me in the reight direction?

--
------------------------------------
Gernot Frisch
http://www.glbasic.com
2 Comments