Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
AnswerRe: Declaring variables inside loops - inefficient? Pin
Luc Pattyn19-Jul-10 7:04
sitebuilderLuc Pattyn19-Jul-10 7:04 
Questionreading weather.com data feed Pin
Jassim Rahma19-Jul-10 5:07
Jassim Rahma19-Jul-10 5:07 
AnswerRe: reading weather.com data feed Pin
Eddy Vluggen19-Jul-10 5:20
professionalEddy Vluggen19-Jul-10 5:20 
AnswerRe: reading weather.com data feed Pin
brunoseixas19-Jul-10 6:58
brunoseixas19-Jul-10 6:58 
QuestionRtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 4:45
Night Lol19-Jul-10 4:45 
AnswerRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Luc Pattyn19-Jul-10 5:00
sitebuilderLuc Pattyn19-Jul-10 5:00 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:14
Night Lol19-Jul-10 5:14 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
DaveyM6919-Jul-10 5:31
professionalDaveyM6919-Jul-10 5:31 
According to the article, the function is
C
typedef long ( WINAPI *RtlSetProcessIsCritical ) (
        IN BOOLEAN    bNew, 
        OUT BOOLEAN    *pbOld, 
        IN BOOLEAN    bNeedScb );

Looking at that I think you may have a problem with your second parameter - try:
C#
[DllImport("ntdll.dll")]
public static extern int RtlSetProcessIsCritical(bool bNew, out bool pbOld, bool bNeedScb);

Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:51
Night Lol19-Jul-10 5:51 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
DaveyM6919-Jul-10 7:46
professionalDaveyM6919-Jul-10 7:46 
AnswerRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Luc Pattyn19-Jul-10 5:33
sitebuilderLuc Pattyn19-Jul-10 5:33 
GeneralRe: RtlSetProcessIsCritical, Marshall and pointers. Pin
Night Lol19-Jul-10 5:52
Night Lol19-Jul-10 5:52 
QuestionUnable to reference shared assembly in GAC [modified] Solved Pin
Jonathan Davies19-Jul-10 2:30
Jonathan Davies19-Jul-10 2:30 
AnswerRe: Unable to reference shared assembly in GAC Pin
PIEBALDconsult19-Jul-10 3:13
mvePIEBALDconsult19-Jul-10 3:13 
GeneralRe: Unable to reference shared assembly in GAC Pin
Jonathan Davies19-Jul-10 4:02
Jonathan Davies19-Jul-10 4:02 
QuestionHTML Table tag text Scraping Pin
NaveenHS19-Jul-10 0:48
NaveenHS19-Jul-10 0:48 
AnswerRe: HTML Table tag text Scraping Pin
Luc Pattyn19-Jul-10 0:57
sitebuilderLuc Pattyn19-Jul-10 0:57 
GeneralRe: HTML Table tag text Scraping Pin
NaveenHS19-Jul-10 1:45
NaveenHS19-Jul-10 1:45 
GeneralRe: HTML Table tag text Scraping Pin
Not Active19-Jul-10 5:41
mentorNot Active19-Jul-10 5:41 
AnswerRe: HTML Table tag text Scraping Pin
ragnaroknrol19-Jul-10 4:04
ragnaroknrol19-Jul-10 4:04 
GeneralRe: HTML Table tag text Scraping Pin
Luc Pattyn19-Jul-10 4:29
sitebuilderLuc Pattyn19-Jul-10 4:29 
AnswerRe: HTML Table tag text Scraping Pin
PIEBALDconsult19-Jul-10 4:21
mvePIEBALDconsult19-Jul-10 4:21 
QuestionReading user/group of your local machine Pin
dabuskol19-Jul-10 0:39
dabuskol19-Jul-10 0:39 
QuestionHi Pin
KORCARI18-Jul-10 23:27
KORCARI18-Jul-10 23:27 
AnswerRe: Hi Pin
Mycroft Holmes19-Jul-10 2:57
professionalMycroft Holmes19-Jul-10 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.