comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
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
  SetEntriesinAcl and SetSecurityDescriptorControl issue         


Author: ps8177
Date: Jan 11, 2008 17:17

I am sorry if I am posting this to the wrong group.

I am trying to set explicit access to a file and I need some
clarification.

I create a PACL using SetEntriesInAcl() with the EXPLICIT_ACCESS
structure array having 4 members. The call succeeds but in the
debugger I see that in the PACL structure created, the aceCount is 1.
Shouldn't it be 4?

Also immediately after the call I am calling
GetExplicitEntriesFromAcl() and am getting garbage. Should this not
give me back the EXPLICIT_ACCESS structure I just set?
Show full article (1.41Kb)
3 Comments
  Re: Toolbar icons with different image sizes         


Author: Francis
Date: Jan 11, 2008 12:23

On 10 jan, 22:31, Christian ASTOR wrote:
> Francis wrote:
>> I am creating an internet explorer toolbar that has toolbar buttons
>> where most buttons have an icon of 16 pixels in width and height.
>> However there is one button that is has 80x16 size and is used as a
>> drop-down menu.
>
>> Adding the large icon to the toolbar gives funny results. The large
>> icon is chopped up in icons of 16x16. The large button receives the
>> first piece, and all the icon buttons after it get a following piece
>> of it instead of their own icon.
>
>> I figure that the large icon is interpreted as adding 5 icons. This
>> despite the fact that I use TB_ADDBITMAP with wParam=1, meaning that
>> the image only contains one bitmap.
>
>> Can anyone help me with this problem?
>
> TB_ADDBITMAP adds bitmaps to the Toolbar ImageList, which has images of
> the same size. ...
Show full article (1.25Kb)
no comments
  how to detect Smart card login ?         


Author: Johni
Date: Jan 11, 2008 09:35

Hi,
Is there a way or api to know if the current user did a smart card
logon ?
thanks
J.
1 Comment
  Re: Readfile hangs while trying to read the response from printer         


Author:
Date: Jan 11, 2008 09:32

You can also use asynchronous/overlapped IO and then wait for input, but you
can do other things in addition to wait.

The printer driver probably has a way to determine if input is available,
but you must refer to the documentation; we don't know what the
documentation for your printer driver says.

"hari" gmail.com> wrote in message
news:722ce690-2dde-4acd-ad74-93b772f9cec7@v46g2000hsv.googlegroups.com...
> Hi all,
> Im trying to send a comamnd to the printer and read the
> response...
Show full article (1.48Kb)
2 Comments
  check lotto         


Author: Argi
Date: Jan 11, 2008 08:57

Hello, anyone wants to try my program.
It generates on every run 8 rows of six numbers.
So, you play almost all the numbers, (except one - never mind ;-)) )
It is difficult to play all the numbers only with the pen, difficult to find
what numbers you didn't play. So this program makes easy to do it.

I have more programs to upload in the future, stay tuned.

Good luck

Argi
http://lotto-free.blogspot.com/
1 Comment
  Re: Service App Unable To Get The File Size In A Mapped Drive         


Author:
Date: Jan 11, 2008 07:50

"Sonic.." gmail.com> wrote in message
news:84cd29df-6f6f-474a-8c83-4d8d220d39d0@i7g2000prf.googlegroups.com...
>I am working on a file monitor. My application runs as a service in
> the SYSTEM account. Now whenever i try to get the file size of a file
> that is present on a mapped network drive then i am unable to get the
> same. The function fails.
>
> The same happens without any problem if my exe runs in application
> mode. I can get the file size. So does it mean i cannot get the file
> size if my app is running as a service. if so then how can i obtain
> the size.

Mapped drives do not exist in a service. If your service has the
appropriate permissions on the network drive you can access the drive using
the UNC naming convention: \\\

--
Scott McPhillips [VC++ MVP]
no comments
  SPAM: Tweaks for XP         


Author: Leonard Grey
Date: Jan 11, 2008 06:25

---
Leonard Grey
Errare humanum est

456 wrote
---
Leonard Grey
Errare humanum est

456 wrote:
no comments
  Calling an executable that runs on the command line and fetching return values         


Author: Water Cooler v2
Date: Jan 11, 2008 05:26

I've done a lot of API stuff in my time, real hardcore but am a bit
out of touch now.

From within my VB.NET WinForms app, I want to call an external
executable. The said executable runs on a command line and takes two
params.

Calling the executable is no biggie. I could use the old VB 6 shell,
or the Win32 API ShellExecuteEx or CreateProcess to fork a new
process. The problem is getting the status of the process and its
return values of success of failure.

Can you please help?
4 Comments