I need to call the below function from a C# application. Having
problems converting it to C#. I think the BOOLs are just integers in
C#. I have tried char[] and string for the PAWDOBJKEY. I always get
"ERROR_BAD_PARA M" for a return value.
SHORT APIENTRY AwdApiInsertIte mKey(
HWND hwndContainer,
PAWDOBJKEY pAwdObjParentKe y,
PAWDOBJKEY pAwdObjKey,
BOOL fUpdateCount,
BOOL fLockFlag,
PVOID pReserved);
Parameters
hwndContainer: A handle to the container in which you want to
insert an item.
pAwdObjParentKe y: A pointer to the key of an existing parent of
the item to be inserted. If NULL, the item is inserted at the root.
pAwdObjKey: A pointer to the key of the item to insert. A view
call is made to get all the needed information to insert the item.
fUpdateCount: This parameter is ignored.
fLockFlag: Specifies whether or not to lock the object on
insertion. True=Lock False=Don’t Lock.
pReserved: Reserved for future use; it should be NULL.
=============== ==
AWDOBJKEY
Data that uniquely defines an AWD object. This data
distinguishes the object from other objects of the same type.
Typedef struct awdobjkey
{
CHAR crdattim [26];
CHAR recordcd;
CHAR crnode[2];
} AWDOBJKEY, *PAWDOBJKEY;
==============
problems converting it to C#. I think the BOOLs are just integers in
C#. I have tried char[] and string for the PAWDOBJKEY. I always get
"ERROR_BAD_PARA M" for a return value.
SHORT APIENTRY AwdApiInsertIte mKey(
HWND hwndContainer,
PAWDOBJKEY pAwdObjParentKe y,
PAWDOBJKEY pAwdObjKey,
BOOL fUpdateCount,
BOOL fLockFlag,
PVOID pReserved);
Parameters
hwndContainer: A handle to the container in which you want to
insert an item.
pAwdObjParentKe y: A pointer to the key of an existing parent of
the item to be inserted. If NULL, the item is inserted at the root.
pAwdObjKey: A pointer to the key of the item to insert. A view
call is made to get all the needed information to insert the item.
fUpdateCount: This parameter is ignored.
fLockFlag: Specifies whether or not to lock the object on
insertion. True=Lock False=Don’t Lock.
pReserved: Reserved for future use; it should be NULL.
=============== ==
AWDOBJKEY
Data that uniquely defines an AWD object. This data
distinguishes the object from other objects of the same type.
Typedef struct awdobjkey
{
CHAR crdattim [26];
CHAR recordcd;
CHAR crnode[2];
} AWDOBJKEY, *PAWDOBJKEY;
==============
Comment