So in the spirit of what we're doing, how to utilize these windows if we are using this, you shot.
So in this movie I will be using this message function to generate a graphical user interface message
small pop up.
So before that I was talking about the data types.
So here you can see unmanaged type in Windows abuse and C language type for running.
C, you need to use these data types.
But C-sharp is manager correctly.
That means this C-sharp chord is controlled and managed by ACL.
So if you if there is no ACL around this system, there is not Darknet installed.
You can't run these C-sharp binaries.
So you need to have this here are loaded to load our to run our binaries.
So in order to access these functions, you need to.
Well, import this idea first.
So if you go down to this function, you will see the user that you do not be.
So this function message box resides in this audience.
So ladies are exactly seem like executives.
But we cannot exclude them.
We can only load functions from this.
So many processes use this data so that the analysis, many processes can access the functions in the.
One day without having the multiple number of copies.
So I how in process accessing this message box function without having pen it so one day you can answer
these functions for many process.
So that is the advantage of this reader first.
So here you can see the manager typing the shot for why this is not why.
And you can see in the pointer and write in in 16, etc..
So here you can see all of these, uh.
Manage it better.
So one thing you need to notice is match box.
WWE stands for white character for the Unicode and you can also see message box here that is for as
question.
So you need to pass the strings as a unicode once.
We need to import a namespace card system that runtime not interrupt services.
From this, we need to import the functions from here.
So before that, now in my class I can to brackets the import.
I need to specify the bearer name.
You know, this has been through the actual part already.
This part will be.
So automatically I can just say user that you do not be and.
Below this.
What we need to do is we need to define our function.
And public static extend message.
W So we are using the extent to indicate that this is an outside function and this function does not
have any knowledge about this.
Our program class.
So it has a return that is integer.
So much as w so I'm making this, uh, like, uh, multiple lines because there'll be some functions
that require more than five or six parameters in that you cannot write in single line.
So the first, uh, parameter is.
And so and also here you can see it brilliantly.
That is the graphical user interface and dropping the ugly Windows applications.
There'll be some main window and if you want to pop up a message box, you can pass that handle to this
message box you're going to hand handle to the owner of window or the message box to be created.
If this parameter is not, the message box has no owner so will be passing null for this because we
are simply popping up the message box and we do not have any apparent graphical user interface windows.
So first one should be null and no null means void.
So it's not void.
So actually white, you can pass any object type or you can pass any object type with an integer data.
So that will be pretty resonant.
But what we're going to do is we are going to say the pointer.
In the winter.
This kind of.
So we have something this, uh, member of the structure in 2.0, which is Daniel.
So we'll be using that in the 1.0.
So next one is long pointer to constant white casting.
So LP stands for the wrong pointer, c stands for constant.
So it does not really uh, not constant means that our value does not change and.
This is a wild card string.
So we can be used.
We can sit around.
Martial as well, using these martial arts and not managed pay.
DOT.
So if you press unmanaged, you type dart and here you can see the rest of these manager types that
can that can convert to.
So here you can see a repeat of last year.
We can also see some other stereotypes as well.
So you can also see on unsigned integers and structures.
And it is.
And bold as well.
So I'm going to be using.
Wrong pointer to avoid getting to know what we can do.
Either.
You can simply screen and copy this text.
So we are just putting these marshals and managers, they've got drunk pointer white casting before
this string.
So the next parameter is also the same.
So this text will be shown on the message box and this caption is the title.
So you can simply copy this one.
And we can embrace a spring and we capture.
And the last one is the tape of the message work.
So we will be having some options.
That is on time.
And also here you can see if you pass this number based upon the number, the message box differs.
So you have the okay button.
Or get cancer, Bataan and so on, etc..
So the type is an insane India.
We can say you were in the party to.
You take?
Okay.
My function is ready.
I can now just simply say my search box w off.
So the first one is a pointer.
Da da gyro.
That is the now and the second one is the second.
Next two parameters are the settings.
I want to say hello world.
And the next one is this year's winner.
Are you?
And the last one, this type of damage is what you want to display.
I want to just simply say, okay, that is Jairo Long.
So you can just simply said you.
And the return type is integer.
And here you can also see the return type information.
You can read the message about his cancer battle.
The function of the Tyneside cancer.
If it is sex if the function first that it normally do you know.
The functions are normal in the following menu item values.
Okay.
That's the end result.
Now before executive we can say counsellor that read key.
So rich people can read this one.
And here you can see we got this message box under the screen.
And now this is the program is waiting for the user input.
And then if I type if I put any gear, it stops.
So you going to press any key to continue?
So let me, uh, build this one and change the message box type.
It's a yes no for this.
And here you can see there is no.
There is this yes and no options are available.
So this is about how you use these windows.
We're also going to be using we're bringing out other function that is getting that user's function.
So get net, so get username.
So we'll be using we'll be seeing the share net, the username in the next videos and also sharing them.
So get username.
W So if I type, who am I?
We will get this target as the username.
So we'll be getting the output from this function.
And this function is in that one area that you do not deal.
So you can create a new project.
Let's just include here.
And another thing is you can also define the characters set here.
So I can say character is equal to.
Characters are not unique.
So now you can see the values unique and see another.
So if I say Unicode by default, this function will be treated as a unique.
Now let's go ahead and do this for you.
And also common in this one.
And now let's go into this w over this and run this one.
So it will, by default, will be treated as Unicode function.
Okay.
Coming back.
Let's import this real and public static at ten.
And the return tape is bullion.
So bullion is, uh, yes or no?
Red Bull.
Get.
Username.
He was a BMW.
So the first parameter is, uh, our parameter.
So you're going to see the out and in.
So output is the output parameter.
The soda function processes something both its function and things.
And after, uh, before exiting the function, it will write the output to this, uh.
But amateur spaceflight.
And here you can also see in the magic box there is this window.
So it means we need to go to these parameters like.
Compulsory duty crosses he option optional.
So that means you can just leave them.
You can only pass this one.
So that means the last parameter would use message box type is not an optional and it's compulsory for
this message box to display.
And now here you can see the output parameter.
And in and out.
So this means so we need to pass this as a reference because it's taking the input from this one and
also it should write to the output.
So the first one is before normal will be using the spring for this after then.
And the user name of this machine gets into this before the pointer to receive the buffer, you know.
So that's.
Sacha Baron.
Martial arts.
And managed to that.
So we consider spring.
As we, not as we.
And the next one is the number of bites.
These are Eric Cantor.
And also in our report, it shows the length of the username.
So we need to pass this as reference.
You're in 32.
And so we are going to use this function.
So let me comment on this.
Right now, what we're going to do is copy this.
So bird result is equal to your username w off.
So the question is whether we need to create a string builder of yes, bicycles to new spring rolls.
So we need to create 100 of this 100 of memories.
Best to stop so we can just sit.
SB.
Come on.
And we need to create an integer to specify this number of bytes it can show.
So we can say you in 32 sizes equals zero.
So for now it should be zero.
And we be passing reference size.
So we're good to go now after getting the result, we need to speed up to speed.
Now let's go and build the solution.
I hope everything is fine.
So let's run this.
So we did not get any output.
So let's see where we did this wrong.
A pointer to the buffer to receive the user's roundup.
I think we are converting converting this as wrong.
Let's bring.
Okay.
My word.
What we're going to do is, uh.
Sorry.
I need to.
I do not sprayed years as a candidate.
That's why it is giving there.
Sorry, Father.
Now.
Let's go and run this one.
And now you can see the output so side for this I thought I thought it was only our parameter.
I did not.
Uh.
I forgot this in.
So here you can see you don't need to worry about the.
This spring here because we are passing this time builder.
Builder is a mutable type.
Why the spring is immutable.
So it is better to use spring buffer spring builder for these parameters and for the parameters we can
normally use on normal springs.
So that's what it's really all about.
Covering the basics of how to use Windows app using the sheesha.