Hi,
I encounter the problem of adapting such a port on Win32 API in PowerShell (type. NET + P / Invoke).
Default PowerShell a number is considered a signed integer (System.Int32).
I just installed the SDK 6.1 for access to statements in the file WinUser.h, but I do not know how to interpret the different types of declared values.
Finally, the more precisely:
-what is the default on the directive define next?
The following statement specifies a long, does this mean> 32 bit? In this case type in use. NET?Code:ICON_SMALL = 0 # define ICON_SMALL 0
Another question, the values of groups such as GWL_xxx or WS_xxx can be used, and coupled indifferently according to API or are they specific API and at the type of the parameter referencing?Code:0x00000400L # define MF_BYPOSITION
Namely, if such a constant is declared as a signed integer, will always regarded as such even if several APIs use this constant?


Reply With Quote

Bookmarks