Austin English austinenglish@gmail.com wrote:
- typedef struct _DHCPAPI_PARAMS DHCPCAPI_PARAMS, *PDHCPCAPI_PARAMS, *LPDHCPCAPI_PARAMS;
- typedef struct _DHCPCAPI_PARAMS_ARARAY {
- ULONG nParams;
- LPDHCPCAPI_PARAMS Params;
- } DHCPCAPI_PARAMS_ARRAY, *PDHCPCAPI_PARAMS_ARRAY, *LPDHCPCAPI_PARAMS_ARRAY;
- typedef struct _DHCPCAPI_CLASSID {
- ULONG Flags;
- LPBYTE Data;
- ULONG nBytesData;
- } DHCPCAPI_CLASSID, *PDHCPCAPI_CLASSID, *LPDHCPCAPI_CLASSID;
What is the reason of all those leading spaces? Also shouldn't these definitions go into an appropriate header file?
+DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adaptername, LPDHCPCAPI_CLASSID classid,
DHCPCAPI_PARAMS_ARRAY sendparams, DHCPCAPI_PARAMS_ARRAY recdparams,
BYTE *buffer, DWORD *size, WCHAR *requestiddtr )
...
+@ stdcall DhcpRequestParams(long ptr wstr long long long long long wstr)
API prototype doesn't match the spec entry for the pointers.