Will ReportEvent to do the right thing with lpUserSid parameter and not modify it?

Hi all,
this function has a parameter documented as "__In__ PSID lpUserSid". I have a
const SID*  on my hands.
Can I safely const_cast the constness away here? Doing that seems to work, but I am trying to get additional assurance.
I am also pointing a finger at ReportEvent function, as it really looks like this parameter should be "const" ;-).
TIA,
Goran.

Hi Goran,
Can I safely const_cast the constness away here? Doing that seems to work, but I am trying to get additional assurance.
I think it is ok to remove the const attribute from the struct. You just need to make sure that you don't modify SID and it is uniquely identified in the system. If you don't want to remove the const attribute from the struct,you could create a temporary
variables to store the value of const SID* and pass it to ReportEvent function. Something like this:
const SID* cpSid;//you have this.
SID sid;
sid = *cpSid;
The security identifier (SID) is an account identifier. The SID is variable in length and encapsulates the hierarchical notion of issuer and identifier. more information refer to here:
2.3 Security Identifiers (SIDs)
Hope this helps some.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • A small but very irritating bug in Mail: after pressing the spacebar after typing an apostrophe in a word such as "we're", the cursor moves to the left i.e. backwards, and not to the right, effectively deleting a space and not creating one.

    When composing an email in Mac Mail I've noticed a small but very irritating bug: pressing the spacebar after typing an apostrophe in a word, e.g. "we're", the cursor moves to the left i.e. backwards, and not to the right, effectively deleting a space and not creating one.
    Any ideas?

    I just recreated this problem on my iMac (wired KB, no wireless KB) by changing Mail > Preferences > Composing > Spellcheck from "as I type" to "never". Then type a contraction ending in 're and the space bar causes the cursor to jump back as others have stated, to the spot 'r|e
    Next, I went into System Preferences > Keyboard > Text, and turned off "use smart quotes" and the problem went away again.
    From this point (smart quotes off, spell checking never), if I turn Smart Quotes ON, the problem returns.
    The problem is dependent on the state of both settings.
    The spacebar in Mail "works" if I have either of the following setting combinations:
    Keyboard: smart quotes OFF, Mail: check spelling ANY SETTING
    Keyboard: smart quotes ON, Mail: check spelling AS I TYPE
    Other combinations FAIL
    Keyboard: smart quotes ON, Mail: Check spelling NEVER
    Keyboard: smart quotes ON, Mail: Check Spelling WHEN I CLICK SEND
    Looks to me like there's a bug in Mail > Preferences > Check spelling > NEVER and WHEN I CLICK SEND that interacts badly with Keyboard > Smart quotes ON.
    Thanks.
    Todd Smithgall

  • My iphone 4s screen turned freaked out before my eyes, changing all different colours, now it is blue and black along the right side with horizontal lines, and is flickering. I DIDN'T DROP IT.

    I was just sitting on the couch scrolling through facebook, I closed out of that and went to open safari, when it spazzed out, for a few mintutes it looked like LSD vision, it was all different colours and flickering the whole time. I turned it off and on again, and plugged it into my computer and now the right side is nearly completely blue, and bleeds to the left side with horizontal lines, and it is still flickering. I just finished paying the **** thing off. I thought I'd get another year out of it. I have taken exemplary care of it and it hasn't left the case since the day I bought it. I haven't dropped it, there was no warning for the screen to start doing this. So my question is, is there an easy fix (I am about to restore and update it, and I already played around with the screen brightness), and if not, am I going to have to pay for the screen to be replaced, because I don't have that kind money.

    Probably sounded funnier in your head.

  • My friend should be able to sync her iPad and iPod so that she can stream information between the two devices and her computer. Her brothers were right next to her and did the same thing with there devices and same settings and it worked for them.

    What would have went wrong because she should have been able to sync all three together at the same time? Her I pad is new so  restoring may be an option to make sure her settings are correct for this process. She doesn't use iCloud so she backs her information up to her computer.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • Why Can't VZ do the Right Thing For Once and Permit Network Extender Owners to Close their Networks?

    Given the fact that the Network Extender can be set for managed access or open access, clearly it can technologically be configured so that a closed network could be set up so that ONLY those users that are included in the "priority list" could access the Network Extender.
    If I had to guess, Verizon, prefers to benefit from your internet connection and your investment in a network extender by bolstering their network in poor reception areas for all of their customers in the vicinity on us Network Extender owners' backs rather than to do the right thing and permit a customer who has paid for the device as well as their internet access to close the network. 
    I find this sleazy and hope VZW will rethink its approach to this.  We who subscribe to VZW for our cellular service pay the highest rates, on average, in the country for cell service.  We have also paid hundreds of dollars for the Network Extender, and pay for the internet that is used to facilitate the phone calls made through the network extender.
    Once it a while it would be nice if VZW did the right thing for its customers and not blatantly, at least, put their corporate greed about the needs of their customers. 

    I called Verizon tech support, and was informed that there is an option to close the Network Extender. This would allow only numbers on the white list to connect to the extender. Is the information I received incorrect? I spoke to them just the other day. Have you tried to configure the extender recently?
    My post asking for clarification is here: https://community.verizonwireless.com/message/1002928#1002928
    Thanks for any information you can provide.

  • How do I determine if the memory problems are with my imac and not the RAM?

    I've heard of some vague problems with intel imacs and their memory slots. I'm about to replace (for the 3rd time) RAM, and think I need to test further to see if the problem is with my imac and not the RAM. Right now I put back in the original 2-512 sticks that came with the imac, and the rember test is only showing 594mb (odd amt!) testing OK. But, in "about my mac" it will show as 1gb.
    Problems I've had with each set of RAM: occasional KP's, excessive spinning beachballs, sudden closing of apps (esp. if I have several apps running), won't fax usually (will hear a fax tone instead of a dial tone at the onset), disappearing documents section under my username.
    I bought this imac refurbed thru the apple store last fall: 2.16 C2D 20" imac
    Any ideas before I have to separate myself from my imac to send it in??

    Hi Toodles
    The pin strips on the new modules maybe a little thicker than your original modules, and it's going to take more force to seat them properly. If the new Memory Specifications are correct I would try them again. Slide them in untill they stop, then push real hard untill you feel them seat into place.
    I've never seen a report about an odd amount of ram shown. If reinstalling the ram modules does not solve your issue, and may be a indication that there is something wrong with one of the slots.
    Dennis
    17" iMac Intel Core Duo - 2GB Ram -   Mac OS X (10.4.10)   - Maxtor 300GB FireWire - Creative Inspire 2.1 - 2G Nano

  • I have a red vertical line on the right side of my screen and it will not go away tried restarting my computer and that didn't help at all, please help me with this problem it is kind of annoying

    I have a red vertical line on the right side of my screen and it will not go away tried restarting my computer and that didn't help at all, please help me with this problem it is kind of annoying

    If it's a thin 1 pixel wide vertical line it's highly likely it could be caused by a defective LCD.
    One quick basic way to check is to note the position of the line. Then go to System Preferences, Displays, and lower the resolution. If ther line moves it's on the video and the logic board or video card if fitted is likely to be defective. If the line stays in the same position it's likely to be an LCD fault. Either way to have it repaired you'll need to visit an Apple store or AASP.
    The worst offender for this problem is the Late 2006 17" iMac. FOC replacement of the LCD used to be covered by a quality program, but it's now ended.
    Steve

  • HT201210 How can i stop loosing all my videos, music, pics etc after an IOS update? PLEASE can somebody help me as i've lost everthing the last time i proceeded with this update so this time my mam thought she was doing the right thing by updating my phon

    How can i stop loosing all my videos, music, pics etc after an IOS update? PLEASE can somebody help me as i've lost everthing the last time i proceeded with this update so this time my mam thought she was doing the right thing by updating my phone!! :C

    everything should be on your computer.
    If you do as you should and make sure that everything is on your computer, then you should lose nothing.

  • I have done al the right things to set up home sharing for mine and my sons itunes lib but i still not getting the icon showing in the menu for us to select can anyne help?

    Hi I have done all the right things to set up the home sharing, turned it on, aurthorised it with the same details, but we still have not got the home icon in the menu to select. can anyone help?

    If you have iTunes 11 on your computer then you can enable the left-hand sidebar on it via option-command-S on a Mac, control-S on a PC - when connected (and if your computer's iTunes is up-to-date) your iPad should then appear on that sidebar under a 'Devices' heading :
    If you select the iPad on that sidebar you can then use the Movies tab on the right-hand side of the iTunes screen to select and sync that film to your iPad's Videos app.
    Has your iPad been synced to the computer before ? If not then you might find this page for syncing to a new computer useful : https://discussions.apple.com/docs/DOC-3141

  • I have a Time Capsule on which I back up 2 MacBooks and on my wife's machine she keeps having Airport Utility popping up all the time with a yellow button flashing on the left and a Red button on the right side with a "1" in the middle of it.

    I have a Time Capsule on which I back up 2 MacBooks and on my wife's machine she keeps having Airport Utility popping up all the time with a yellow button flashing on the left and a Red button on the right side with a "1" in the middle of it. Can any one tell me what is wrong. I read where when the yellow light was flashing there was a problem, but I am a novice at this and have no idea where to turn. It seems to be backing up on a regular basis.

    On the Mac......
    Open up Macintosh HD > Applicatons > Utilities > AirPort Utility
    Click on the Time Capsule icon, then click Edit in the small window that appears
    Click the Network tab at the top of the next window
    Change the setting for Router Mode from the current DHCP and NAT to read Off (Bridge Mode), then click Update at the lower right of the window, and wait a full minute for the Time Capsule to restart to a green light.
    Then.....very important
    Power off the Time Capsule and your Arris modem/router for a few minutes
    Start up the Arris first, and let it run a few minutes by itself
    Start up the Time Capsule next the same way
    Your network will now be correct, and your printing capabilities will improve.
    If Time Machine backups do not occur now, post back and we will tackle that next.

  • Why my music is only in the right hearphone, with any hearphones?

    why my music is only in the right hearphone, with any hearphones, since a few days? On other ipods, my hearphones sounds normal.

    If you recently reset your ipod maybe the sound balance has changed. You have to go to your settings then to general and then to accessibility, there you will find an option where you can set the balance

  • News:The iTunes MiniStore: Apple Does the Right Thing

    Everyone upset about implementaton of iTunes MiniStore should read this:
    The iTunes MiniStore: Apple Does the Right Thing
    Just saw this. Maybe this will assuage people; maybe not. Seems like an honest attempt to make good to me.

    angeldandruff wrote:
    I concur! But I will comment more based on the terms of the store credit and validity.
    I agree..I'm not going to get ahead of myself and plan out what I want to buy before anything is really gone into detail. But I do say if it's just for the Apple online store (not iTunes store) then that Apple protection plan for the iPhone that I haven't got yet looks pretty nice. But if it's for iTunes as well then I'm getting $100 worth of 24 season 6, ringtones, and songs.

  • Apple, please do the right thing

    Please don't turn your back on your most loyal supporters, those who waited in the rain and heat to be the first proud owners of iPhones. A $50 or $100 iTunes credit would go a long way in restoring our faith in you.
    I know it's normal for prices to drop, but not 33% in 60 days. The PR alone from this is ugly enough for you to want to make some kind of concession to your loyal customers. Remember people laughing at those waiting on line for iPhones, calling them kooks? Do you want those mocking laughs to turn out to be true? That people who buy Apple products are kooks who pay too much money and are screwed by a company they revere?
    Please, do the right thing Apple.

    I hope both of you are right in the next week or so
     dood
    they ought to let you trade up for a 16gb when that comes out at no charge
    I'd be down with that
    That is exactly what I was thinking
    Eric Johnston wrote:
    Please don't turn your back on your most loyal supporters, those who waited in the rain and heat to be the first proud owners of iPhones. A $50 or $100 iTunes credit would go a long way in restoring our faith in you.
    I know it's normal for prices to drop, but not 33% in 60 days. The PR alone from this is ugly enough for you to want to make some kind of concession to your loyal customers. Remember people laughing at those waiting on line for iPhones, calling them kooks? Do you want those mocking laughs to turn out to be true? That people who buy Apple products are kooks who pay too much money and are screwed by a company they revere?
    Please, do the right thing Apple.

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • When I download something on my iPad will be loaded into the same thing on my iPhone. yes i have the same Apple ID but you'll surely be able to have the same Apple ID or?

    When I download something on my iPad it will be loaded into the same thing on my iPhone. yes i have the same Apple ID but you'll surely be able to have the same Apple ID or?

    Automatic Downloads...
    http://support.apple.com/kb/ht4539
    Settings > Store > Automatic Downloads > Music/Apps > On

Maybe you are looking for

  • Printing directly to printer in Reporting Services 2008 problem

    We have recently installed a new SQL 2008 server.  I have an application that prints an SSRS report (2005) directly to the printer.  If I change the reference to point to the new SQL 2008 server and run the application, the report is printed but the

  • How to simutaneously use 2 PCI cards, one with traditional DAQ, the other with DAQmx?

    Hi, I am currently trying to debug a system that used to work.. but sadly isnt anymore A single computer contains 2 PCI cards (6110 & 6036E). The 6110 card is controlled by a fairly old software, programmed in labview, and hence, using Traditional NI

  • Will the new MB pro do 1080p in iTunes

    I'm using an iMac and a Mini to play video on an external tv/beamer. I use iTunes because it suports the ICC profiling and lets me calibrate the display in a perfect and easy way! (plex and xbmc don't support ICC). My problem is that the Mini can't p

  • Newbe with a question

    First, I would like to say Hello to all of the other forummers, as being a newbe. And as a newbe, I offcourse have a question.... Will the new AMD 333fsb  series processors run on my KT3 mainboard, after obviously flashing the bios? Thanks in advance

  • Weeks and Months roll-up in Time dimension

    We need to change our Time dimension roll-up ('Total Year' 'Quarter' 'Month') as some users want to see the week level as well. What is the best way to do that? I still want to use the DTS and both need to be Time dimension. Thanks for your reply.