No way!Josep Roca wrote:It is a void pointer. 4 bytes in 32 bit and 8 bytes in 64 bit.
By your own excerpt of windef.bi (which I double checked) --> Long Ptr (even in FBC 64)
No way!Josep Roca wrote:It is a void pointer. 4 bytes in 32 bit and 8 bytes in 64 bit.
I did not respond to that.caseih wrote:so you should never rely on knowing the contents of it.
Code: Select all
NTSTATUS WINAPI BCryptOpenAlgorithmProvider(
_Out_ BCRYPT_ALG_HANDLE *phAlgorithm,
NTSTATUS WINAPI BCryptImportKeyPair(
_In_ BCRYPT_ALG_HANDLE hAlgorithm,
Yes, and the difference is:José Roca wrote:If it was not for type checking, you could use any data type of the appropriate size.
DeltaRho[...] wrote: It is a bit of a nightmare.
NTSTATUS WINAPI BCryptOpenAlgorithmProvider(
_Out_ BCRYPT_ALG_HANDLE *phAlgorithm, <---- dereferenced Ptr (to hAlgorithm)
NTSTATUS WINAPI BCryptImportKeyPair(
_In_ BCRYPT_ALG_HANDLE hAlgorithm, <---- the variable itself
Well, this is the point! I know what i want to do and i know how to do it right, but the compiler won´t let me do it because of type checking.If it was not for type checking, you could use any data type of the appropriate size
Welcome to the world of FreeBASIC, Juergen. Many of FreeBASIC keywords do things which I would be hard pressed to emulate in PowerBASIC but, as I have said on many occasions on the short time that I have been here, sometimes we are made to jump through too many hoops. I liken it to tinkering with an engine but sometimes with FreeBASIC I seem to spend an inordinate amount of time trying to lift the bonnet up. <laugh>Juergen Kuehlwein wrote:but sometimes in can be a real PITA.
Well, so does your apparently short lived memory.deltarho[] wrote:Sometimes your logic leaves me dumbfounded.
When you get to my age it comes with the territory.MrSwiss wrote:Well, so does your apparently short lived memory.
I can't even remember what I wrote in the last post, let alone a few posts earlier.Remembering what you've written, a few posts earlier.
Which reminds me.A good thing imho, one correct declare, does the job.
So what. It is irrelevant to use a handle.Yes, and the difference is:
Any Ptr --> the size (it points to) is unknown (can be any size).
however:
Long Ptr (pointing to) --> defined size of 32-bit's (4 byte's), always (or a multiple thereof).