Here is a Code Example to Unlink your Module from PEB List. I use this Example for my WinAPI (.dll Injection).
typedef struct _PEB_LDR_DATA {
UINT8 _PADDING_[12];
LIST_ENTRY InLoadOrderModuleList;
LIST_ENTRY InMemoryOrderModuleList;
LIST_ENTRY InInitializationOrderModuleList;
}...