Check if a process is running under the current user (not by using
the user names)
Wed, 27 Aug 2008 10:53:43 +0530
Hi,
I am trying to check if a process is running under the same
credential/user as my application. I can do that by getting the user
names for both the process, but I am looking for more efficient way by
comparing the user tokens/SID.
Using GetTokenInformation & LookupAccountSid, I can get the SID of the
...
|
auditing NTFS security settings
Mon, 25 Aug 2008 18:01:07 +0800
I have written a VC++6.0 utility that scans files and folders for various
reasons and I want to add the ability to check NTFS permissions. My reason
is to check which of my project leaders have been granted Full Control
rights to which files and/or folders and which users have been granted
rights by the proj ...
|
problems sharing folder for a specific user
Sun, 24 Aug 2008 14:39:51 -0300
I'm having trouble sharing a specific folder with set of rights for
specific user account. Can anyone shed some light on this, unclear to
me, issue?
Here is the code I use:
#include <windows.h>
#include <tchar.h>
#include <comdef.h>
#include <lm.h>
#include <aclapi.h>
#include <string>
#pragma commen ...
|
"Network Access: Allow anonymous sid/name translation"
programmatically
Sun, 24 Aug 2008 01:59:08 -0700 (PDT)
Hi I am looking for a way to programmatically check the value of
"Network Access: Allow anonymous sid/name translation". What I am
looking for is either what changes when this parameter is set (e.g.
registry keys) or a wmi class that gives access to this information.
Thanks ...
|
smart card to user token
Thu, 21 Aug 2008 13:30:29 -0400
Hello,
We have a client that prompts for username and password and then send this
to our server. Our server uses the supplied username and password in a call
to LogonUser() which returns the user's token. From the token we extract the
user's group membership.
A customer has asked if we can do the same wi ...
|
DLLs loaded from a GINA
20 Aug 2008 20:58:10 GMT
Is there anything special I need to do in order to load my own DLL from a
GINA? I tried it, and it works fine from a normal process... but at
least sometimes (I could have sworn it worked at some point, but not now
anyway), in a GINA, this leads to an error message indicating the GINA
DLL could not be loade ...
|
Network folder permission check
Wed, 20 Aug 2008 13:13:38 +0300
Hi,
I want to know what permissions are granted to the network folder with
read-only access. I have tried to use AccessCheck function and it
returns that I have full access on this folder.
I have given the code snippet here
HANDLE hToken;
PRIVILEGE_SET PrivilegeSet;
DWORD dwPrivSetSize = sizeof( PRIVI ...
|
|
|
WinVerifyTrust never returns
Tue, 19 Aug 2008 08:23:02 -0700
Hi all,
I've got the following problem with WinVerifyTrust when checking to see if a
dll is digitally signed by authenticode.
We have an application that downloads and extracts a 7zip file. One of the
files in this package is digitally signed by authenticode and checked for
validity after it is extracted ...
|
LogonUser failed with ERROR_PRIVILEGE_NOT_HELD in winnt machines
Tue, 19 Aug 2008 06:07:10 -0700 (PDT)
Hi,
I have been trying to create a process with different user credentials
in Windows NT machine using LogonUser and CreateProcessAsUser Win32
API function calls.
While calling the function LogonUser, it fails with the error
ERROR_PRIVILEGE_NOT_HELD 1314 or A required privilege is not held by
the client.
...
|
SSH key exchange
Sat, 16 Aug 2008 07:40:00 -0700
I am trying to implement SSH transport layer using crypto API and i have an
issue. Specifically my problem is that when i pass the server, my DH public
key i.e client computed 'e' the server disconnects the connection. The
SSH_MSG_KEXDH_INIT message containing the public key which the MS DH provider
gives me ...
|